]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arch/powerpc/perf: Update get_mem_data_src function to use saved values of sier and...
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Tue, 21 Jan 2025 13:16:21 +0000 (18:46 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 11 Feb 2025 06:03:11 +0000 (11:33 +0530)
commitf848e7ee1588d66539da7315d9a99bfaeda3b970
tree1993eadba237e0da0490c6e3fb197880813aef7d
parent2ffb26afa64261139e608bf087a0c1fe24d76d4d
arch/powerpc/perf: Update get_mem_data_src function to use saved values of sier and mmcra regs

During performance monitor interrupt handling, the regs are setup using
perf_read_regs function. Here some of the pt_regs fields is overloaded.
Samples Instruction Event Register (SIER) is loaded into pt_regs,
overloading regs->dar. And regs->dsisr to store MMCRA (Monitor Mode
Control Register A) so that we only need to read these once on each
interrupt.

Update the isa207_get_mem_data_src function to use regs->dar instead of
reading from SPRN_SIER again. Also use regs->dsisr to read the mmcra
value

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250121131621.39054-2-atrajeev@linux.vnet.ibm.com
arch/powerpc/perf/isa207-common.c