perf/arm-cmn: Fix PMU instance naming
authorRobin Murphy <robin.murphy@arm.com>
Thu, 28 Jan 2021 13:12:43 +0000 (13:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:44 +0000 (11:37 +0100)
commit1ea83d4891026a572620585174517e8a1f4a40b5
tree2fa939f59aa0f4fa07454b1ec9e58c5c4ec2f44e
parentcb8e225c16c8c4d790253cc12c989775307d28e8
perf/arm-cmn: Fix PMU instance naming

[ Upstream commit 79d7c3dca99fa96033695ddf5d495b775a3a137b ]

Although it's neat to avoid the suffix for the typical case of a
single PMU, it means systems with multiple CMN instances end up with
inconsistent naming. I think it also breaks perf tool's "uncore alias"
logic if the common instance prefix is also the full name of one.

Avoid any surprises by not trying to be clever and simply numbering
every instance, even when it might technically prove redundant.

Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU driver")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/649a2281233f193d59240b13ed91b57337c77b32.1611839564.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/admin-guide/perf/arm-cmn.rst
drivers/perf/arm-cmn.c