summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorVincent Fu <Vincent.Fu@sandisk.com>2016-12-06 13:11:09 -0500
committerVincent Fu <Vincent.Fu@sandisk.com>2016-12-07 16:03:39 -0500
commit11e955e32698870b9da0414c778346f7377a8119 (patch)
treef67a54a0934712a20af155de657b2a81bc71e87e /stat.h
parentcb84f1fa34f94b5766f54b13d6fea0f910197e72 (diff)
downloadfio-11e955e32698870b9da0414c778346f7377a8119.tar.gz
fio-11e955e32698870b9da0414c778346f7377a8119.tar.bz2
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.
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h9
1 files changed, 5 insertions, 4 deletions
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));