Rename C++ header files to .hpp Rename all C++ header files (include/**/*-internal.h, src/**/*.h except argpar and msgpack, some headers in tests) to have the .hpp extension. Doing so highlights that we include some C++ header files in some test files still compiled as C. This is ok for now, as the files they include don't actually contain C++ code incompatible with C yet, but they could eventually. This is something we can fix later. Change-Id: I8bf326b6b2946a3e26704f3ef3ac5831bbe9bc26 Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Adapt to lttng-ust ust-abi.h naming prefix update LTTng-UST updates all its ust-abi.h symbols and defines to use the lttng_ust_abi_ and LTTNG_UST_ABI_ prefixes. Adapt lttng-tools accordingly. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Ifde8b73604c84ee37e9123f5dd912e7a806deb38 Depends-on: lttng-ust: I1273be9615846304266206769700e799bde4e51f
UST abi: add `struct lttng_ust_capture_bytecode` Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: I512bb3c5e0232f70b860d33c72d61176303146bc Depends-on: lttng-ust: I5a800fc92e588c2a6a0e26282b0ad5f31c044479
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>
Sync lttng-ust ABI version in ust-abi-internal.h Bump LTTNG_UST_ABI_MINOR_VERSION to 1 Increment the minor version of lttng-ust ABI to 1, to take into account that the "clear" command was added in this release cycle. This will allow future LTTng-tools versions to check for this capability. Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: I472eb11589547a9fa119d061a2c1886371b87f69
sessiond: build fails in --without-lttng-ust configuration The include of macros.h was changed when syncing with the latest usb-abi.h header and caused the build to fail in the --without-lttng-ust configuration. Changed the include to refer to common/macros.h. Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Update local copy of ust-abi.h to reflect addition of ns contexts New contexts were added to LTTng-UST and will be used by LTTng-Tools. Re-sync this LTTng-UST header to ensure the build doesn't break in the --without-lttng-ust configuration. Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: sessiond: use system LTTng-UST headers when available The LTTng-Tools tree includes a local copy of three LTTng-UST headers: * ust-error.h * ust-ctl.h * ust-abi.h The system headers should be used when UST support is configured to ensure the appropriate ABI definitions are used. The local copies of the headers should only be used when LTTng-Tools is built with the --without-lttng-ust configuration option. Those headers are needed since some UST support code is compiled-in even though the support is deactivated. A misconfiguration in the CI setup allowed us to notice that sessiond-config.c is using the internal header unconditionally. To ensure this doesn't happen in the future, the local copies are renamed: * ust-error.h -> ust-error-internal.h * ust-ctl.h -> ust-ctl-internal.h * ust-abi.h -> ust-abi-internal.h All code should use the `lttng-` prefixed versions of the headers which include either the local or "system" copy of the headers depending on the build configuration. Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>