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.
>> +#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 */
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list