Re: [PATCH] perf timechart: Fix SIBGUS error on sparc64

From: David Ahern
Date: Tue Mar 24 2015 - 17:28:37 EST


On 3/24/15 3:15 PM, Arnaldo Carvalho de Melo wrote:
/me scratches head, should be missing something embarassingly simple :-/


ptr = sample->raw_data + field->offset;

raw_data is *guaranteed* to be misaligned. From kernel/events/core.c:

struct {
u32 size;
u32 data;
} raw = {
.size = sizeof(u32),
.data = 0,
};

Raw data starts at 64-bit alignment, but that u32 means data is NOT 8-byte aligned. :-(

David

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/