X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=libfio.c;h=7eff63b4cbdaa6c3372b1479ad3f64d3d982d210;hp=5a996f9cbd6e9f35d09709ad70ff78d3a3365c69;hb=976a77566d8b735fd0c064f33332aa4e0204122c;hpb=24081c9bea3dae81103f57b4ba897006886d24f9 diff --git a/libfio.c b/libfio.c index 5a996f9c..7eff63b4 100644 --- a/libfio.c +++ b/libfio.c @@ -297,6 +297,14 @@ int initialize_fio(char *envp[]) { long ps; + /* + * We need these to be properly 64-bit aligned, otherwise we + * can run into problems on archs that fault on unaligned fp + * access (ARM). + */ + compiletime_assert((offsetof(struct thread_stat, percentile_list) % 8) == 0, "fp align"); + compiletime_assert((offsetof(struct thread_stat, latency_percentile) % 8) == 0, "fp align"); + if (endian_check()) { log_err("fio: endianness settings appear wrong.\n"); log_err("fio: please report this to fio@vger.kernel.org\n");