diff options
| author | Kan Liang <[email protected]> | 2025-08-11 18:26:44 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2025-09-03 08:10:59 +0000 |
| commit | 18dbcbfabfffc4a5d3ea10290c5ad27f22b0d240 (patch) | |
| tree | 5f1ffc59d8e5b90a9dd54520cbb3d9ea45ea6437 /tools/lib/subcmd/help.c | |
| parent | Linux 6.17-rc4 (diff) | |
| download | kernel-18dbcbfabfffc4a5d3ea10290c5ad27f22b0d240.tar.gz kernel-18dbcbfabfffc4a5d3ea10290c5ad27f22b0d240.zip | |
perf: Fix the POLL_HUP delivery breakage
The event_limit can be set by the PERF_EVENT_IOC_REFRESH to limit the
number of events. When the event_limit reaches 0, the POLL_HUP signal
should be sent. But it's missed.
The corresponding counter should be stopped when the event_limit reaches
0. It was implemented in the ARCH-specific code. However, since the
commit 9734e25fbf5a ("perf: Fix the throttle logic for a group"), all
the ARCH-specific code has been moved to the generic code. The code to
handle the event_limit was lost.
Add the event->pmu->stop(event, 0); back.
Fixes: 9734e25fbf5a ("perf: Fix the throttle logic for a group")
Closes: https://lore.kernel.org/lkml/[email protected]/
Reported-by: Sumanth Korikkar <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Sumanth Korikkar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/lib/subcmd/help.c')
0 files changed, 0 insertions, 0 deletions
