From dae89ac91f813b90323328e2b6e8d6a2b8252c71 Mon Sep 17 00:00:00 2001 From: Sitsofe Wheeler Date: Sun, 9 Jul 2017 20:54:38 +0100 Subject: [PATCH] time: Add chosen clocksource debug Make it a bit easier to see which clocksource was used by printing its enumeration value when --debug=time is used. Signed-off-by: Sitsofe Wheeler --- gettime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gettime.c b/gettime.c index 9e5457e0..3dcaaf68 100644 --- a/gettime.c +++ b/gettime.c @@ -425,6 +425,7 @@ void fio_clock_init(void) fio_clock_source = CS_CPUCLOCK; } else if (fio_clock_source == CS_CPUCLOCK) log_info("fio: clocksource=cpu may not be reliable\n"); + dprint(FD_TIME, "gettime: clocksource=%d\n", (int) fio_clock_source); } uint64_t ntime_since(const struct timespec *s, const struct timespec *e) -- 2.25.1