X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gettime.c;h=8a1392392ab2ff3c92b8698c59fe79ea7cdd9adc;hp=fa750ec85584716f7b6e37c5241130f8688dd6cb;hb=fa88cd091ea1dc9a7f75e925644e52813224f5a5;hpb=814917be52d33d09a6143a801955d7b75229e1b5 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;