X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=markers-test%2Ftest-mark-speed-opt.c;h=e0a26425bbfb4795fec0c1e2c37ff1789afc7708;hb=db68aac5383a982a3f81bc60bacffff550bc7031;hp=d4098d402131e10b0b8e70db5333e817097e1e4c;hpb=a1d38aecb7df193fcd7332cc4555e6c0233d0564;p=lttv.git diff --git a/markers-test/test-mark-speed-opt.c b/markers-test/test-mark-speed-opt.c index d4098d40..e0a26425 100644 --- a/markers-test/test-mark-speed-opt.c +++ b/markers-test/test-mark-speed-opt.c @@ -8,6 +8,8 @@ #include #include #include +#include + static void noinline test2(const struct marker *mdata, void *call_private, ...) { @@ -52,6 +54,7 @@ struct proc_dir_entry *pentry = NULL; static inline void test(unsigned long arg, unsigned long arg2) { + wbinvd(); //asm volatile (""); //__my_trace_mark(1, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); __my_trace_mark(0, kernel_debug_test, NULL, "%d %d %ld %ld", 2, current->pid, arg, arg2); @@ -67,7 +70,7 @@ static int my_open(struct inode *inode, struct file *file) rdtsc_barrier(); cycles1 = get_cycles(); rdtsc_barrier(); - for(i=0; i<20000; i++) { + for(i=0; i<2000; i++) { test(i, i); } rdtsc_barrier();