Changed the trace file version to 7 and added support for choosing desired the file version. This patch set depends on "[PATCH v2] trace-cmd: Check if file version is supported" and should be applied on top of it. https://lore.kernel.org/linux-trace-devel/20210419093156.200099-1-tz.stoyanov@xxxxxxxxx/ Tzvetomir Stoyanov (VMware) (6): trace-cmd library: Bump the trace file version to 7 trace-cmd library: Add new API to get file version of input handler trace-cmd library: Select the file version when writing trace file trace-cmd library: Remove unused private APIs for creating trace files trace-cmd library: Extend the create file APIs to support different file version trace-cmd record: Add new parameter --file-version .../include/private/trace-cmd-private.h | 27 ++--- lib/trace-cmd/include/trace-cmd-local.h | 2 +- lib/trace-cmd/trace-input.c | 9 ++ lib/trace-cmd/trace-output.c | 98 ++++++++++--------- tracecmd/trace-record.c | 25 +++-- tracecmd/trace-restore.c | 4 +- tracecmd/trace-usage.c | 1 + 7 files changed, 95 insertions(+), 71 deletions(-) -- 2.30.2