X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibzzz.c;h=8b3a0b2081e4facef5aa5df988a1ad12bfe87d27;hb=f74e820c5e8f81d6416f4557bce8b56ee6be4746;hp=ee7599f9e68ff27a7008b53859c3768a5b2ceef3;hpb=28f23191dcbf047429d51950a337a57d7a3f866a;p=lttng-tools.git 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();