From cb84f1fa34f94b5766f54b13d6fea0f910197e72 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 6 Dec 2016 12:22:52 -0500 Subject: [PATCH] steadystate: ensure that pointers in thread_stat occupy the same amount of storage in 32- and 64-bit platforms --- stat.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/stat.h b/stat.h index 8a954791..0a7bab18 100644 --- a/stat.h +++ b/stat.h @@ -218,13 +218,20 @@ struct thread_stat { 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; + + union { + uint64_t *ss_iops_data; + uint64_t pad3; + }; + + union { + uint64_t *ss_bw_data; + uint64_t pad4; + }; } __attribute__((packed)); struct jobs_eta { -- 2.25.1