perf/arm-cmn: Validate cycles events fully
authorRobin Murphy <robin.murphy@arm.com>
Mon, 3 Apr 2023 11:49:05 +0000 (12:49 +0100)
committerWill Deacon <will@kernel.org>
Thu, 6 Apr 2023 15:07:51 +0000 (16:07 +0100)
commit23b2fd83948952ffee2e96ce6a982be9d8e96f9f
treeca3099e66cd07f24772f70987c2d010ad3e16923
parent4248d043e462bd43dbef60164d35b817d5664eb1
perf/arm-cmn: Validate cycles events fully

DTC cycle count events don't have anything to validate or initialise in
themselves, but we should not forget to still validate their whole group
context. Otherwise, we may fail to correctly reject a contrived group
containing an impossible number of cycles events.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/3124e8c276a1f513c1a415dc839ca4181b3c8bc8.1680522545.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c