summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-05-06 14:19:20 -0600
committerJens Axboe <axboe@fb.com>2015-05-06 14:19:20 -0600
commit0c63576e14bc606f81441f20e58a5b6338a5e2d6 (patch)
tree3dd799b39bcb9ed3a45afe602feb0db3b8e312e4 /cconv.c
parent0f38bbef532ef9da0d43382dca58a20e57c63dc1 (diff)
downloadfio-0c63576e14bc606f81441f20e58a5b6338a5e2d6.tar.gz
fio-0c63576e14bc606f81441f20e58a5b6338a5e2d6.tar.bz2
blktrace: add support for scaling and aligning replays
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'cconv.c')
-rw-r--r--cconv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cconv.c b/cconv.c
index 976059cd..9c7e7185 100644
--- a/cconv.c
+++ b/cconv.c
@@ -244,6 +244,8 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->compress_percentage = le32_to_cpu(top->compress_percentage);
o->compress_chunk = le32_to_cpu(top->compress_chunk);
o->dedupe_percentage = le32_to_cpu(top->dedupe_percentage);
+ o->replay_align = le32_to_cpu(top->replay_align);
+ o->replay_scale = le32_to_cpu(top->replay_scale);
o->trim_backlog = le64_to_cpu(top->trim_backlog);
@@ -407,6 +409,8 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->compress_percentage = cpu_to_le32(o->compress_percentage);
top->compress_chunk = cpu_to_le32(o->compress_chunk);
top->dedupe_percentage = cpu_to_le32(o->dedupe_percentage);
+ top->replay_align = cpu_to_le32(o->replay_align);
+ top->replay_scale = cpu_to_le32(o->replay_scale);
for (i = 0; i < DDIR_RWDIR_CNT; i++) {
top->bs[i] = cpu_to_le32(o->bs[i]);