X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Fkernel%2Ftest-hpet.c;fp=tests%2Fkernel%2Ftest-hpet.c;h=0000000000000000000000000000000000000000;hb=a219d12930979a81f43a3a3f5499b2bd00141a84;hp=41cebce1353094b9a868f5d331d86f9f023af813;hpb=31efe1f8304f09a4f4139c387a98d3215cd423c9;p=lttv.git diff --git a/tests/kernel/test-hpet.c b/tests/kernel/test-hpet.c deleted file mode 100644 index 41cebce1..00000000 --- a/tests/kernel/test-hpet.c +++ /dev/null @@ -1,60 +0,0 @@ -/* test-async-tsc.c - * - * test async tsc on AMD. - */ - - -#include -#include -#include -#include -#include -#include -#include -#include - -//#define NR_LOOPS 10000 -#define NR_LOOPS 10 - -extern cycle_t read_hpet(void); - -static int __init test_init(void) -{ - int i; - cycles_t time1, time2; - volatile unsigned long myval; - int sync_save; /* racy */ - - sync_save = ltt_tsc_is_sync; - ltt_tsc_is_sync = 0; - //ltt_tsc_is_sync = 1; - return -EPERM; //TEST ! - myval = ltt_get_timestamp64(); - time1 = get_cycles(); - for (i=0; i < NR_LOOPS; i++) { - //printk("time %llu\n", ltt_tsc_read()); - //get_cycles_barrier(); - //myval = get_cycles(); - //get_cycles_barrier(); - myval = read_hpet(); - //clflush(<t_last_tsc); - //myval = ltt_get_timestamp64(); - printk("val : %llu\n", (unsigned long long)myval); - } - time2 = get_cycles(); - printk("timediff %llu\n", (time2-time1)/NR_LOOPS); - ltt_tsc_is_sync = sync_save; - return -EPERM; -} - -static void __exit test_exit(void) -{ -} - -module_init(test_init); -module_exit(test_exit); - -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("sync async tsc"); -