From 8e25577988d7454ef2fd9c030354b70adca3c57b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 1 Apr 2014 13:34:49 -0600 Subject: [PATCH] Ensure we inherit global latency/bw log settings Note that you cannot use a filename with these, it's just an on/off switch. For tighter control of where the log is written (and its name), use the job option instead of the command line on/off switch. Signed-off-by: Jens Axboe --- init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index 72d106af..c7e056fa 100644 --- a/init.c +++ b/init.c @@ -1087,12 +1087,12 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num, if (setup_rate(td)) goto err; - if (o->lat_log_file) { + if (o->lat_log_file || write_lat_log) { setup_log(&td->lat_log, o->log_avg_msec, IO_LOG_TYPE_LAT); setup_log(&td->slat_log, o->log_avg_msec, IO_LOG_TYPE_SLAT); setup_log(&td->clat_log, o->log_avg_msec, IO_LOG_TYPE_CLAT); } - if (o->bw_log_file) + if (o->bw_log_file || write_bw_log) setup_log(&td->bw_log, o->log_avg_msec, IO_LOG_TYPE_BW); if (o->iops_log_file) setup_log(&td->iops_log, o->log_avg_msec, IO_LOG_TYPE_IOPS); -- 2.25.1