summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-08-11 21:50:59 -0600
committerJens Axboe <axboe@fb.com>2016-08-15 09:44:52 -0600
commit72863286d1d42529989f28ae74d6c52e9a5c3f1c (patch)
tree269af80b2a1602abab55a690c7eb12dc00594e6f /cconv.c
parent1fe7cda4410da90b385994f8f56539e19a248150 (diff)
steady-state: convert options across the wire
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'cconv.c')
-rw-r--r--cconv.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cconv.c b/cconv.c
index 8d9a0a8..a795f1e 100644
--- a/cconv.c
+++ b/cconv.c
@@ -212,6 +212,11 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->start_delay_high = le64_to_cpu(top->start_delay_high);
o->timeout = le64_to_cpu(top->timeout);
o->ramp_time = le64_to_cpu(top->ramp_time);
+ o->ss_dur = le64_to_cpu(top->ss_dur);
+ o->ss_ramp_time = le64_to_cpu(top->ss_ramp_time);
+ o->ss = le32_to_cpu(top->ss);
+ o->ss_pct = le32_to_cpu(top->ss_pct);
+ o->ss_limit.u.f = fio_uint64_to_double(le64_to_cpu(top->ss_limit.u.i));
o->zone_range = le64_to_cpu(top->zone_range);
o->zone_size = le64_to_cpu(top->zone_size);
o->zone_skip = le64_to_cpu(top->zone_skip);
@@ -513,6 +518,11 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->start_delay_high = __cpu_to_le64(o->start_delay_high);
top->timeout = __cpu_to_le64(o->timeout);
top->ramp_time = __cpu_to_le64(o->ramp_time);
+ top->ss_dur = __cpu_to_le64(top->ss_dur);
+ top->ss_ramp_time = __cpu_to_le64(top->ss_ramp_time);
+ top->ss = cpu_to_le32(top->ss);
+ top->ss_pct = cpu_to_le32(top->ss_pct);
+ top->ss_limit.u.i = __cpu_to_le64(fio_double_to_uint64(o->ss_limit.u.f));
top->zone_range = __cpu_to_le64(o->zone_range);
top->zone_size = __cpu_to_le64(o->zone_size);
top->zone_skip = __cpu_to_le64(o->zone_skip);