Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chris Freehill and committed by
Benjamin Herrenschmidt
15fab56e fe3955cb

+2
+2
arch/powerpc/perf/e500-pmu.c
··· 24 24 [PERF_COUNT_HW_CACHE_MISSES] = 41, /* Data L1 cache reloads */ 25 25 [PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = 12, 26 26 [PERF_COUNT_HW_BRANCH_MISSES] = 15, 27 + [PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 18, 28 + [PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 19, 27 29 }; 28 30 29 31 #define C(x) PERF_COUNT_HW_CACHE_##x