]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: perf: Add more support on caps under sysfs
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Thu, 3 Jun 2021 07:15:02 +0000 (15:15 +0800)
committerWill Deacon <will@kernel.org>
Thu, 3 Jun 2021 08:53:17 +0000 (09:53 +0100)
commite2446ebd6dbf4cda8a06ce4df49314be432a2c9c
tree88d2fc59d771c6f906d73b8814845bb3d34f8054
parentfb502a6d94175abe6be0281d19d9b478bdb2aaf6
arm64: perf: Add more support on caps under sysfs

Armv8.7 has introduced BUS_SLOTS and BUS_WIDTH in PMMIR_EL1 register,
add two entries in caps for bus_slots and bus_width under sysfs. It
will return the true slots and width if the information is available,
otherwise it will return 0.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/1622704502-63951-1-git-send-email-zhangshaokun@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/perf_event.h
arch/arm64/kernel/perf_event.c