powerpc/perf: Always use pt_regs for userspace samples
authorAnton Blanchard <anton@samba.org>
Tue, 26 Jun 2012 01:02:15 +0000 (01:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Jul 2012 09:18:43 +0000 (19:18 +1000)
commit5c093efa6f2dd07d45835be870a20ed3b05b6ef5
tree3f089f5c5c4c2a6bc2633df1e3b4f28289361402
parent75382aa72f06823db7312ad069c3bae2eb3f8548
powerpc/perf: Always use pt_regs for userspace samples

At the moment we always use the SIAR if the PMU supports continuous
sampling. Unfortunately the SIAR and the PMU exception are not
synchronised for non marked events so we can end up with callchains
that dont make sense.

The following patch checks the HV and PR bits for samples coming from
userspace and always uses pt_regs for them. Userspace will never have
interrupts off so there is no real advantage to using the SIAR for
non marked events in userspace.

I had experimented with a patch that did a similar thing for kernel
samples but we lost a significant amount of information. I was
unable to profile any of our early exception code for example.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/core-book3s.c
This page took 0.025168 seconds and 5 git commands to generate.