gettime: add basic init cpuclock test
Some systems claim to have a synced and constant rate tsc, even if
they don't. So add the basic cpuclock-test test as part of fio
trusting the CPU clock, to avoid using the CPU clock on a system
where the TSC truly isn't synced between CPUs.
Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/init.c b/init.c
index d3dec0a..dc563fd 100644
--- a/init.c
+++ b/init.c
@@ -2238,7 +2238,7 @@
case 'T':
did_arg = 1;
do_exit++;
- exit_val = fio_monotonic_clocktest();
+ exit_val = fio_monotonic_clocktest(1);
break;
case 'G':
did_arg = 1;