[PATCH 3/4] powerpc/perf: Rename some Power8 events
From: Sukadev Bhattiprolu
Date: Mon Nov 02 2015 - 15:25:48 EST
Rename following events to be consistent with the specs.
PM_L1_PREF to PM_LSU_L1_PREF
PM_PPC_CMPL to PM_INST_CMPL
Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxxxxxxxxxx>
---
arch/powerpc/perf/power8-events-list.h | 2 +-
arch/powerpc/perf/power8-pmu.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/perf/power8-events-list.h b/arch/powerpc/perf/power8-events-list.h
index 3262e26..69b1a25 100644
--- a/arch/powerpc/perf/power8-events-list.h
+++ b/arch/powerpc/perf/power8-events-list.h
@@ -21,7 +21,7 @@ EVENT(PM_BR_MPRED_CMPL, 0x400f6)
EVENT(PM_LD_REF_L1, 0x100ee)
EVENT(PM_LD_MISS_L1, 0x3e054)
EVENT(PM_ST_MISS_L1, 0x300f0)
-EVENT(PM_L1_PREF, 0x0d8b8)
+EVENT(PM_LSU_L1_PREF, 0x0d8b8)
EVENT(PM_INST_FROM_L1, 0x04080)
EVENT(PM_L1_ICACHE_MISS, 0x200fd)
EVENT(PM_L1_DEMAND_WRITE, 0x0408c)
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c
index 11848af..b453eb9 100644
--- a/arch/powerpc/perf/power8-pmu.c
+++ b/arch/powerpc/perf/power8-pmu.c
@@ -552,11 +552,11 @@ static int power8_get_alternatives(u64 event, unsigned int flags, u64 alt[])
case 0x600f4: /* PM_RUN_CYC */
alt[j++] = 0x1e;
break;
- case 0x2: /* PM_PPC_CMPL */
+ case 0x2: /* PM_INST_CMPL */
alt[j++] = 0x500fa; /* PM_RUN_INST_CMPL */
break;
case 0x500fa: /* PM_RUN_INST_CMPL */
- alt[j++] = 0x2; /* PM_PPC_CMPL */
+ alt[j++] = 0x2; /* PM_INST_CMPL */
break;
}
}
@@ -709,7 +709,7 @@ static int power8_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
[ C(RESULT_MISS) ] = PM_ST_MISS_L1,
},
[ C(OP_PREFETCH) ] = {
- [ C(RESULT_ACCESS) ] = PM_L1_PREF,
+ [ C(RESULT_ACCESS) ] = PM_LSU_L1_PREF,
[ C(RESULT_MISS) ] = 0,
},
},
--
2.5.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/