aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMadhavan Srinivasan <[email protected]>2021-04-29 10:32:08 +0530
committerMichael Ellerman <[email protected]>2022-06-29 19:42:41 +1000
commit5969e0c1c7e2132d8b2cf80168072b1195ddce46 (patch)
tree216808b242c1c1429aa32d6ec5d0246d140025b5 /tools/perf/scripts/python/bin
parenta28a2eff1e0ff684f51b3dc6371ff5b651a063d4 (diff)
powerpc/perf: Update MMCR2 to support event exclude_idle
struct perf_event_attr supports exclude counting of idle task. This is sent to kernel via perf_event_attr.exclude_idle and in perf tool, user can use ":I" event modifier to enable this for specific event. Monitor Mode Control Register 2 (MMCR2) SPR has control bits for each PMCs to freeze counting based on the Control Register CTRL[RUN] state. CTRL[RUN] is not set when idle task is running. Patch adds a check for event attr.exclude_idle to set MMCR2[FCnWAIT] bit. Signed-off-by: Madhavan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions