Skip to content

trace-cmd: Fix trace-cmd stream

Steven Rostedt linux-trace-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10trace-cmd library: Set recorder to nonblock when finishedlib/trace-cmd/trace-recorder.c+6 -30 replies
2/10trace-cmd stream: Do not block when stopping threadstracecmd/trace-record.c+2 -10 replies
3/10trace-cmd stream: Add a flush signal to kick the outputlib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-recorder.c tracecmd/trace-record.c+43 -100 replies
4/10trace-cmd stream: Do one last flush when finishedtracecmd/trace-record.c+3 -00 replies
5/10trace-cmd library: Fix read_data() with error from tracefs_cpu_read()lib/trace-cmd/trace-recorder.c+2 -00 replies
6/10trace-cmd: Have trace_stream_read() use poll()tracecmd/include/trace-local.h tracecmd/trace-record.c tracecmd/trace-stream.c+21 -280 replies
7/10trace-cmd stream: Set default sleep time to half a secondtracecmd/trace-record.c+4 -00 replies
8/10trace-cmd library: Return the result of tracefs_cpu_stop()lib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-recorder.c+7 -70 replies
9/10trace-cmd record: Set sleep_time to zero at end of recordingtracecmd/trace-record.c+2 -00 replies
10/10trace-cmd record: Keep stopping the recording when finishedtracecmd/trace-record.c+13 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] trace-cmd: Fix trace-cmd stream

From: "Steven Rostedt (Google)" <[email protected]>

Looking at https://bugzilla.kernel.org/show_bug.cgi?id=216577 and analyzing the fix, I found a bunch of other issues with trace-cmd stream.

This series is to address them.

Steven Rostedt (Google) (10):
trace-cmd library: Set recorder to nonblock when finished trace-cmd stream: Do not block when stopping threads trace-cmd stream: Add a flush signal to kick the output trace-cmd stream: Do one last flush when finished trace-cmd library: Fix read_data() with error from tracefs_cpu_read()
trace-cmd: Have trace_stream_read() use poll()
trace-cmd stream: Set default sleep time to half a second trace-cmd library: Return the result of tracefs_cpu_stop() trace-cmd record: Set sleep_time to zero at end of recording trace-cmd record: Keep stopping the recording when finished

 .../include/private/trace-cmd-private.h       |  4 +-
 lib/trace-cmd/trace-recorder.c                | 33 ++++++---
 tracecmd/include/trace-local.h                |  2 +-
 tracecmd/trace-record.c                       | 72 +++++++++++++++----
 tracecmd/trace-stream.c                       | 34 ++++-----
 5 files changed, 99 insertions(+), 46 deletions(-)
Signature · 1 line
2.35.1