path: root/thread_options.h
diff options
authorOmar Sandoval <>2016-10-05 15:15:28 -0700
committerJens Axboe <>2016-10-11 16:04:27 -0600
commitdded427c6c8c4459c93f2afa1687b3a8d914c3d3 (patch)
tree33e917b14484f1ed51c6584a8c2ebb54eeaec759 /thread_options.h
parenta9179eebb0e70013b4a7be0073c9c55efdd6058c (diff)
iolog: make write_*_log prefix optional
Providing write_bw_log=jobname for every job in a jobfile gets pretty tedious. This way, we can just do, e.g., [global] write_bw_log and all jobs will be logged. The documentation seems to suggest that this is the intended behavior, and it looks like that used to be the case. Fixes: 203160d52b86 ("options: get rid of more .cb option usage we don't need") Signed-off-by: Omar Sandoval <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'thread_options.h')
1 files changed, 12 insertions, 0 deletions
diff --git a/thread_options.h b/thread_options.h
index 1b4590f7..5e379e32 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -233,6 +233,12 @@ struct thread_options {
char *read_iolog_file;
char *write_iolog_file;
+ unsigned int write_bw_log;
+ unsigned int write_lat_log;
+ unsigned int write_iops_log;
+ unsigned int write_hist_log;
char *bw_log_file;
char *lat_log_file;
char *iops_log_file;
@@ -492,6 +498,12 @@ struct thread_options_pack {
uint8_t read_iolog_file[FIO_TOP_STR_MAX];
uint8_t write_iolog_file[FIO_TOP_STR_MAX];
+ uint32_t write_bw_log;
+ uint32_t write_lat_log;
+ uint32_t write_iops_log;
+ uint32_t write_hist_log;
uint8_t bw_log_file[FIO_TOP_STR_MAX];
uint8_t lat_log_file[FIO_TOP_STR_MAX];
uint8_t iops_log_file[FIO_TOP_STR_MAX];