]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: perf: remove arm_perf_pmu_ids global enumeration
authorWill Deacon <will.deacon@arm.com>
Sun, 19 Feb 2012 14:53:21 +0000 (14:53 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 6 Jun 2012 09:47:41 +0000 (10:47 +0100)
commitdee8c1be71cfca1f8c8b96ee45c6d72799bf81ce
tree40c4802cb8cab8387d5c9db599c429477d6a8ebb
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
ARM: perf: remove arm_perf_pmu_ids global enumeration

In order to provide PMU name strings compatible with the OProfile
user ABI, an enumeration of all PMUs is currently used by perf to
identify each PMU uniquely. Unfortunately, this does not scale well
in the presence of multiple PMUs and creates a single, global namespace
across all PMUs in the system.

This patch removes the enumeration and instead uses the name string
for the PMU to map onto the OProfile variant. perf_pmu_name is
implemented for CPU PMUs, which is all that OProfile cares about anyway.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/perf_event.h
arch/arm/include/asm/pmu.h
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_v7.c
arch/arm/kernel/perf_event_xscale.c
arch/arm/oprofile/common.c