Patchwork powerpc/perf: Add stalled-cycles events

login
register
mail settings
Submitter Chris Freehill
Date Dec. 5, 2012, 10:32 p.m.
Message ID <1354746766-29662-1-git-send-email-chrisf@freescale.com>
Download mbox | patch
Permalink /patch/204030/
State Accepted
Commit 15fab56ecae2cba7e9f6663979bb160c11a9c506
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Chris Freehill - Dec. 5, 2012, 10:32 p.m.
Support for stalled-cycles-frontend and stalled-cycles-backend is
added for e500-based processors. 

The following mappings are used:

stalled-cycles-frontend or idle-cycles-frontend:
Com:18 Cycles decode stalled

stalled-cycles-backend or idle-cycles-backend
Com:19 cycles issue stalled

Signed-off-by: Chris Freehill <chrisf@freescale.com>
---
 arch/powerpc/perf/e500-pmu.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/arch/powerpc/perf/e500-pmu.c b/arch/powerpc/perf/e500-pmu.c
index cb2e294..fb66492 100644
--- a/arch/powerpc/perf/e500-pmu.c
+++ b/arch/powerpc/perf/e500-pmu.c
@@ -24,6 +24,8 @@  static int e500_generic_events[] = {
 	[PERF_COUNT_HW_CACHE_MISSES] = 41, /* Data L1 cache reloads */
 	[PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = 12,
 	[PERF_COUNT_HW_BRANCH_MISSES] = 15,
+	[PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 18,
+	[PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 19,
 };
 
 #define C(x)	PERF_COUNT_HW_CACHE_##x