]> 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)
commit55286267271f19306d4c06ca344464ebb1518ec6
treec172174db097b3afd7b36cc90a5b790e35a9f5f6
parent4ba9178a5a36fdc8d60d2f34020a74d16cba86df
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