Message ID | 20230106183930.12565-6-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 2391750cceb385ba7d8e68d6337469eccfa5cecc |
Headers | show |
Series | trace-cmd: Fix trace-cmd stream | expand |
diff --git a/lib/trace-cmd/trace-recorder.c b/lib/trace-cmd/trace-recorder.c index 79b95ce1193d..db159e5e5d14 100644 --- a/lib/trace-cmd/trace-recorder.c +++ b/lib/trace-cmd/trace-recorder.c @@ -323,6 +323,8 @@ static long read_data(struct tracecmd_recorder *recorder) long r, w; r = tracefs_cpu_read(recorder->tcpu, buf, nonblock); + if (r < 0) + return r; left = r; do {