From: Vincent Fu Date: Tue, 6 Dec 2016 18:11:09 +0000 (-0500) Subject: steadystate: fix alignment in stat.h X-Git-Tag: fio-2.16~3^2~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=11e955e32698870b9da0414c778346f7377a8119 steadystate: fix alignment in stat.h This was not problematic in my Linux and OSX testing, but Windows clients did not successfully receive thread_stat without this padding. --- diff --git a/stat.h b/stat.h index 0a7bab18..b145b5ee 100644 --- a/stat.h +++ b/stat.h @@ -198,10 +198,10 @@ struct thread_stat { */ union { uint16_t continue_on_error; - uint64_t pad2; + uint32_t pad2; }; - uint64_t total_err_count; uint32_t first_error; + uint64_t total_err_count; uint64_t nr_block_infos; uint32_t block_infos[MAX_NR_BLOCK_INFOS]; @@ -210,6 +210,7 @@ struct thread_stat { uint32_t unit_base; uint32_t latency_depth; + uint32_t pad3; uint64_t latency_target; fio_fp64_t latency_percentile; uint64_t latency_window; @@ -225,12 +226,12 @@ struct thread_stat { union { uint64_t *ss_iops_data; - uint64_t pad3; + uint64_t pad4; }; union { uint64_t *ss_bw_data; - uint64_t pad4; + uint64_t pad5; }; } __attribute__((packed));