X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=markers-test%2Ftest-mark-speed-empty.c;h=20695ca808024135a492d9cffa56823a89d8000b;hb=db68aac5383a982a3f81bc60bacffff550bc7031;hp=943af27dfe5cbab1d7265da224766b5614f02aec;hpb=a1d38aecb7df193fcd7332cc4555e6c0233d0564;p=lttv.git diff --git a/markers-test/test-mark-speed-empty.c b/markers-test/test-mark-speed-empty.c index 943af27d..20695ca8 100644 --- a/markers-test/test-mark-speed-empty.c +++ b/markers-test/test-mark-speed-empty.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();