Move to kernel style SPDX license identifiers The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. See https://spdx.org/ids-how for details. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Change-Id: I62e7038e191a061286abcef5550b58f5ee67149d Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: wait for the completion of implicit session rotations A session that has been rotated within its lifetime will be rotated during its destruction to rename the last trace chunk. Currently, the liblttng-ctl library's session destruction function only waits for the data pending to indicate that all data has been consumed. This used to be sufficient, but it is now necessary to wait for the implicit session rotation to complete. The "wait" variant of the session destruction function will wait for any implicit session rotation to compete. A new lttng_destruction_handle class is introduced to allow a client to wait for the destruction of a session and obtain the location of the last trace archive produced by the implicit session rotation. Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add command header to sessiond->client response msg Response messages from the session daemon have this layout for the moment: [message header] (fixed size) [payload data] (0 to n bytes) This patch makes them have this layout: [message header] (fixed size) [command header] (0 to n bytes) [payload data] (0 to n bytes) The command header allows a command to specify additional informations about its payload. The header size is set to 0 for all commands for the moment. Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Health check: implement health check query in sessiond and consumerd At this stage, tests/regression/tools/health/health_check queries sessiond and consumerd with the new API, however, the scripts using this program have not yet been changed, and are therefore expected to fail. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Add a lttng-ctl header to facilitate code separation In order for lttng-ctl.c not to grow into an uncontrollable monster of code, add this helper header and remove static declaration of some functions to be exported out of the C file and set them hidden. Future work on snapshot and trigger will use it in order to better split the code into different files. Signed-off-by: David Goulet <dgoulet@efficios.com>