summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-04-26 15:27:05 -0600
committerJens Axboe <axboe@kernel.dk>2018-04-26 15:27:05 -0600
commitd7235efbc3a4b6f8c2794fc71d544066e4110eff (patch)
tree893c72cabde52b651e057a4d5a90e47b92bb804a /cconv.c
parentc1f22c2169c77658bd6efaccc47ee8542055d8f2 (diff)
downloadfio-d7235efbc3a4b6f8c2794fc71d544066e4110eff.tar.gz
fio-d7235efbc3a4b6f8c2794fc71d544066e4110eff.tar.bz2
blktrace: add 'reply_skip' option
Allows the user to skip certain IO types. Useful for replaying workloads with trim on a device that doesn't support it, for instance. Or just replaying parts of a workload (eg just writes, or just reads). Signed-off-by: Jens Axboe <axboe@kernel.dk>
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 9e163b35..bfd699da 100644
--- a/cconv.c
+++ b/cconv.c
@@ -290,6 +290,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->replay_align = le32_to_cpu(top->replay_align);
o->replay_scale = le32_to_cpu(top->replay_scale);
o->replay_time_scale = le32_to_cpu(top->replay_time_scale);
+ o->replay_skip = le32_to_cpu(top->replay_skip);
o->per_job_logs = le32_to_cpu(top->per_job_logs);
o->write_bw_log = le32_to_cpu(top->write_bw_log);
o->write_lat_log = le32_to_cpu(top->write_lat_log);
@@ -479,6 +480,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->replay_align = cpu_to_le32(o->replay_align);
top->replay_scale = cpu_to_le32(o->replay_scale);
top->replay_time_scale = cpu_to_le32(o->replay_time_scale);
+ top->replay_skip = cpu_to_le32(o->replay_skip);
top->per_job_logs = cpu_to_le32(o->per_job_logs);
top->write_bw_log = cpu_to_le32(o->write_bw_log);
top->write_lat_log = cpu_to_le32(o->write_lat_log);