• Frederic Weisbecker's avatar
    perf: Fix unaligned accesses while fetching trace values · 85cb68b2
    Frederic Weisbecker authored
    Accessing trace values of an 8 size may end up in a segfault
    on archs that can't deal with misaligned access, which is the
    case for sparc 64. This is because PERF_SAMPLE_RAW are aligned
    to 4 and not to 8.
    
    Fix this on the macros that get the values of 8 size.
    
    This fixes segfaults on perf tools in sparc 64.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    Cc: Masami Hiramatsu <mhiramat@redhat.com>
    Cc: David Miller <davem@davemloft.net>
    85cb68b2
trace-event.h 6.27 KB