steadystate: ensure that pointers in thread_stat occupy the same amount of storage...
authorVincent Fu <Vincent.Fu@sandisk.com>
Tue, 6 Dec 2016 17:22:52 +0000 (12:22 -0500)
committerVincent Fu <Vincent.Fu@sandisk.com>
Wed, 7 Dec 2016 21:03:18 +0000 (16:03 -0500)
stat.h

diff --git a/stat.h b/stat.h
index 8a9547917cb96d652f9c527d71becea47a67e853..0a7bab18c0e0c9d55400d77c1ad375a978704b97 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -218,13 +218,20 @@ struct thread_stat {
        uint32_t ss_state;
        uint32_t ss_head;
 
        uint32_t ss_state;
        uint32_t ss_head;
 
-       uint64_t *ss_iops_data;
-       uint64_t *ss_bw_data;
-
        fio_fp64_t ss_limit;
        fio_fp64_t ss_slope;
        fio_fp64_t ss_deviation;
        fio_fp64_t ss_criterion;
        fio_fp64_t ss_limit;
        fio_fp64_t ss_slope;
        fio_fp64_t ss_deviation;
        fio_fp64_t ss_criterion;
+
+       union {
+               uint64_t *ss_iops_data;
+               uint64_t pad3;
+       };
+
+       union {
+               uint64_t *ss_bw_data;
+               uint64_t pad4;
+       };
 } __attribute__((packed));
 
 struct jobs_eta {
 } __attribute__((packed));
 
 struct jobs_eta {