mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
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 commit9734e25fbf("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:9734e25fbf("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]
This commit is contained in:
1 parent
b320789d68
commit
18dbcbfabf
1 file changed
+1
@@ -10330,6 +10330,7 @@ static int __perf_event_overflow(struct perf_event *event,
|
||||
ret = 1;
|
||||
event->pending_kill = POLL_HUP;
|
||||
perf_event_disable_inatomic(event);
|
||||
event->pmu->stop(event, 0);
|
||||
}
|
||||
|
||||
if (event->attr.sigtrap) {
|
||||
|
||||
Reference in new issue
Block a user