android_kernel_motorola_sm6375/kernel/events
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Qing Wang 5b4da569a2 perf/core: Fix broken throttling when max_samples_per_tick=1
[ Upstream commit f51972e6f8b9a737b2b3eb588069acb538fa72de ]

According to the throttling mechanism, the pmu interrupts number can not
exceed the max_samples_per_tick in one tick. But this mechanism is
ineffective when max_samples_per_tick=1, because the throttling check is
skipped during the first interrupt and only performed when the second
interrupt arrives.

Perhaps this bug may cause little influence in one tick, but if in a
larger time scale, the problem can not be underestimated.

When max_samples_per_tick = 1:
Allowed-interrupts-per-second max-samples-per-second  default-HZ  ARCH
200                           100                     100         X86
500                           250                     250         ARM64
...
Obviously, the pmu interrupt number far exceed the user's expect.

Fixes: e050e3f0a7 ("perf: Fix broken interrupt rate throttling")
Signed-off-by: Qing Wang <wangqing7171@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250405141635.243786-3-wangqing7171@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:02:44 +01:00
..
callchain.c
core.c perf/core: Fix broken throttling when max_samples_per_tick=1 2025-06-27 11:02:44 +01:00
hw_breakpoint.c
internal.h perf: Fix perf_aux_size() for greater-than 32-bit size 2024-08-19 05:33:29 +02:00
Makefile
ring_buffer.c perf/ring_buffer: Allow the EPOLLRDNORM flag for poll 2025-04-10 14:29:40 +02:00
uprobes.c uprobes: fix kernel info leak via "[uprobes]" vma 2024-11-08 16:20:42 +01:00