X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibzzz.c;fp=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibzzz.c;h=8b3a0b2081e4facef5aa5df988a1ad12bfe87d27;hp=ee7599f9e68ff27a7008b53859c3768a5b2ceef3;hb=2f101846a0f504e64d37bf93c3b67d531f5a3b65;hpb=7ebbf3f02689e6d437206297230cbf264f67e3be diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c b/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c index ee7599f9e..8b3a0b208 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.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 overridable_function() { FOOBAR_TP_IN_LDPRELOAD();