powerpc/perf: Cleanup of PM_BR_CMPL vs. PM_BRU_CMPL in power9 event list
PATCH 1/2 powerpc/perf: Cleanup of PM_BR_CMPL vs. PM_BRU_CMPL in power9 event list
Fixes 34922527a2bcb ('powerpc/perf: Add power9 event list macros for generic and cache events')
Signed-off-by Madhavan Srinivasan <[email protected]>
--- arch/powerpc/perf/power9-events-list.h | 2 +- arch/powerpc/perf/power9-pmu.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-)
arch/powerpc/perf/power9-events-list.h +1 -1
@@ -16,7 +16,7 @@ EVENT(PM_CYC, 0x0001e) EVENT(PM_ICT_NOSLOT_CYC, 0x100f8) EVENT(PM_CMPLU_STALL, 0x1e054) EVENT(PM_INST_CMPL, 0x00002) -EVENT(PM_BRU_CMPL, 0x40060) +EVENT(PM_BR_CMPL, 0x40060)EVENT (PM_BR_MPRED_CMPL ,0x400f6 )/* All L1 D cache load references counted at finish, gated by reject */
arch/powerpc/perf/power9-pmu.c +6 -6
@@ -110,7 +110,7 @@ GENERIC_EVENT_ATTR(cpu-cycles, PM_CYC);GENERIC_EVENT_ATTR (stalled-cycles-frontend,PM_ICT_NOSLOT_CYC );GENERIC_EVENT_ATTR (stalled-cycles-backend,PM_CMPLU_STALL );GENERIC_EVENT_ATTR (instructions,PM_INST_CMPL ); -GENERIC_EVENT_ATTR (branch-instructions,PM_BRU_CMPL ); +GENERIC_EVENT_ATTR (branch-instructions,PM_BR_CMPL );GENERIC_EVENT_ATTR (branch-misses,PM_BR_MPRED_CMPL );GENERIC_EVENT_ATTR (cache-references,PM_LD_REF_L1 );GENERIC_EVENT_ATTR (cache-misses,PM_LD_MISS_L1_FIN );
@@ -128,7 +128,7 @@ CACHE_EVENT_ATTR(LLC-prefetches, PM_L3_PREF_ALL);CACHE_EVENT_ATTR (LLC -store-misses,PM_L2_ST_MISS );CACHE_EVENT_ATTR (LLC -stores,PM_L2_ST );CACHE_EVENT_ATTR (branch-load-misses,PM_BR_MPRED_CMPL ); -CACHE_EVENT_ATTR (branch-loads,PM_BRU_CMPL ); +CACHE_EVENT_ATTR (branch-loads,PM_BR_CMPL );CACHE_EVENT_ATTR (dTLB-load-misses,PM_DTLB_MISS );CACHE_EVENT_ATTR (iTLB-load-misses,PM_ITLB_MISS );
@@ -137,7 +137,7 @@ static struct attribute *power9_events_attr[] = {GENERIC_EVENT_PTR (PM_ICT_NOSLOT_CYC ),GENERIC_EVENT_PTR (PM_CMPLU_STALL ),GENERIC_EVENT_PTR (PM_INST_CMPL ), -GENERIC_EVENT_PTR (PM_BRU_CMPL ), +GENERIC_EVENT_PTR (PM_BR_CMPL ),GENERIC_EVENT_PTR (PM_BR_MPRED_CMPL ),GENERIC_EVENT_PTR (PM_LD_REF_L1 ), GENERIC_EVENT_PTR(PM_LD_MISS_L1_FIN),
@@ -154,7 +154,7 @@ static struct attribute *power9_events_attr[] = {CACHE_EVENT_PTR (PM_L2_ST_MISS ),CACHE_EVENT_PTR (PM_L2_ST ),CACHE_EVENT_PTR (PM_BR_MPRED_CMPL ), -CACHE_EVENT_PTR (PM_BRU_CMPL ), +CACHE_EVENT_PTR (PM_BR_CMPL ),CACHE_EVENT_PTR (PM_DTLB_MISS ),CACHE_EVENT_PTR (PM_ITLB_MISS ),NULL
@@ -218,7 +218,7 @@ static int power9_generic_events[] = { [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = PM_ICT_NOSLOT_CYC, [PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = PM_CMPLU_STALL, [PERF_COUNT_HW_INSTRUCTIONS] = PM_INST_CMPL, - [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = PM_BRU_CMPL, + [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = PM_BR_CMPL, [PERF_COUNT_HW_BRANCH_MISSES] = PM_BR_MPRED_CMPL, [PERF_COUNT_HW_CACHE_REFERENCES] = PM_LD_REF_L1, [PERF_COUNT_HW_CACHE_MISSES] = PM_LD_MISS_L1_FIN,
@@ -344,7 +344,7 @@ static int power9_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { }, [ C(BPU) ] = { [ C(OP_READ) ] = { - [ C(RESULT_ACCESS) ] = PM_BRU_CMPL, + [ C(RESULT_ACCESS) ] = PM_BR_CMPL, [ C(RESULT_MISS) ] = PM_BR_MPRED_CMPL, }, [ C(OP_WRITE) ] = {
Signature · 1 line
2.7.4
PATCH 2/2 powerpc/perf: fix PM_BR_CMPL event code for power9
Use 0x10012 event code for PM_BR_CMPL event in
power9 event list instead of current 0x40060.
Fixes 34922527a2bcb ('powerpc/perf: Add power9 event list macros for generic and cache events')
Signed-off-by Madhavan Srinivasan <[email protected]>
--- arch/powerpc/perf/power9-events-list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/perf/power9-events-list.h +1 -1
@@ -16,7 +16,7 @@ EVENT(PM_CYC, 0x0001e) EVENT(PM_ICT_NOSLOT_CYC, 0x100f8) EVENT(PM_CMPLU_STALL, 0x1e054) EVENT(PM_INST_CMPL, 0x00002) -EVENT(PM_BR_CMPL, 0x40060) +EVENT(PM_BR_CMPL, 0x10012)EVENT (PM_BR_MPRED_CMPL ,0x400f6 )/* All L1 D cache load references counted at finish, gated by reject */
Signature · 1 line
2.7.4
Michael Ellerman
AppliedRe: [2/2] powerpc/perf: fix PM_BR_CMPL event code for power9
Quoted 5 lines · Madhavan Srinivasan
Use
0x10012event code forPM_BR_CMPLevent in
power9 event list instead of current0x40060.Fixes 34922527a2bcb ('powerpc/perf: Add power9 event list macros for generic and cache events')Signed-off-by Madhavan Srinivasan <[email protected]>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/d89f473ff6f84872e761419f7233d6
cheers
Michael Ellerman
AppliedQuoted 2 lines · Madhavan Srinivasan
Fixes 34922527a2bcb ('powerpc/perf: Add power9 event list macros for generic and cache events')Signed-off-by Madhavan Srinivasan <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/93fc5ca9a0048c17b47582051940bf
cheers