X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Fuserspace-probe-sdt-binary.c;fp=tests%2Futils%2Ftestapp%2Fuserspace-probe-sdt-binary%2Fuserspace-probe-sdt-binary.c;h=551b42b5a7e33310dd783b6a897de180fa48ea2d;hp=c9c8036970638788acbce1c4d91f18c0249ad24a;hb=2f101846a0f504e64d37bf93c3b67d531f5a3b65;hpb=7ebbf3f02689e6d437206297230cbf264f67e3be diff --git a/tests/utils/testapp/userspace-probe-sdt-binary/userspace-probe-sdt-binary.c b/tests/utils/testapp/userspace-probe-sdt-binary/userspace-probe-sdt-binary.c index c9c803697..551b42b5a 100644 --- a/tests/utils/testapp/userspace-probe-sdt-binary/userspace-probe-sdt-binary.c +++ b/tests/utils/testapp/userspace-probe-sdt-binary/userspace-probe-sdt-binary.c @@ -9,7 +9,16 @@ #define _GNU_SOURCE #endif +/* + * 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 "libfoo.h" #include "sema.h" @@ -18,7 +27,6 @@ #include #include #include -#include #include #include