]> git.baikalelectronics.ru Git - kernel.git/commit
perf events, powerpc: Add POWER7 stalled-cycles-frontend/backend events
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Thu, 8 Sep 2011 21:12:06 +0000 (21:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 Sep 2011 06:12:56 +0000 (16:12 +1000)
commitc8101a4b1d01299a187539cee3ddc0ca9bd58863
tree9f2ba8281a494b9efa7ac668a954880967a7b80b
parentf09d9b43e428768b56abefc233a3b8c2db6b9bc9
perf events, powerpc: Add POWER7 stalled-cycles-frontend/backend events

perf events, powerpc: Add POWER7 stalled-cycles-frontend/backend events

Extent the POWER7 PMU driver with definitions for generic front-end and back-end
stall events.

As explained in Ingo's original comment(c41e7c448105fa079c71afc8d3a30ca721c1d61d
), the exact definitions of the stall events are very much processor specific as

different things mean different in their respective instruction pipeline. These
two Power7 raw events are the closest approximation to the concept detailed in
Ingo's comment.

[PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 0x100f8, /* GCT_NOSLOT_CYC */
It means cycles when the Global Completion Table has no slots from this thread

[PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 0x4000a,  /* CMPLU_STALL */
It means no groups completed and GCT not empty for this thread

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/power7-pmu.c