Clean-up: run format-cpp on the tree The original re-format commit missed a number of files that were caught by format-cpp. Hopefully this is the last large reformat commit for a while. Change-Id: I493ee6d9fe6187e0bd087c68ed346af69c929c1e Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: use TRACEPOINT_INCLUDE The macro TRACEPOINT_INCLUDE_FILE is deprecated since LTTng-UST 2.1. In preparation for LTTng-UST 2.13, this compatibility macro is finally removed. The tests in lttng-tools need to keep up with times and start using its replacement: TRACEPOINT_INCLUDE. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com> Change-Id: Id2bb15062f37878de03656dc5a47d9dd35687b41
tests: 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: I89cd4b4b7440f71f52426a5508252932bb46e796 Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Cleanup: dlmopen detection Simplify dlmopen detection code and use a variable to store the detected lib instead of adding conditionnal code to each Makefile. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> 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>
Tracepoint probes don't need extern C tracepoint.h has the proper extern C guards, so every liblttng-ust API called from the probe has the proper linkage. The rest of the symbols are only meaningful within the probe, so we don't care if they are mangled or not. This fixes all UST applications in tests/ Fixes #597 Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tests: Move tests to tests/regression Also move the utils.sh and utils.h helper files under tests/utils. Signed-off-by: Christian Babeux <christian.babeux@efficios.com>