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>
lttng-ctl: Expose sessiond cmd_clear_session command Co-developed-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Change-Id: Id9d169daaa1c20912a6c105b4473c3f9f2ba3b49 Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: bindings import segfaults on missing hash_key_u64 A mishandled error in SWIG-generated code causes the Python3 interpreter to segfault when a missing symbol is reported during the linking (at runtime) against liblttng-ctl. libcommon makes use of the internal libhashtable.la since the addition of the lttng_trace_chunk interface. This introduces a transitive dependency to libhashtable.la in liblttng-ctl. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> 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>
Fix: Don't override user variables within the build system Instead use the appropriatly prefixed AM_* variables as to not interfere when a user variable is passed to a make command. The proper use of flag variables is documented at : https://www.gnu.org/software/automake/manual/automake.html#Flag-Variables-Ordering Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Mi: add mi support for lttng struct Add mi-lttng support to the following struct: lttng_domain lttng_channel lttng_channel_attr lttng_event +multiple mi utility format: common attribute tracepoint_loglevel tracepoint_no_loglevel function probe function entry lttng_event_field mi-lttng other element pid element Rebase on master: Fix: remove extra linking due to add of mi-lttng to libcommon
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>
Librarify filter in liblttng-ctl and hide symbols Create the libfilter.la inside the liblttng-ctl directory so we can statically link with lttng-ctl and the tests. Also hide the dynamic symbol of libfilter used in liblttng-ctl. Signed-off-by: David Goulet <dgoulet@efficios.com>