ARM: perf: encode PMU name in arm_pmu structure
commit629948310e4270e9b32c37b4a65a8cd5d6ebf38a
authorWill Deacon <will.deacon@arm.com>
Sat, 13 Nov 2010 18:45:27 +0000 (13 18:45 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 25 Nov 2010 16:52:08 +0000 (25 16:52 +0000)
treef1b8d4d2239e43f52e3d48cddd86990ec1771504
parent3cb314bae2191b432a7e898abf865db880f6d07d
ARM: perf: encode PMU name in arm_pmu structure

Currently, perf uses the PMU ID as an index into a string table
to look up the name of a given PMU.

This patch encodes the name of a PMU directly into the arm_pmu
structure so that PMU-specific code can be factored out into
separate files.

Acked-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c