]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86-ibs: Take instruction pointer from ibs sample
authorRobert Richter <robert.richter@amd.com>
Mon, 2 Apr 2012 18:19:11 +0000 (20:19 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:23:13 +0000 (15:23 +0200)
commita97271a6c53efca1672a0ac1c5557ec9a96a3e21
treec172174db097b3afd7b36cc90a5b790e35a9f5f6
parentc2f2efaa8c3c447b969b765d9cb9c629b741fc0f
perf/x86-ibs: Take instruction pointer from ibs sample

Each IBS sample contains a linear address of the instruction that
caused the sample to trigger. This address is more precise than the
rip that was taken from the interrupt handler's stack. Update the rip
with that address. We use this in the next patch to implement
precise-event sampling on AMD systems using IBS.

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/1333390758-10893-6-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event_amd_ibs.c