arm64: perf: Simplify the ARMv8 PMUv3 event attributes
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Wed, 30 Oct 2019 03:46:17 +0000 (11:46 +0800)
committerWill Deacon <will@kernel.org>
Fri, 1 Nov 2019 14:51:19 +0000 (14:51 +0000)
commit9ef8567ccf2eb00473b1280d0911caf3f413dc67
tree567613db24705bc731e9f757bcf0e07448a16d20
parent5e2c27e833bb92487fdf49ff6d358361d00521c9
arm64: perf: Simplify the ARMv8 PMUv3 event attributes

For each PMU event, there is a ARMV8_EVENT_ATTR(xx, XX) and
&armv8_event_attr_xx.attr.attr. Let's redefine the ARMV8_EVENT_ATTR
to simplify the armv8_pmuv3_event_attrs.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
[will: Dropped unnecessary array syntax]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_event.c