Add gtod_reduce option
This cuts down even more on gtod() calls. While the three disable_X
options halved the gettimeofday() call count, this can reduce it to
less than 1 percent of what it otherwise would have been.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index ed1257c..3e39aea 100644
--- a/fio.h
+++ b/fio.h
@@ -499,6 +499,7 @@
unsigned int disable_clat;
unsigned int disable_slat;
unsigned int disable_bw;
+ unsigned int gtod_reduce;
char *read_iolog_file;
char *write_iolog_file;
@@ -612,6 +613,9 @@
struct timeval epoch; /* time job was started */
struct timeval rw_end[2];
struct timeval last_issue;
+ struct timeval tv_cache;
+ unsigned int tv_cache_nr;
+ unsigned int tv_cache_mask;
unsigned int rw_end_set[2];
unsigned int ramp_time_over;