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:24:22 +0000 (10:24 -0400)
commitf7af9a72c6709249c199989685bcd7d878ba2b33
tree456b990ed4c5708d8d44b4698c206a071b2e8a76
parent88ac6301cdac33a296e0ba999d75a046b95752b0
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.026069 seconds and 4 git commands to generate.