aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/power9-events-list.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2017-06-19 09:51:28 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-12 12:21:49 +1000
commit3f0bd8dad0db73f5d71b355aec5ab33b374260ba (patch)
treefc2e88152e4af97191bd36985cc934a7213af95d /arch/powerpc/perf/power9-events-list.h
parentpowerpc/perf: Fix SDAR_MODE value for continous sampling on Power9 (diff)
downloadlinux-dev-3f0bd8dad0db73f5d71b355aec5ab33b374260ba.tar.xz
linux-dev-3f0bd8dad0db73f5d71b355aec5ab33b374260ba.zip
powerpc/perf: Add POWER9 alternate PM_RUN_CYC and PM_RUN_INST_CMPL events
Similar to POWER8, POWER9 can count run cycles and run instructions completed on more than one PMU. Signed-off-by: Anton Blanchard <anton@samba.org> Acked-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/power9-events-list.h')
-rw-r--r--arch/powerpc/perf/power9-events-list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/perf/power9-events-list.h b/arch/powerpc/perf/power9-events-list.h
index 80204e064362..50689180a6c1 100644
--- a/arch/powerpc/perf/power9-events-list.h
+++ b/arch/powerpc/perf/power9-events-list.h
@@ -51,8 +51,12 @@ EVENT(PM_DTLB_MISS, 0x300fc)
EVENT(PM_ITLB_MISS, 0x400fc)
/* Run_Instructions */
EVENT(PM_RUN_INST_CMPL, 0x500fa)
+/* Alternate event code for PM_RUN_INST_CMPL */
+EVENT(PM_RUN_INST_CMPL_ALT, 0x400fa)
/* Run_cycles */
EVENT(PM_RUN_CYC, 0x600f4)
+/* Alternate event code for Run_cycles */
+EVENT(PM_RUN_CYC_ALT, 0x200f4)
/* Instruction Dispatched */
EVENT(PM_INST_DISP, 0x200f2)
EVENT(PM_INST_DISP_ALT, 0x300f2)