aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorMadhavan Srinivasan <[email protected]>2022-01-27 12:49:55 +0530
committerMichael Ellerman <[email protected]>2022-03-01 23:38:12 +1100
commit6523dce86222451e5ca2df8a46597a217084bfdf (patch)
treeeff8f7bd95d4d150ef5ab023f986fc26d4a1734c /tools/perf/scripts/python/bin/stackcollapse-report
parentc315669e2fbd71bb9387066f60f0d91b0ceb28f3 (diff)
selftests/powerpc/pmu: Add macros to parse event codes
Each platform has raw event encoding format which specifies the bit positions for different fields. The fields from event code gets translated into performance monitoring mode control register (MMCRx) settings. Patch add macros to extract individual fields from the event code. Add functions for sanity checks, since testcases currently are only supported in power9 and power10. Signed-off-by: Madhavan Srinivasan <[email protected]> [mpe: Read PVR directly rather than using /proc/cpuinfo] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions