X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibzzz.c;h=8b3a0b2081e4facef5aa5df988a1ad12bfe87d27;hb=HEAD;hp=64660283e4069d781c8f25bc6b904cfc8b721440;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;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 64660283e..8b3a0b208 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c @@ -5,8 +5,17 @@ * */ +/* + * 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" -void overridable_function() { +/* clang-format on */ + +void overridable_function() +{ FOOBAR_TP_IN_LDPRELOAD(); }