projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b3498
)
gettime: include per-cpu clock calibration in cpu clock test
author
Jens Axboe
<axboe@kernel.dk>
Mon, 17 Dec 2012 13:29:28 +0000
(14:29 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 17 Dec 2012 13:29:28 +0000
(14:29 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gettime.c
patch
|
blob
|
blame
|
history
diff --git
a/gettime.c
b/gettime.c
index 0683bd1552093298b4a868e08ee1edf97ad80a62..f5be6bd00d2eff90a6583eaed217bcc6a498b62e 100644
(file)
--- a/
gettime.c
+++ b/
gettime.c
@@
-429,6
+429,10
@@
int fio_monotonic_clocktest(void)
uint64_t seq = 0;
int i;
+ fio_debug |= 1U << FD_TIME;
+ calibrate_cpu_clock();
+ fio_debug &= ~(1U << FD_TIME);
+
threads = malloc(nr_cpus * sizeof(struct clock_thread));
tentries = CLOCK_ENTRIES * nr_cpus;
entries = malloc(tentries * sizeof(struct clock_entry));