On Mon, 14 Jun 2021 10:49:47 +0300 "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@xxxxxxxxx> wrote: > When reading a trace file, version of the file is ignored. This could > case problems when bumping the version number because of changes in > in the structure of the file. The old code should detect unsupported > file version and should not try to read it. > A new trace-cmd library API is added to check if version is supported: > tracecmd_is_version_supported() > Checks are added in the code to ensure not trying to read trace file > from unsupported version. After applying this patch, I get: $ ./tracecmd/trace-cmd report error reading header for trace.dat -- Steve