Message ID | 20230106183930.12565-3-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 37e96d7855c9638073e93b63992ab468b3a291e9 |
Headers | show |
Series | trace-cmd: Fix trace-cmd stream | expand |
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 361524b58772..cc6f27bf22e8 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -798,7 +798,8 @@ static void stop_threads(enum trace_type type) /* Flush out the pipes */ if (type & TRACE_TYPE_STREAM) { do { - ret = trace_stream_read(pids, recorder_threads, NULL); + struct timeval tv = { 0, 0 }; + ret = trace_stream_read(pids, recorder_threads, &tv); } while (ret > 0); } }