]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: arm_pmuv3: Avoid assigning fixed cycle counter with threshold
authorRob Herring (Arm) <robh@kernel.org>
Wed, 26 Jun 2024 22:32:25 +0000 (16:32 -0600)
committerWill Deacon <will@kernel.org>
Wed, 3 Jul 2024 13:07:14 +0000 (14:07 +0100)
commit81e15ca3e523a508d62806fe681c1d289361ca16
treef397b4b2fa335b538c80a53eb979cac4aeb50548
parentd0d7c66c537d36fbb87c515edb695c1e8ea3cdcb
perf: arm_pmuv3: Avoid assigning fixed cycle counter with threshold

If the user has requested a counting threshold for the CPU cycles event,
then the fixed cycle counter can't be assigned as it lacks threshold
support. Currently, the thresholds will work or not randomly depending
on which counter the event is assigned.

While using thresholds for CPU cycles doesn't make much sense, it can be
useful for testing purposes.

Fixes: 816c26754447 ("arm64: perf: Add support for event counting threshold")
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20240626-arm-pmu-3-9-icntr-v2-1-c9784b4f4065@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmuv3.c