summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-02-04 12:09:48 -0700
committerJens Axboe <axboe@fb.com>2016-02-04 12:09:48 -0700
commite6989e10964f5ae30e0ba8f0cd27a663baf5617b (patch)
tree7b89dc3018f1a6dd8410ace519d5608d8c02b6f5 /cconv.c
parentd96d3bb34689d0290174134e5a4770056dd4f980 (diff)
downloadfio-e6989e10964f5ae30e0ba8f0cd27a663baf5617b.tar.gz
fio-e6989e10964f5ae30e0ba8f0cd27a663baf5617b.tar.bz2
log: add support for logging max instead of averages
If we log with lov_avg_msec, fio will log the average over that period of time to the log. Add log_max_value to change this to logging maximums over the windowed period instead. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'cconv.c')
-rw-r--r--cconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cconv.c b/cconv.c
index 6d8d0b3e..6f57d90c 100644
--- a/cconv.c
+++ b/cconv.c
@@ -160,6 +160,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->allrand_repeatable = le32_to_cpu(top->allrand_repeatable);
o->rand_seed = le64_to_cpu(top->rand_seed);
o->log_avg_msec = le32_to_cpu(top->log_avg_msec);
+ o->log_max = le32_to_cpu(top->log_max);
o->log_offset = le32_to_cpu(top->log_offset);
o->log_gz = le32_to_cpu(top->log_gz);
o->log_gz_store = le32_to_cpu(top->log_gz_store);
@@ -348,6 +349,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->allrand_repeatable = cpu_to_le32(o->allrand_repeatable);
top->rand_seed = __cpu_to_le64(o->rand_seed);
top->log_avg_msec = cpu_to_le32(o->log_avg_msec);
+ top->log_max = cpu_to_le32(o->log_max);
top->log_offset = cpu_to_le32(o->log_offset);
top->log_gz = cpu_to_le32(o->log_gz);
top->log_gz_store = cpu_to_le32(o->log_gz_store);