|
From: Darren H. <dv...@us...> - 2008-11-26 16:08:47
|
Gilles.Carry wrote:
> Darren Hart a e'crit :
>> Gilles Carry wrote:
>>> diff --git a/testcases/realtime/include/libstats.h
>>> b/testcases/realtime/include/libstats.h
>>> index 05c26d8..591d94f 100644
>>> --- a/testcases/realtime/include/libstats.h
>>> +++ b/testcases/realtime/include/libstats.h
>>> @@ -45,6 +45,10 @@
>>> #include <errno.h>
>>> #include <unistd.h>
>>> #include <math.h>
>>> +#include <librttest.h>
>>
>> Hrm, seems odd to require this include to dump to XML. Why do we need
>> it?
>
> Just because of the timestamp in stats_record which is declared as nsec_t.
Ah right. Cool.
>
>>> +#ifdef LIB_XML
>>> +#include <libxml.h>
>>> +#endif
>>>
>>> #define MIN(A,B) ((A)<(B)?(A):(B))
>>> #define MAX(A,B) ((A)>(B)?(A):(B))
>>> @@ -52,6 +56,8 @@
>>> typedef struct stats_record {
>>> long x;
>>> long y;
>>> + nsec_t t; /* timestamp */
>>> + int c; /* cpu id */
--
Darren Hart
IBM Linux Technology Center
Real-Time Linux Team
|