*/
-#include <linux/config.h>
#include <linux/jiffies.h>
#include <linux/compiler.h>
#include <linux/init.h>
#define NR_LOOPS 20000
-
volatile int test_val = 100;
-static void do_test(void)
+static inline void do_test(void)
{
int val, ret;
ret = cmpxchg(&test_val, val, val+1);
}
-void (*fct)(void) = do_test;
+//void (*fct)(void) = do_test;
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);