summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChris Freehill <chrisf@freescale.com>2012-12-05 16:32:46 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-01-10 10:00:56 +0400
commit15fab56ecae2cba7e9f6663979bb160c11a9c506 (patch)
tree93ad93542aa44b6fb8be8fe6c13eea5033284fd8 /arch
parentfe3955cb297290b0d5dedf5d2694a7cef455010e (diff)
downloadlinux-15fab56ecae2cba7e9f6663979bb160c11a9c506.tar.xz
powerpc/perf: Add stalled-cycles events
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> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/perf/e500-pmu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/perf/e500-pmu.c b/arch/powerpc/perf/e500-pmu.c
index cb2e2949c8d1..fb664929f5da 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