You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, if poll returned HUP, we would immediately return ErrDisabled, but
this means we could miss events if there are events waiting in the buffer.
Fixes: acln0#23
I've been messing around with perf, using
inherit
to trace a process tree.What I've found is that when the process tree exits, we get HUP on the poll, and whatever events are in the kernel buffer at that time are lost.
I'm not sure I fully understand what's going on, but I've found anecdotally that here:
perf/record.go
Lines 130 to 133 in 6861f4b
If I insert:
Before
return ErrDisabled
, then it appears the events are not lost.The text was updated successfully, but these errors were encountered: