]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Fix PEBS instruction unwind
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 7 Oct 2011 11:36:40 +0000 (13:36 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 14 Nov 2011 12:01:20 +0000 (13:01 +0100)
commit18d8597a06bd459614a2e9186c594cd387d1bed0
tree80039cd44137c39e4ab400e642ee3751cb870f50
parentc3f4b5020b8a493532df6e3111c5dc7e9575294a
perf/x86: Fix PEBS instruction unwind

Masami spotted that we always try to decode the instruction stream as
64bit instructions when running a 64bit kernel, this doesn't work for
ia32-compat proglets.

Use TIF_IA32 to detect if we need to use the 32bit instruction
decoder.

Reported-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: stable@kernel.org
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel_ds.c