perf, x86: Robustify PEBS fixup
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 5 Mar 2010 15:29:14 +0000 (16:29 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:35 +0000 (13:23 +0100)
commita562b1871f7f7d2f3a835c3c1e07fa58d473cfb7
tree7e86700841691eb86b2ec41ca7f9bc1e29588a42
parent74846d35b24b6efd61bb88a0a750b6bb257e6e78
perf, x86: Robustify PEBS fixup

It turns out the LBR is massively unreliable on certain CPUs, so code the
fixup a little more defensive to avoid crashing the kernel.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: paulus@samba.org
Cc: eranian@google.com
Cc: robert.richter@amd.com
Cc: fweisbec@gmail.com
LKML-Reference: <20100305154129.042271287@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event_intel_ds.c