]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: arm_spe: Expose saturating counter to 16-bit
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Fri, 29 Apr 2022 06:33:07 +0000 (14:33 +0800)
committerWill Deacon <will@kernel.org>
Fri, 6 May 2022 14:10:00 +0000 (15:10 +0100)
commitb9f04854d10dcb100f30bab4006fb298b5c1f2db
tree5993c7accc9614d970136fb235153ba8fe4b8606
parent6894f7632ba64a130c7854daadadd1ed2b92dde8
drivers/perf: arm_spe: Expose saturating counter to 16-bit

In order to acquire more accurate latency, Armv8.8[1] has defined the
CountSize field to 16-bit saturating counters when it's 0b0011.

Let's support this new feature and expose its to user under sysfs.

[1] https://developer.arm.com/documentation/ddi0487/latest

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/20220429063307.63251-1-zhangshaokun@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c