]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
powerpc/perf: Add support for SIER
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 25 Apr 2013 19:28:27 +0000 (19:28 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Apr 2013 06:11:10 +0000 (16:11 +1000)
commit8f61aa325fab3a40b7c847bd35601ad99d7959c9
treea778e0cdef0a9bf3138246fe56817125282e9eeb
parent860aad71fc7022e5a3907afe50fd96a11e546802
powerpc/perf: Add support for SIER

On power8 we have a new SIER (Sampled Instruction Event Register), which
captures information about instructions when we have random sampling
enabled.

Add support for loading the SIER into pt_regs, overloading regs->dar.
Also set the new NO_SIPR flag in regs->result if we don't have SIPR.

Update regs_sihv/sipr() to look for SIPR/SIHV in SIER.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/perf_event_server.h
arch/powerpc/include/asm/reg.h
arch/powerpc/perf/core-book3s.c