perf: Disable PERF_SAMPLE_BRANCH_* when not supported
authorStephane Eranian <eranian@google.com>
Thu, 9 Feb 2012 22:20:59 +0000 (23:20 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 Mar 2012 13:55:42 +0000 (14:55 +0100)
commit2481c5fa6db0237e4f0168f88913178b2b495b7c
tree4d0e8e9616c8e83ca2a72abbc3ac94621adc49be
parent3e702ff6d1ea12dcf1c798ecb61e7f3a1579df42
perf: Disable PERF_SAMPLE_BRANCH_* when not supported

PERF_SAMPLE_BRANCH_* is disabled for:

 - SW events (sw counters, tracepoints)
 - HW breakpoints
 - ALL but Intel x86 architecture
 - AMD64 processors

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1328826068-11713-10-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/alpha/kernel/perf_event.c
arch/arm/kernel/perf_event.c
arch/mips/kernel/perf_event_mipsxx.c
arch/powerpc/kernel/perf_event.c
arch/sh/kernel/perf_event.c
arch/sparc/kernel/perf_event.c
arch/x86/kernel/cpu/perf_event_amd.c
kernel/events/core.c
kernel/events/hw_breakpoint.c