From: Frederic Weisbecker Date: Thu, 20 May 2010 08:34:59 +0000 (+0200) Subject: perf: Fix unaligned accesses while fetching trace values X-Git-Tag: v2.6.35-rc1~30^2~22^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85cb68b27c428d477169f3aa46c72dba103a17bd;p=pandora-kernel.git perf: Fix unaligned accesses while fetching trace values 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: Frederic Weisbecker Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: Steven Rostedt Cc: Tom Zanussi Cc: Masami Hiramatsu Cc: David Miller --- Reading git-diff-tree failed