Fix: sessiond: invalid session configuration on EXCLUDE_ALL policy
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 Apr 2020 04:14:00 +0000 (00:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 Apr 2020 14:25:09 +0000 (10:25 -0400)
commit1dd5162676a969bc3d3dafc53c920e8c7b0da2f1
tree31e7397470c159817750a9ab76694d8c6a79d834
parenta90174363ac96911905b57a06b493046987d3bfc
Fix: sessiond: invalid session configuration on EXCLUDE_ALL policy

Saving a session with a process attribute tracker that uses the
`EXCLUDE_ALL` policy results in an invalid session configuration.

Currently, a tracker of the following form is produced:
<process_attr_values>
  <vpid/>
</process_attr_values>

This is invalid as per the XSD as 'vpid' is not a list; it is an
individual tracked attribute.

The appropriate '<process_attr_values/>' empty node is now produced.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia31e276fe7246a89e72d6808c9ed960fb04f1b3a
src/bin/lttng-sessiond/save.c
This page took 0.027074 seconds and 4 git commands to generate.