linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v8 0/9] *trace-cmd convert
@ 2022-01-26  9:51 Tzvetomir Stoyanov (VMware)
  2022-01-26  9:51 ` [PATCH v8 1/9] trace-cmd library: Use output handler when copying data from input file Tzvetomir Stoyanov (VMware)
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Tzvetomir Stoyanov (VMware) @ 2022-01-26  9:51 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel

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/20220126094906.570451-1-tz.stoyanov@gmail.com/
 
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

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-26  9:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26  9:51 [PATCH v8 0/9] *trace-cmd convert Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 1/9] trace-cmd library: Use output handler when copying data from input file Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 2/9] trace-cmd library: Handle version 7 files when copying headers between files Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 3/9] trace-cmd library: Copy CPU count between trace files Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 4/9] trace-cmd library: New API to copy buffer description " Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 5/9] trace-cmd library: New API to copy options " Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 6/9] trace-cmd library: New API to copy trace data " Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 7/9] trace-cmd library: Avoid memory leak when setting trace clock Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 8/9] trace-cmd library: Extend tracecmd_copy() API Tzvetomir Stoyanov (VMware)
2022-01-26  9:51 ` [PATCH v8 9/9] trace-cmd: Add new subcommand "convert" Tzvetomir Stoyanov (VMware)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).