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)
commitd47e8238cd76f1ffa7c8cd30e08b8e9074fd597e
treec172174db097b3afd7b36cc90a5b790e35a9f5f6
parent6accb9cf76080422d400a641d9068b6b2a2c216f
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