From b2fcbe01bdac01bc5d7f8ddea94f264b9f8c2003 Mon Sep 17 00:00:00 2001 From: Omri Mor Date: Mon, 19 Jun 2017 16:41:51 -0600 Subject: [PATCH] Ensure that thread_stat alignment is correct clang seems to align this weirdly, and then fault when it isn't 128-bit aligned. Align it explicitly, so it does the right thing. Signed-off-by: Jens Axboe --- fio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.h b/fio.h index 963cf034..6c06a0cd 100644 --- a/fio.h +++ b/fio.h @@ -149,7 +149,7 @@ struct thread_data { unsigned int thread_number; unsigned int subjob_number; unsigned int groupid; - struct thread_stat ts __attribute__ ((aligned)); + struct thread_stat ts __attribute__ ((aligned(8))); int client_type; -- 2.25.1