]> Git Repo - linux.git/commit
perf/x86/intel/bts: Add BTS PMU driver
authorAlexander Shishkin <[email protected]>
Fri, 30 Jan 2015 10:40:35 +0000 (12:40 +0200)
committerIngo Molnar <[email protected]>
Thu, 2 Apr 2015 15:14:21 +0000 (17:14 +0200)
commit8062382c8dbe2dc11d37e7f0b139508cf10de9d4
treedec544a0c4018d46f17b73f0a696ccf1c9524aab
parent52ca9ced3f70779589e6ecc329baffe69d8f5f7a
perf/x86/intel/bts: Add BTS PMU driver

Add support for Branch Trace Store (BTS) via kernel perf event infrastructure.
The difference with the existing implementation of BTS support is that this
one is a separate PMU that exports events' trace buffers to userspace by means
of AUX area of the perf buffer, which is zero-copy mapped into userspace.

The immediate benefit is that the buffer size can be much bigger, resulting in
fewer interrupts and no kernel side copying is involved and little to no trace
data loss. Also, kernel code can be traced with this driver.

The old way of collecting BTS traces still works.

Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kaixu Xia <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/1422614435-114702-1-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_bts.c [new file with mode: 0644]
arch/x86/kernel/cpu/perf_event_intel_ds.c
This page took 0.057547 seconds and 4 git commands to generate.