aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorAthira Rajeev <[email protected]>2021-02-03 01:55:35 -0500
committerMichael Ellerman <[email protected]>2021-02-09 01:09:44 +1100
commit91f3469a43fd1fb831649c2a2e684bf5ad4818b2 (patch)
tree16019c3546dba5978321de157634d6be34a81530 /tools/perf/scripts/python/flamegraph.py
parent266d8f7586533a4c473ccb392204e32df99b72b5 (diff)
powerpc/perf: Include PMCs as part of per-cpu cpuhw_events struct
To support capturing of PMC's as part of extended registers, the value of SPR's PMC1 to PMC6 has to be saved in the starting of PMI interrupt handler. This is needed since we are resetting the overflown PMC before creating sample and hence directly reading SPRN_PMCx in 'perf_reg_value' will be capturing the modified value. To solve this, add a per-cpu array as part of structure cpu_hw_events and use this array to capture PMC values in the perf interrupt handler. Patch also re-factor's the interrupt handler code to use this per-cpu array instead of current local array. Signed-off-by: Athira Rajeev <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions