Skip to content

Fix listener and add trace file validation

Tzvetomir Stoyanov (VMware) linux-trace-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyIn review
  2. v33 patches 0 repliesSuperseded
  3. v22 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Split the changes in more patches.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5trace-cmd Add API to save command lines in trace filelib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-output.c tracecmd/trace-record.c+11 -80 replies
2/5trace-cmd: Update long size in the tep handler right after it is read from the trace filelib/trace-cmd/trace-input.c+1 -20 replies
3/5trace-cmd: Do not use trace plugins when reading partial trace fileslib/trace-cmd/trace-output.c+1 -10 replies
4/5trace-cmd: Add validation for reading and writing trace.dat fileslib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-input.c lib/trace-cmd/trace-output.c +1 more+144 -271 reply
5/5trace-cmd: Fix broken listener and add error checkstracecmd/trace-listen.c tracecmd/trace-record.c+46 -150 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/5] Fix listener and add trace file validation

Added checks for trace file consistency when reading and writing it. Fixed broken trace-cmd listener.

v4 changes:
- Split the changes in more patches.
v3 changes:
- Fixed a comment to be in the Linux style.
- Moved the optimization for disabling trace plugins in its own patch.
v2 changes:
- Converted file states from bitmask to enum
- Added return value of collect_metadata_from_client() to track any errors

Tzvetomir Stoyanov (VMware) (5):
trace-cmd Add API to save command lines in trace file
trace-cmd: Update long size in the tep handler right after it is read
from the trace file
trace-cmd: Do not use trace plugins when reading partial trace files
trace-cmd: Add validation for reading and writing trace.dat files
trace-cmd: Fix broken listener and add error checks

 .../include/private/trace-cmd-private.h       |  23 ++-
 lib/trace-cmd/trace-input.c                   |  27 +++-
 lib/trace-cmd/trace-output.c                  | 139 +++++++++++++++---
 tracecmd/trace-listen.c                       |  30 ++--
 tracecmd/trace-record.c                       |  33 ++++-
 tracecmd/trace-split.c                        |   2 +-
 6 files changed, 202 insertions(+), 52 deletions(-)
Signature · 1 line
2.29.2