Fix: lttng-load: support legacy PID tracker specification
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 Apr 2020 04:46:39 +0000 (00:46 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 Apr 2020 14:25:09 +0000 (10:25 -0400)
commit91aba064548875ea291d793bb149ac9035e240f7
treefd619bead7995464e01fa0ca653cf3b6509d83e0
parent1dd5162676a969bc3d3dafc53c920e8c7b0da2f1
Fix: lttng-load: support legacy PID tracker specification

The 2.12 release changes the way tracked process attributes are
expressed in the MI and save/restore formats. While the MI schema was
bumped to 4.0, the save/restore schema only undergoes a minor bump to
accomodate existing users.

The original commit introducing this change justified the breaking
change as saved PIDs being fairly unlikely. However, even the
'INCLUDE_ALL' policy will specify a 'trackers' node, which no longer
existed and made all existing configurations incompatible.

A legacy load path is introduced to support the former PID tracker
serialization format and preserve the compatibility with existing
configurations.

Configurations generated by the 2.11 releases are included to test
this new legacy path.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ied6532c42cb2d1a5c9e39785cc4e47aaf89b8288
src/common/config/session-config.c
src/common/config/session.xsd
tests/regression/tools/save-load/Makefile.am
tests/regression/tools/save-load/test_load
tests/regression/tools/save-load/tracker_legacy_all.lttng [new file with mode: 0644]
tests/regression/tools/save-load/tracker_legacy_none.lttng [new file with mode: 0644]
tests/regression/tools/save-load/tracker_legacy_selective.lttng [new file with mode: 0644]
This page took 0.026075 seconds and 4 git commands to generate.