Re: [PATCH] perf: arm_cspmu: Reject events meant for other PMUs

From: Ilkka Koskinen
Date: Wed Nov 08 2023 - 14:01:54 EST



On Wed, 8 Nov 2023, Catalin Marinas wrote:
On Tue, Nov 07, 2023 at 02:12:58PM -0800, Ilkka Koskinen wrote:
On Tue, 7 Nov 2023, Catalin Marinas wrote:
On Thu, 02 Nov 2023 17:16:54 -0700, Ilkka Koskinen wrote:
Coresight PMU driver didn't reject events meant for other PMUs.
This caused some of the Core PMU events disappearing from
the output of "perf list". In addition, trying to run e.g.

$ perf stat -e r2 sleep 1

made Coresight PMU driver to handle the event instead of letting
Core PMU driver to deal with it.

[...]

Applied to arm64 (for-next/core), thanks!

Just wanted to ask if you are planning to submit this patch for 6.7-rcX as a
fix? We have found out that one can even crash AmpereOne by running
"perf stat -C 1 sleep 1" without the patch.

Yes, I'll send it for 6.7-rc1 (probably tomorrow).

Sounds perfert. Thanks a lot!

--Ilkka


--
Catalin