]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Update perf_regs structure to include MMCRA
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 9 Dec 2018 09:25:36 +0000 (14:55 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Jan 2019 08:22:47 +0000 (19:22 +1100)
commitae0c98ae4e4bc2adb947205090ba0070ff6f3d9f
tree0c872b0687b7bcdf74da380b341fbb3ca347598c
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
powerpc/perf: Update perf_regs structure to include MMCRA

On each sample, Monitor Mode Control Register A (MMCRA) content is
saved in pt_regs. MMCRA does not have a entry as-is in the pt_regs but
instead, MMCRA content is saved in the "dsisr" register of pt_regs.

Patch adds another entry to the perf_regs structure to include the
"MMCRA" printing which internally maps to the "dsisr" of pt_regs.

It also check for the MMCRA availability in the platform and present
value accordingly

mpe: This was the 2nd patch in a series with commit 2d38af7b8e0e
("powerpc/perf: Update perf_regs structure to include SIER") but I
accidentally only merged the 1st patch, so merge this one now.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/uapi/asm/perf_regs.h
arch/powerpc/perf/perf_regs.c
tools/arch/powerpc/include/uapi/asm/perf_regs.h
tools/perf/arch/powerpc/include/perf_regs.h
tools/perf/arch/powerpc/util/perf_regs.c