powerpc/perf: Use perf_instruction_pointer in callchains
authorAnton Blanchard <anton@samba.org>
Tue, 26 Jun 2012 01:04:20 +0000 (01:04 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Jul 2012 09:18:46 +0000 (19:18 +1000)
commit6da7094810df5408e32528024cb783f920c87a2c
tree5ee5d33f21e0ae02ed371e47a471b7716291a151
parent5c093efa6f2dd07d45835be870a20ed3b05b6ef5
powerpc/perf: Use perf_instruction_pointer in callchains

We use SIAR or regs->nip for the instruction pointer depending on
the PMU configuration, but we always use regs->nip in the callchain.

Use perf_instruction_pointer so the backtrace is consistent.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/callchain.c