Commit 18dbcbf
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 9734e25 ("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: 9734e25 ("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]1 parent b320789 commit 18dbcbf
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10330 | 10330 | | |
10331 | 10331 | | |
10332 | 10332 | | |
| 10333 | + | |
10333 | 10334 | | |
10334 | 10335 | | |
10335 | 10336 | | |
| |||
0 commit comments