Skip to content

Commit 47a9ed8

Browse files
zhangshkwilldeacon
authored andcommitted
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 <[email protected]> Cc: Mark Rutland <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 23760a0 commit 47a9ed8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/perf/arm_spe_pmu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,9 @@ static void __arm_spe_pmu_dev_probe(void *info)
10351035
fallthrough;
10361036
case 2:
10371037
spe_pmu->counter_sz = 12;
1038+
break;
1039+
case 3:
1040+
spe_pmu->counter_sz = 16;
10381041
}
10391042

10401043
dev_info(dev,

0 commit comments

Comments
 (0)