Skip to content

*trace-cmd convert

Tzvetomir Stoyanov (VMware) linux-trace-devel 8 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest9 patches 0 repliesNew
  2. v79 patches 0 repliesSuperseded
  3. v69 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v58 patches0 repliesSuperseded
v48 patches0 repliesSuperseded
v38 patches0 repliesSuperseded
v28 patches0 repliesSuperseded
v18 patches0 repliesSuperseded

Changes in v8 from the cover letter

- Bug fixes.
- Code cleanups.
- Rebase.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9trace-cmd library: Use output handler when copying data from input filelib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/include/trace-cmd-local.h lib/trace-cmd/trace-input.c +1 more+82 -740 replies
2/9trace-cmd library: Handle version 7 files when copying headers between fileslib/trace-cmd/include/trace-cmd-local.h lib/trace-cmd/trace-input.c lib/trace-cmd/trace-output.c +1 more+212 -320 replies
3/9trace-cmd library: Copy CPU count between trace fileslib/trace-cmd/trace-input.c+42 -00 replies
4/9trace-cmd library: New API to copy buffer description between trace fileslib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-input.c+16 -00 replies
5/9trace-cmd library: New API to copy options between trace fileslib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/include/trace-cmd-local.h lib/trace-cmd/trace-input.c +1 more+195 -00 replies
6/9trace-cmd library: New API to copy trace data between trace fileslib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/include/trace-cmd-local.h lib/trace-cmd/trace-input.c +1 more+226 -00 replies
7/9trace-cmd library: Avoid memory leak when setting trace clocklib/trace-cmd/trace-output.c+3 -10 replies
8/9trace-cmd library: Extend tracecmd_copy() APIlib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-output.c tracecmd/trace-restore.c +1 more+41 -90 replies
9/9trace-cmd: Add new subcommand "convert"tracecmd/Makefile tracecmd/include/trace-local.h tracecmd/trace-cmd.c +2 more+126 -00 replies

Reviews trailers per patch

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

Read the v8 thread

Cover letter [PATCH v8 0/9] *trace-cmd convert

A new trace-cmd subcommand is introduced:
trace-cmd convert -i <input file> -o <output file>
The command converts trace file between different versions. There are two parameters for controlling the type of the output file:
--file-version < 6 / 7>
--compression < none / any / name of the desired compression algorithm >

This patch-set depends on:
"[PATCH v8 00/20] Trace file version 7 - compression"
https://lore.kernel.org/linux-trace-devel/[email protected]/

v8 changes:
- Bug fixes.
- Code cleanups.
- Rebase.
v7 changes:
- Bug fixes.
- Code cleanups.
- Rebase.
v6 changes:
- Rebased on top of the latest master.
- Introduced new metadata strings section.
- Use 8 bytes for section size.
v5 changes:
- Rebased on top of the latest master.
v4 changes:
- Rebased on top of the latest master.
v3 changes:
- Rebased on top of the latest master.
v2 changes:
- fixed issues of split and convert commands with some corner cases

Tzvetomir Stoyanov (VMware) (9):
trace-cmd library: Use output handler when copying data from input
file
trace-cmd library: Handle version 7 files when copying headers between
files
trace-cmd library: Copy CPU count between trace files trace-cmd library: New API to copy buffer description between trace
files
trace-cmd library: New API to copy options between trace files trace-cmd library: New API to copy trace data between trace files trace-cmd library: Avoid memory leak when setting trace clock trace-cmd library: Extend tracecmd_copy() API
trace-cmd: Add new subcommand "convert"

 .../include/private/trace-cmd-private.h       |  15 +-
 lib/trace-cmd/include/trace-cmd-local.h       |  13 +
 lib/trace-cmd/trace-input.c                   | 733 +++++++++++++++---
 lib/trace-cmd/trace-output.c                  | 131 +++-
 lib/trace-cmd/trace-util.c                    |   9 +-
 tracecmd/Makefile                             |   1 +
 tracecmd/include/trace-local.h                |   2 +
 tracecmd/trace-cmd.c                          |   1 +
 tracecmd/trace-convert.c                      | 109 +++
 tracecmd/trace-restore.c                      |   2 +-
 tracecmd/trace-split.c                        |   2 +-
 tracecmd/trace-usage.c                        |  13 +
 12 files changed, 929 insertions(+), 102 deletions(-)
 create mode 100644 tracecmd/trace-convert.c
Signature · 1 line
2.34.1