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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to