steady-state: convert options across the wire
authorJens Axboe <axboe@fb.com>
Fri, 12 Aug 2016 03:50:59 +0000 (21:50 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:44:52 +0000 (09:44 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
cconv.c
server.h
thread_options.h

diff --git a/cconv.c b/cconv.c
index 8d9a0a8e00e9255bd01e097f39ce38ee28b4d50b..a795f1e9633011288db6c8f50909b907f84ca5cc 100644 (file)
--- 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);
index fb384fb15feb7ea185230bfcbb39794179443371..173aadce44f487415628deaee0a65287db84b8ae 100644 (file)
--- a/server.h
+++ b/server.h
@@ -38,7 +38,7 @@ struct fio_net_cmd_reply {
 };
 
 enum {
-       FIO_SERVER_VER                  = 56,
+       FIO_SERVER_VER                  = 57,
 
        FIO_SERVER_MAX_FRAGMENT_PDU     = 1024,
        FIO_SERVER_MAX_CMD_MB           = 2048,
index 088819bf89782c667170abc8946c87a7480d031e..f15ebef8710361a3b2677621b16f98003d91ea94 100644 (file)
@@ -169,7 +169,7 @@ struct thread_options {
        unsigned long long start_delay_high;
        unsigned long long timeout;
        unsigned long long ramp_time;
-       unsigned int ss;                /* TODO add to thread_options_pack */
+       unsigned int ss;
        bool ss_pct;
        fio_fp64_t ss_limit;
        unsigned long long ss_dur;
@@ -430,6 +430,11 @@ struct thread_options_pack {
        uint64_t start_delay_high;
        uint64_t timeout;
        uint64_t ramp_time;
+       uint64_t ss_dur;
+       uint64_t ss_ramp_time;
+       uint32_t ss;
+       uint32_t ss_pct;
+       fio_fp64_t ss_limit;
        uint32_t overwrite;
        uint32_t bw_avg_time;
        uint32_t iops_avg_time;