[Bug bpf/25218] stapbpf loses perf_events when writing to interactive terminal
me at serhei dot io
sourceware-bugzilla@sourceware.org
Fri Nov 22 23:46:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=25218
Serhei Makarov <me at serhei dot io> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |me at serhei dot io
Summary|stapbpf losing perf_events |stapbpf loses perf_events
| |when writing to interactive
| |terminal
--- Comment #1 from Serhei Makarov <me at serhei dot io> ---
My suspicion is that the perf_events buffer used to receive transport messages
fills up while the stapbpf process is delayed writing output. This results in
transport messages being overwritten and the 'lost perf_events' warning being
generated.
When stapbpf output is redirected to a file, there is no I/O delay, and
perf_events are consumed before the buffer overflows.
If my suspicion is true, this could be solved by receiving transport messages
in a separate thread.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list