summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>2021-02-03 09:55:35 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-02-08 17:09:44 +0300
commit91f3469a43fd1fb831649c2a2e684bf5ad4818b2 (patch)
tree16019c3546dba5978321de157634d6be34a81530 /mm
parent266d8f7586533a4c473ccb392204e32df99b72b5 (diff)
downloadlinux-91f3469a43fd1fb831649c2a2e684bf5ad4818b2.tar.xz
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 <atrajeev@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1612335337-1888-2-git-send-email-atrajeev@linux.vnet.ibm.com
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions