From 82b66f0531139f41f4239d90888c236784810b3c Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 8 Apr 2008 03:38:52 +0000 Subject: [PATCH] update git-svn-id: http://ltt.polymtl.ca/svn@2862 04897980-b3bd-0310-b5e0-8ef037075253 --- markers-test/runtest.sh | 2 +- markers-test/test-mark-speed-edit.c | 2 +- markers-test/test-mark-speed-empty.c | 2 +- markers-test/test-mark-speed-local.c | 2 +- markers-test/test-mark-speed-opt.c | 2 +- markers-test/test-mark-speed.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/markers-test/runtest.sh b/markers-test/runtest.sh index be857b56..9a1a9e0a 100644 --- a/markers-test/runtest.sh +++ b/markers-test/runtest.sh @@ -4,7 +4,7 @@ make clean make #build no flush modules ITER=10 -LOOPS=20000 +LOOPS=1 insmod test-mark-speed-empty.ko for a in `seq 1 $ITER`; do cat /proc/testmark;done diff --git a/markers-test/test-mark-speed-edit.c b/markers-test/test-mark-speed-edit.c index 7f6d0334..5b741884 100644 --- a/markers-test/test-mark-speed-edit.c +++ b/markers-test/test-mark-speed-edit.c @@ -105,7 +105,7 @@ static int my_open(struct inode *inode, struct file *file) cycles2 = get_cycles(); rdtsc_barrier(); local_irq_restore(flags); - printk("cycles : %llu\n", cycles2-cycles1); + printk("cycles : %llu\n", (cycles2-cycles1)/20000); return -EPERM; } diff --git a/markers-test/test-mark-speed-empty.c b/markers-test/test-mark-speed-empty.c index 0496deed..f8522d3f 100644 --- a/markers-test/test-mark-speed-empty.c +++ b/markers-test/test-mark-speed-empty.c @@ -94,7 +94,7 @@ static int my_open(struct inode *inode, struct file *file) cycles2 = get_cycles(); rdtsc_barrier(); local_irq_restore(flags); - printk("cycles : %llu\n", cycles2-cycles1); + printk("cycles : %llu\n", (cycles2-cycles1)/20000); return -EPERM; } diff --git a/markers-test/test-mark-speed-local.c b/markers-test/test-mark-speed-local.c index 71cd6b6f..37adbc1b 100644 --- a/markers-test/test-mark-speed-local.c +++ b/markers-test/test-mark-speed-local.c @@ -104,7 +104,7 @@ static int my_open(struct inode *inode, struct file *file) cycles2 = get_cycles(); rdtsc_barrier(); local_irq_restore(flags); - printk("cycles : %llu\n", cycles2-cycles1); + printk("cycles : %llu\n", (cycles2-cycles1)/20000); return -EPERM; } diff --git a/markers-test/test-mark-speed-opt.c b/markers-test/test-mark-speed-opt.c index a541b51a..4c6ee36a 100644 --- a/markers-test/test-mark-speed-opt.c +++ b/markers-test/test-mark-speed-opt.c @@ -93,7 +93,7 @@ static int my_open(struct inode *inode, struct file *file) cycles2 = get_cycles(); rdtsc_barrier(); local_irq_restore(flags); - printk("cycles : %llu\n", cycles2-cycles1); + printk("cycles : %llu\n", (cycles2-cycles1)/20000); return -EPERM; } diff --git a/markers-test/test-mark-speed.c b/markers-test/test-mark-speed.c index 2c585b60..f41acb57 100644 --- a/markers-test/test-mark-speed.c +++ b/markers-test/test-mark-speed.c @@ -94,7 +94,7 @@ static int my_open(struct inode *inode, struct file *file) cycles2 = get_cycles(); rdtsc_barrier(); local_irq_restore(flags); - printk("cycles : %llu\n", cycles2-cycles1); + printk("cycles : %llu\n", (cycles2-cycles1)/20000); return -EPERM; } -- 2.34.1