summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-01-25 09:51:07 -0700
committerJens Axboe <axboe@kernel.dk>2018-01-25 09:51:07 -0700
commit1e900e2d160577918d43bb6aa3253521204d16cd (patch)
treec1bffce8eda3e3e116ce1e3e01a3df5dd4aab5ef /stat.h
parent7f3ecee2f6dd2aa40c0404a40d0406d9efc765f2 (diff)
downloadfio-1e900e2d160577918d43bb6aa3253521204d16cd.tar.gz
fio-1e900e2d160577918d43bb6aa3253521204d16cd.tar.bz2
stat: ensure that we align ts->sync_stat appropriately
clang correctly complains that we don't know if the alignment is correct when the structure is packed, so ensure that we align it to an 8-byte boundary. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.h b/stat.h
index fd5131f9..cc91dfcc 100644
--- a/stat.h
+++ b/stat.h
@@ -159,10 +159,10 @@ struct thread_stat {
/*
* bandwidth and latency stats
*/
+ struct io_stat sync_stat __attribute__((aligned(8)));/* fsync etc stats */
struct io_stat clat_stat[DDIR_RWDIR_CNT]; /* completion latency */
struct io_stat slat_stat[DDIR_RWDIR_CNT]; /* submission latency */
struct io_stat lat_stat[DDIR_RWDIR_CNT]; /* total latency */
- struct io_stat sync_stat; /* fsync etc stats */
struct io_stat bw_stat[DDIR_RWDIR_CNT]; /* bandwidth stats */
struct io_stat iops_stat[DDIR_RWDIR_CNT]; /* IOPS stats */