X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibbar.c;fp=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibbar.c;h=0a0edfb81a9249ea71b0fe2a51254c28066f1227;hp=633fa0561c792a4085a30a4669cd072fa3686258;hb=2f101846a0f504e64d37bf93c3b67d531f5a3b65;hpb=7ebbf3f02689e6d437206297230cbf264f67e3be diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c b/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c index 633fa0561..0a0edfb81 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c @@ -5,9 +5,16 @@ * */ +/* + * The order of inclusion is important here: including sdt.h _before_ the probe + * declarations ensures that semaphore-protected SDT probes (which we don't support) are not + * generated. See SYSTEMTAP(2) for more details. + */ +/* clang-format off */ +#include #include "foobar_provider.h" +/* clang-format on */ -#include void bar_function() { FOOBAR_TP_IN_DLOPEN();