]> git.baikalelectronics.ru Git - kernel.git/commit
perf, x86: Implement simple LBR support
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 3 Mar 2010 11:02:30 +0000 (12:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Mar 2010 12:23:32 +0000 (13:23 +0100)
commit042f4c00528d891a930dcdbf15300c722656ed9b
treefe07f997bd67d1e5ae3122db789d7e7361ddca28
parent6c1c0367a4d12e056d68dce1d7d1833919985f40
perf, x86: Implement simple LBR support

Implement simple suport Intel Last-Branch-Record, it supports all
hardware that implements FREEZE_LBRS_ON_PMI, but does not (yet) implement
the LBR config register.

The Intel LBR is a FIFO of From,To addresses describing the last few
branches the hardware took.

This patch does not add perf interface to the LBR, but merely provides an
interface for internal use.

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: <20100304140100.544191154@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_lbr.c [new file with mode: 0644]
include/linux/perf_event.h