]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf, x86: Implement IBS interrupt handler
authorRobert Richter <robert.richter@amd.com>
Wed, 21 Apr 2010 14:29:26 +0000 (16:29 +0200)
committerRobert Richter <robert.richter@amd.com>
Thu, 15 Dec 2011 14:17:41 +0000 (15:17 +0100)
commit662355a5102099e4d0f9c752b541bdb9b7726d8e
tree2652e476ff61308facd3787822809c5db0aa10ea
parent5b9c9d73f1eb5df8bb89b01b05e89292c1130ec5
perf, x86: Implement IBS interrupt handler

This patch implements code to handle ibs interrupts. If ibs data is
available a raw perf_event data sample is created and sent back to the
userland. This patch only implements the storage of ibs data in the
raw sample, but this could be extended in a later patch by generating
generic event data such as the rip from the ibs sampling data.

V2:
* Added bit mask for msr offsets.
* Added caps field to raw sample format.
* Rebase on Don's NMI patches that introduce register_nmi_handler().

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/perf_event_amd_ibs.c