From: Martin Peschke Date: Tue, 28 Oct 2008 16:07:57 +0000 (+0100) Subject: blkiomon: fix cross-arch data analysis issue X-Git-Tag: blktrace-1.0.0~7 X-Git-Url: https://git.kernel.dk/?p=blktrace.git;a=commitdiff_plain;h=7aa3ebcec011bfe9cc60d6476252c03376a37551 blkiomon: fix cross-arch data analysis issue This fixes cross-arch issues. Binary data gathered on System z could not be read on x86. Signed-off-by: Martin Peschke Signed-off-by: Jens Axboe --- diff --git a/blkiomon.h b/blkiomon.h index 2b1f7b2..f681ab8 100644 --- a/blkiomon.h +++ b/blkiomon.h @@ -40,7 +40,7 @@ struct blkiomon_stat { __u64 write; __u64 bidir; __u32 device; -}; +} __attribute__ ((packed)); static struct histlog2 size_hist = { .first = 0,