diff options
author | Leo Yan <leo.yan@arm.com> | 2025-06-27 17:30:28 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-07-08 18:04:03 +0100 |
commit | ba2ff3e1b640ca7aa0841be3dae94daa6b60bf49 (patch) | |
tree | 9f1f09d868069b2c9fa65f75b48500df9be6ee0b /net/unix/af_unix.c | |
parent | 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f (diff) |
perf: arm_spe: Relax period restriction
The minimum interval specified the PMSIDR_EL1.Interval field is a
hardware recommendation. However, this value is set by hardware designer
before the production. It is not actual hardware limitation but tools
currently have no way to test shorter periods.
This change relaxes the limitation by allowing any non-zero periods,
with simplifying code with clamp_t().
The downside is that small periods may increase the risk of AUX ring
buffer overruns. When an overrun occurs, the perf core layer will
trigger an irq work to disable the event and wake up the tool in user
space to read the trace data. After the tool finishes reading, it will
re-enable the AUX event.
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20250627163028.3503122-1-leo.yan@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions