+
+ local_irq_save(flags);
+ for(i=0; i<NR_LOOPS; i++) {
+ time1 = get_cycles();
+ trace_tests_write_4bytes(5000);
+ time2 = get_cycles();
+ time = time2 - time1;
+ max_time = max(max_time, time);
+ min_time = min(min_time, time);
+ tot_time += time;
+ }
+ local_irq_restore(flags);
+
+ printk(KERN_ALERT "test results : time per probe\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);
+ printk(KERN_ALERT "max : %llu\n", max_time);
+
+ printk(KERN_ALERT "test end\n");
+
+ return -EAGAIN; /* Fail will directly unload the module */