lkml.org 
[lkml]   [2015]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf timechart: Fix SIBGUS error on sparc64
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



\
 
 \ /
  Last update: 2015-03-24 22:41    [W:0.064 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site