perf, x86: Implement IBS initialization
authorRobert Richter <robert.richter@amd.com>
Wed, 21 Sep 2011 09:30:18 +0000 (11:30 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 10 Oct 2011 04:57:16 +0000 (06:57 +0200)
commitb716916679e72054d436afadce2f94dcad71cfad
tree86e90ea74a78fb42276868c3ecd1af714d9e5b20
parentee5789dbcc800ba7d641443e53f60d53977f9747
perf, x86: Implement IBS initialization

This patch implements IBS feature detection and initialzation. The
code is shared between perf and oprofile. If IBS is available on the
system for perf, a pmu is setup.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1316597423-25723-3-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/perf_event_amd_ibs.c [new file with mode: 0644]
arch/x86/oprofile/nmi_int.c
arch/x86/oprofile/op_model_amd.c
arch/x86/oprofile/op_x86_model.h