fio: fix alignement to prevent bus error on ARM
authorGwendal Grignou <gwendal@chromium.org>
Fri, 24 Oct 2014 20:42:37 +0000 (13:42 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 24 Oct 2014 20:43:52 +0000 (14:43 -0600)
Add a filler field to be ensure 64bit alignment.
Otherwise, we would trigger SIGBUS error in sum_stat()

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.h

diff --git a/stat.h b/stat.h
index 32ea22694e75e173db8df7252e10288150c577f1..9595e59ecef31c8c5207b0c418489ba242076feb 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -172,6 +172,7 @@ struct thread_stat {
         * IO Error related stats
         */
        uint16_t continue_on_error;
         * IO Error related stats
         */
        uint16_t continue_on_error;
+       uint16_t filler[3];
        uint64_t total_err_count;
        uint32_t first_error;
 
        uint64_t total_err_count;
        uint32_t first_error;