Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ctf: check version of LTTng trace index
If LTTng was to start producing trace index files with major version 2, it would presumably be because the format has become backwards-incompatible. Babeltrace would currently try to parse it like it parses version 1.x index files, and that would likely not give good results. This patch makes Babeltrace check the major version of LTTng trace index files before parsing them, and ignore them if the major version is not 1. Change-Id: Ieb4a795a3fce1f5196a2b4ab44575da1b4fc1364 Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Reviewed-on: https://review.lttng.org/c/babeltrace/+/2325 Tested-by: jenkins <jenkins@lttng.org> Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
- Loading branch information