From: Vincent Fu Date: Tue, 6 Dec 2016 17:22:52 +0000 (-0500) Subject: steadystate: ensure that pointers in thread_stat occupy the same amount of storage... X-Git-Tag: fio-2.16~3^2~8 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cb84f1fa34f94b5766f54b13d6fea0f910197e72 steadystate: ensure that pointers in thread_stat occupy the same amount of storage in 32- and 64-bit platforms --- 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 {