X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Flibbar.c;h=0a0edfb81a9249ea71b0fe2a51254c28066f1227;hb=8a8bca410a240a7177deb09201878bad7a41d46b;hp=a504ac89e3407b4346b26e080adf7779bd69df21;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c b/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c index a504ac89e..0a0edfb81 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/libbar.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 bar_function() { +/* clang-format on */ + +void bar_function() +{ FOOBAR_TP_IN_DLOPEN(); }