powerpc/64s/perf: Always use SIAR for kernel interrupts
authorNicholas Piggin <npiggin@gmail.com>
Tue, 20 Jul 2021 14:15:04 +0000 (00:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Aug 2021 00:53:39 +0000 (10:53 +1000)
commitcf9c615cde49fb5d2480549c8c955a0a387798d3
tree896c680a6fad98416d7ba3e0f291d4dac96e6e21
parente9ef81e1079b0c4c374fba0f9affa7129c7c913b
powerpc/64s/perf: Always use SIAR for kernel interrupts

If an interrupt is taken in kernel mode, always use SIAR for it rather than
looking at regs_sipr. This prevents samples piling up around interrupt
enable (hard enable or interrupt replay via soft enable) in PMUs / modes
where the PR sample indication is not in synch with SIAR.

This results in better sampling of interrupt entry and exit in particular.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210720141504.420110-1-npiggin@gmail.com
arch/powerpc/perf/core-book3s.c