]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Add support for sampling interrupt register state
authorAnju T <anju@linux.vnet.ibm.com>
Sat, 20 Feb 2016 05:02:46 +0000 (10:32 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Apr 2016 13:32:59 +0000 (23:32 +1000)
commitb317a68c267c08c4d814933787e461e5154c9fe7
tree52291203962d97f8688bde489852a04971dce2b3
parent8f811194be71c5ac0aa36474f6e8a1ca02e16500
powerpc/perf: Add support for sampling interrupt register state

The perf infrastructure uses a bit mask to find out valid registers to
display. Define a register mask for supported registers defined in
uapi/asm/perf_regs.h. The bit positions also correspond to register IDs
which is used by perf infrastructure to fetch the register values.
CONFIG_HAVE_PERF_REGS enables sampling of the interrupted machine state.

Signed-off-by: Anju T <anju@linux.vnet.ibm.com>
[mpe: Add license, use CONFIG_PPC64, fix 32-bit build]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/perf/Makefile
arch/powerpc/perf/perf_regs.c [new file with mode: 0644]