summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorKarl Cronburg <kcronbur@redhat.com>2016-08-18 12:48:47 -0400
committerKarl Cronburg <kcronbur@redhat.com>2016-08-18 14:51:51 -0400
commit3aea75b14510301a80744b417ac08840ccfcf5b3 (patch)
tree35c5b3ba4e2bd421ef6609637caa12b7fc60a3e2 /cconv.c
parentc22825bb537af1f84a18dcb4af6d8c6844f751ac (diff)
downloadfio-3aea75b14510301a80744b417ac08840ccfcf5b3.tar.gz
fio-3aea75b14510301a80744b417ac08840ccfcf5b3.tar.bz2
Option for changing log files to use Unix epoch instead of being
zero-based (when fio starts) epoch. This makes it easier to analyze the data in the context of other benchmarking tools running at the same time as fio. Signed-off-by: Karl Cronburg <kcronbur@redhat.com>
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 8d9a0a8e..194e342c 100644
--- a/cconv.c
+++ b/cconv.c
@@ -187,6 +187,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->log_offset = le32_to_cpu(top->log_offset);
o->log_gz = le32_to_cpu(top->log_gz);
o->log_gz_store = le32_to_cpu(top->log_gz_store);
+ o->log_unix_epoch = le32_to_cpu(top->log_unix_epoch);
o->norandommap = le32_to_cpu(top->norandommap);
o->softrandommap = le32_to_cpu(top->softrandommap);
o->bs_unaligned = le32_to_cpu(top->bs_unaligned);
@@ -379,6 +380,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->log_offset = cpu_to_le32(o->log_offset);
top->log_gz = cpu_to_le32(o->log_gz);
top->log_gz_store = cpu_to_le32(o->log_gz_store);
+ top->log_unix_epoch = cpu_to_le32(o->log_unix_epoch);
top->norandommap = cpu_to_le32(o->norandommap);
top->softrandommap = cpu_to_le32(o->softrandommap);
top->bs_unaligned = cpu_to_le32(o->bs_unaligned);