Skip to content

Commit e5d01d2

Browse files
author
Fox Snowpatch
committed
1 parent 1ecdccb commit e5d01d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/perf/arch/powerpc/util/perf_regs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#define PVR_POWER9 0x004E
1818
#define PVR_POWER10 0x0080
19+
#define PVR_POWER11 0x0082
1920

2021
static const struct sample_reg sample_reg_masks[] = {
2122
SMPL_REG(r0, PERF_REG_POWERPC_R0),
@@ -207,7 +208,7 @@ uint64_t arch__intr_reg_mask(void)
207208
version = (((mfspr(SPRN_PVR)) >> 16) & 0xFFFF);
208209
if (version == PVR_POWER9)
209210
extended_mask = PERF_REG_PMU_MASK_300;
210-
else if (version == PVR_POWER10)
211+
else if ((version == PVR_POWER10) || (version == PVR_POWER11))
211212
extended_mask = PERF_REG_PMU_MASK_31;
212213
else
213214
return mask;

0 commit comments

Comments
 (0)