summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorVincent Fu <Vincent.Fu@sandisk.com>2016-12-06 12:22:52 -0500
committerVincent Fu <Vincent.Fu@sandisk.com>2016-12-07 16:03:18 -0500
commitcb84f1fa34f94b5766f54b13d6fea0f910197e72 (patch)
tree471bd34fe26590342bd38170f57393d1589c528b /stat.h
parentb56cc3de647de9be4456d268700700506b189e11 (diff)
downloadfio-cb84f1fa34f94b5766f54b13d6fea0f910197e72.tar.gz
fio-cb84f1fa34f94b5766f54b13d6fea0f910197e72.tar.bz2
steadystate: ensure that pointers in thread_stat occupy the same amount of storage in 32- and 64-bit platforms
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h13
1 files 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 {