x86, perf: Disable non available architectural events
authorGleb Natapov <gleb@redhat.com>
Thu, 10 Nov 2011 12:57:26 +0000 (14:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Dec 2011 19:41:05 +0000 (20:41 +0100)
commitffb871bc9156ee2e5cf442f61250c5bd6aad17e3
treeb69b5201d5ad2e54dedbdc07d4b8de5ac1f22be8
parentac99b862fb98a36929831791da31714f709c2aa8
x86, perf: Disable non available architectural events

Intel CPUs report non-available architectural events in cpuid leaf
0AH.EBX. Use it to disable events that are not available according
to CPU.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1320929850-10480-7-git-send-email-gleb@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c