summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2020-09-22 13:53:45 +0800
committerWill Deacon <will@kernel.org>2020-09-28 14:53:45 +0100
commitf5be3a61fdb5dd11ef60173e2783ccf62685f892 (patch)
tree53bf50bc3ad0fba39c7084b4a295925ab7f9b1ca /samples
parent688494a407d1419a6b158c644b262c61cde39f48 (diff)
arm64: perf: Add support caps under sysfs
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. Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Cc: Will Deacon <will@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/1600754025-53535-1-git-send-email-zhangshaokun@hisilicon.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions