powerpc/perf: Add PM_LD_MISS_L1 and PM_BR_2PATH to power9 event list
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Mon, 31 Jul 2017 09:33:21 +0000 (15:03 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 12:30:05 +0000 (22:30 +1000)
Add couple of more events (PM_LD_MISS_L1 and PM_BR_2PATH) to
power9 event list and power9_event_alternatives array (these
events can be counted in more than one PMC).

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/power9-events-list.h
arch/powerpc/perf/power9-pmu.c

index 50689180a6c1285f03448069989124c2788b17ad..3910dd81919d81f8447b0c2cd742213f21b52eb1 100644 (file)
@@ -23,6 +23,9 @@ EVENT(PM_BR_MPRED_CMPL,                               0x400f6)
 EVENT(PM_LD_REF_L1,                            0x100fc)
 /* Load Missed L1 */
 EVENT(PM_LD_MISS_L1_FIN,                       0x2c04e)
+EVENT(PM_LD_MISS_L1,                           0x3e054)
+/* Alternate event code for PM_LD_MISS_L1 */
+EVENT(PM_LD_MISS_L1_ALT,                       0x400f0)
 /* Store Missed L1 */
 EVENT(PM_ST_MISS_L1,                           0x300f0)
 /* L1 cache data prefetches */
@@ -62,3 +65,7 @@ EVENT(PM_INST_DISP,                           0x200f2)
 EVENT(PM_INST_DISP_ALT,                                0x300f2)
 /* Alternate Branch event code */
 EVENT(PM_BR_CMPL_ALT,                          0x10012)
+/* Branch event that are not strongly biased */
+EVENT(PM_BR_2PATH,                             0x20036)
+/* ALternate branch event that are not strongly biased */
+EVENT(PM_BR_2PATH_ALT,                         0x40036)
index d83aa24b77d46ffbc88e07dca2372a0c5e0ed080..bbf675983f21090db23ffe77f7a5def260f653af 100644 (file)
@@ -109,6 +109,8 @@ static const unsigned int power9_event_alternatives[][MAX_ALT] = {
        { PM_INST_DISP,                 PM_INST_DISP_ALT },
        { PM_RUN_CYC_ALT,               PM_RUN_CYC },
        { PM_RUN_INST_CMPL_ALT,         PM_RUN_INST_CMPL },
+       { PM_LD_MISS_L1,                PM_LD_MISS_L1_ALT },
+       { PM_BR_2PATH,                  PM_BR_2PATH_ALT },
 };
 
 static int power9_get_alternatives(u64 event, unsigned int flags, u64 alt[])