mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
6529870cb0
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 333804dc3b
("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>
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_ASM_POWERPC_PERF_REGS_H
|
|
#define _UAPI_ASM_POWERPC_PERF_REGS_H
|
|
|
|
enum perf_event_powerpc_regs {
|
|
PERF_REG_POWERPC_R0,
|
|
PERF_REG_POWERPC_R1,
|
|
PERF_REG_POWERPC_R2,
|
|
PERF_REG_POWERPC_R3,
|
|
PERF_REG_POWERPC_R4,
|
|
PERF_REG_POWERPC_R5,
|
|
PERF_REG_POWERPC_R6,
|
|
PERF_REG_POWERPC_R7,
|
|
PERF_REG_POWERPC_R8,
|
|
PERF_REG_POWERPC_R9,
|
|
PERF_REG_POWERPC_R10,
|
|
PERF_REG_POWERPC_R11,
|
|
PERF_REG_POWERPC_R12,
|
|
PERF_REG_POWERPC_R13,
|
|
PERF_REG_POWERPC_R14,
|
|
PERF_REG_POWERPC_R15,
|
|
PERF_REG_POWERPC_R16,
|
|
PERF_REG_POWERPC_R17,
|
|
PERF_REG_POWERPC_R18,
|
|
PERF_REG_POWERPC_R19,
|
|
PERF_REG_POWERPC_R20,
|
|
PERF_REG_POWERPC_R21,
|
|
PERF_REG_POWERPC_R22,
|
|
PERF_REG_POWERPC_R23,
|
|
PERF_REG_POWERPC_R24,
|
|
PERF_REG_POWERPC_R25,
|
|
PERF_REG_POWERPC_R26,
|
|
PERF_REG_POWERPC_R27,
|
|
PERF_REG_POWERPC_R28,
|
|
PERF_REG_POWERPC_R29,
|
|
PERF_REG_POWERPC_R30,
|
|
PERF_REG_POWERPC_R31,
|
|
PERF_REG_POWERPC_NIP,
|
|
PERF_REG_POWERPC_MSR,
|
|
PERF_REG_POWERPC_ORIG_R3,
|
|
PERF_REG_POWERPC_CTR,
|
|
PERF_REG_POWERPC_LINK,
|
|
PERF_REG_POWERPC_XER,
|
|
PERF_REG_POWERPC_CCR,
|
|
PERF_REG_POWERPC_SOFTE,
|
|
PERF_REG_POWERPC_TRAP,
|
|
PERF_REG_POWERPC_DAR,
|
|
PERF_REG_POWERPC_DSISR,
|
|
PERF_REG_POWERPC_SIER,
|
|
PERF_REG_POWERPC_MMCRA,
|
|
PERF_REG_POWERPC_MAX,
|
|
};
|
|
#endif /* _UAPI_ASM_POWERPC_PERF_REGS_H */
|