lkml.org 
[lkml]   [2015]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] powerpc/perf: Rename some Power8 events
Date
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@linux.vnet.ibm.com>
---
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


\
 
 \ /
  Last update: 2015-11-02 21:41    [W:1.178 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site