client/server: convert nr_zone_resets on the wire
authorJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2018 15:29:14 +0000 (08:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2018 15:29:14 +0000 (08:29 -0700)
Fixes: fd5d733fa34 ("Collect and show zone reset statistics")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c
server.c

index 3248906756db77d9586fb2a71513943c9e57b0b6..c8850440152889dadb397f4195c934e305a122c7 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1000,6 +1000,7 @@ static void convert_ts(struct thread_stat *dst, struct thread_stat *src)
 
        dst->total_submit       = le64_to_cpu(src->total_submit);
        dst->total_complete     = le64_to_cpu(src->total_complete);
+       dst->nr_zone_resets     = le64_to_cpu(src->nr_zone_resets);
 
        for (i = 0; i < DDIR_RWDIR_CNT; i++) {
                dst->io_bytes[i]        = le64_to_cpu(src->io_bytes[i]);
index 90d3396b62fd8a557304cdbef929c6a428febf33..96e51819d38b8d89dca0a9e444a70cc1da5aa076 100644 (file)
--- a/server.c
+++ b/server.c
@@ -1530,6 +1530,7 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs)
 
        p.ts.total_submit       = cpu_to_le64(ts->total_submit);
        p.ts.total_complete     = cpu_to_le64(ts->total_complete);
+       p.ts.nr_zone_resets     = cpu_to_le64(ts->nr_zone_resets);
 
        for (i = 0; i < DDIR_RWDIR_CNT; i++) {
                p.ts.io_bytes[i]        = cpu_to_le64(ts->io_bytes[i]);