]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:44 +0000 (08:52 -0800)
commit1e52c65de4b0f35f79ffa0a692f0a1174c7cf7ab
treef1bbc123d2128b7b037d2d9c205924de988b883b
parent347736f0fa8ffc5f89df7bc507a0beb90a5127b5
perf/x86: Fix PEBS instruction unwind

commit 57d1c0c03c6b48b2b96870d831b9ce6b917f53ac upstream.

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>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/perf_event_intel_ds.c