X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibfoo.c;fp=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibfoo.c;h=283dac24e5387d6e1af90e4cc126ec3f6b7582f1;hp=78c79fb84e13e8e4580678178ed9a25f52de63e4;hb=2f101846a0f504e64d37bf93c3b67d531f5a3b65;hpb=7ebbf3f02689e6d437206297230cbf264f67e3be diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c b/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c index 78c79fb84..283dac24e 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.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 foo_function() { FOOBAR_TP_IN_SHARED_OBJECT();