From: Omri Mor Date: Mon, 19 Jun 2017 22:41:51 +0000 (-0600) Subject: Ensure that thread_stat alignment is correct X-Git-Tag: fio-2.99~73 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=b2fcbe01bdac01bc5d7f8ddea94f264b9f8c2003;p=fio.git 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 --- 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;