summaryrefslogtreecommitdiff
path: root/gettime.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-09-24 09:54:24 -0600
committerJens Axboe <axboe@fb.com>2014-09-24 09:54:24 -0600
commitb5b571a3f01c17ddb39fd0306cb425a11e216f3d (patch)
treef293386b9e90c0f75b84c0cc962f7669d68d071f /gettime.c
parentf7bd62ddc75a6f69ff3b5058461ddad7f045aa20 (diff)
downloadfio-b5b571a3f01c17ddb39fd0306cb425a11e216f3d.tar.gz
fio-b5b571a3f01c17ddb39fd0306cb425a11e216f3d.tar.bz2
Fix compile for FIO_INC_DEBUG not set
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'gettime.c')
-rw-r--r--gettime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gettime.c b/gettime.c
index fa750ec8..8a139239 100644
--- 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;