Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / userspace-probe-sdt-binary.c
index c9c8036970638788acbce1c4d91f18c0249ad24a..551b42b5a7e33310dd783b6a897de180fa48ea2d 100644 (file)
@@ -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 <sys/sdt.h>
 #include "foobar_provider.h"
+/* clang-format on */
+
 #include "libfoo.h"
 #include "sema.h"
 
@@ -18,7 +27,6 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
-#include <sys/sdt.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
This page took 0.023402 seconds and 4 git commands to generate.