arm64: perf: Allow standard PMUv3 events to be extended by the CPU type
authorWill Deacon <will.deacon@arm.com>
Tue, 8 Aug 2017 15:58:33 +0000 (16:58 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 8 Aug 2017 16:12:34 +0000 (17:12 +0100)
commit6c833bb9247ed51028279ef7b82ebbbe60d789e3
treef465e7a2151a31657057cfbbb71409920ae47db4
parentc1be2ddb1e25ecf425d93a81dc64a650b9ff3107
arm64: perf: Allow standard PMUv3 events to be extended by the CPU type

Rather than continue adding CPU-specific event maps, instead look up by
default in the PMUv3 event map and only fallback to the CPU-specific maps
if either the event isn't described by PMUv3, or it is described but
the PMCEID registers say that it is unsupported by the current CPU.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c
drivers/perf/arm_pmu.c