[PATCH v8] arm64: perf: Add support caps under sysfs
Will Deacon
will at kernel.org
Mon Sep 28 18:13:23 EDT 2020
On Tue, 22 Sep 2020 13:53:45 +0800, Shaokun Zhang wrote:
> ARMv8.4-PMU introduces the PMMIR_EL1 registers and some new PMU events,
> like STALL_SLOT etc, are related to it. Let's add a caps directory to
> /sys/bus/event_source/devices/armv8_pmuv3_0/ and support slots from
> PMMIR_EL1 registers in this entry. The user programs can get the slots
> from sysfs directly.
>
> /sys/bus/event_source/devices/armv8_pmuv3_0/caps/slots is exposed
> under sysfs. Both ARMv8.4-PMU and STALL_SLOT event are implemented,
> it returns the slots from PMMIR_EL1, otherwise it will return 0.
Applied to will (for-next/perf), thanks!
[1/1] arm64: perf: Add support caps under sysfs
https://git.kernel.org/will/c/f5be3a61fdb5
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list