]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: perf: Simplify registration boilerplate
authorRobin Murphy <robin.murphy@arm.com>
Tue, 14 Dec 2021 14:16:14 +0000 (14:16 +0000)
committerWill Deacon <will@kernel.org>
Tue, 14 Dec 2021 18:05:11 +0000 (18:05 +0000)
commit6339ed16a653ce5ed2332f9527e666c0890a374e
tree0462877093d840a254ec53ebff4d67c949a3254a
parent2940c7e582624885e7a6291d1b88226e572ef16f
arm64: perf: Simplify registration boilerplate

With the trend for per-core events moving to userspace JSON, registering
names for PMUv3 implementations is increasingly a pure boilerplate
exercise. Let's wrap things a step further so we can generate the basic
PMUv3 init function with a macro invocation, and reduce further new
addition to just 2 lines each.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/b79477ea3b97f685d00511d4ecd2f686184dca34.1639490264.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_event.c