X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fkernel%2Ftest-cmpxchg.c;h=58264a934999e0803df4a2379b4c398b03f6e139;hb=c9a9c80f3f62d7f187f02c3eafe8bb92aa2cf949;hp=77eafaf084ffdaf95e113fd53f17aadde7149519;hpb=d254c2d47c56fffa9215f0f96a7db058b13169bd;p=lttv.git diff --git a/tests/kernel/test-cmpxchg.c b/tests/kernel/test-cmpxchg.c index 77eafaf0..58264a93 100644 --- a/tests/kernel/test-cmpxchg.c +++ b/tests/kernel/test-cmpxchg.c @@ -4,7 +4,6 @@ */ -#include #include #include #include @@ -12,11 +11,10 @@ #define NR_LOOPS 20000 - volatile int test_val = 100; -static void do_test(void) +static inline void do_test(void) { int val, ret; @@ -25,7 +23,7 @@ static void do_test(void) ret = cmpxchg(&test_val, val, val+1); } -void (*fct)(void) = do_test; +//void (*fct)(void) = do_test; static int ltt_test_init(void) { @@ -51,7 +49,7 @@ static int ltt_test_init(void) time = time2 - time1; tot_time += time; - printk(KERN_ALERT "test results : time per probe\n"); + printk(KERN_ALERT "test results : time for cmpxchg\n"); printk(KERN_ALERT "number of loops : %d\n", NR_LOOPS); printk(KERN_ALERT "total time : %llu\n", tot_time); //printk(KERN_ALERT "min : %llu\n", min_time);