Message ID | 20230106183930.12565-5-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 82b80f66306c35ac492e5a99fa679cfe0cf12d7d |
Headers | show |
Series | trace-cmd: Fix trace-cmd stream | expand |
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index a03d334a65d5..83ae8e60d7cb 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -7019,6 +7019,9 @@ static void record_trace(int argc, char **argv, } while (!finished && wait_indefinitely) trace_or_sleep(type, pwait); + /* Streams need to be flushed one more time */ + if (type & TRACE_TYPE_STREAM) + trace_stream_read(pids, recorder_threads, NULL); } tell_guests_to_stop(ctx);