arm64: pmu: Probe default hw/cache counters
authorJeremy Linton <jeremy.linton@arm.com>
Wed, 14 Sep 2016 22:32:30 +0000 (17:32 -0500)
committerWill Deacon <will.deacon@arm.com>
Fri, 16 Sep 2016 16:11:33 +0000 (17:11 +0100)
commit236b9b91cd1255a9cae9d7ef6b755efe37013c1f
treef36661b89409a4717ace33ef32bc4abc6ce2566e
parentdbee3a74ef2c73acc4eb31cee7a60d5e46767a41
arm64: pmu: Probe default hw/cache counters

ARMv8 machines can identify the micro/arch defined counters
that are available on a machine. Add all these counters to the
default armv8 perf map. At run-time disable the counters which
are not available on the given PMU.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c