projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7bd62d
)
Fix compile for FIO_INC_DEBUG not set
author
Jens Axboe
<axboe@fb.com>
Wed, 24 Sep 2014 15:54:24 +0000
(09:54 -0600)
committer
Jens Axboe
<axboe@fb.com>
Wed, 24 Sep 2014 15:54:24 +0000
(09:54 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime.c
patch
|
blob
|
blame
|
history
diff --git
a/gettime.c
b/gettime.c
index fa750ec85584716f7b6e37c5241130f8688dd6cb..8a1392392ab2ff3c92b8698c59fe79ea7cdd9adc 100644
(file)
--- a/
gettime.c
+++ b/
gettime.c
@@
-541,9
+541,13
@@
int fio_monotonic_clocktest(void)
log_info("cs: reliable_tsc: %s\n", tsc_reliable ? "yes" : "no");
+#ifdef FIO_INC_DEBUG
fio_debug |= 1U << FD_TIME;
+#endif
calibrate_cpu_clock();
+#ifdef FIO_INC_DEBUG
fio_debug &= ~(1U << FD_TIME);
+#endif
threads = malloc(nr_cpus * sizeof(struct clock_thread));
tentries = CLOCK_ENTRIES * nr_cpus;