cconv: add conversion for 'replay_time_scale'
[fio.git] / cconv.c
diff --git a/cconv.c b/cconv.c
index 5ed464065a0ed940e9c4c8298978802ea493047a..585ed86469187a10eaf4e6d6327f4f59a0abaa5c 100644 (file)
--- a/cconv.c
+++ b/cconv.c
@@ -1,5 +1,6 @@
 #include <string.h>
 
+#include "log.h"
 #include "thread_options.h"
 
 static void string_to_cpu(char **dst, const uint8_t *src)
@@ -290,6 +291,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
        o->block_error_hist = le32_to_cpu(top->block_error_hist);
        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->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);
@@ -298,6 +300,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
 
        o->trim_backlog = le64_to_cpu(top->trim_backlog);
        o->rate_process = le32_to_cpu(top->rate_process);
+       o->rate_ign_think = le32_to_cpu(top->rate_ign_think);
 
        for (i = 0; i < FIO_IO_U_LIST_MAX_LEN; i++)
                o->percentile_list[i].u.f = fio_uint64_to_double(le64_to_cpu(top->percentile_list[i].u.i));
@@ -479,6 +482,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
        top->block_error_hist = cpu_to_le32(o->block_error_hist);
        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->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);
@@ -557,6 +561,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
        top->offset_increment = __cpu_to_le64(o->offset_increment);
        top->number_ios = __cpu_to_le64(o->number_ios);
        top->rate_process = cpu_to_le32(o->rate_process);
+       top->rate_ign_think = cpu_to_le32(o->rate_ign_think);
 
        for (i = 0; i < FIO_IO_U_LIST_MAX_LEN; i++)
                top->percentile_list[i].u.i = __cpu_to_le64(fio_double_to_uint64(o->percentile_list[i].u.f));