Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / sema.c
index ffe2b5c6016a50355ba5de3d2f2df49b5e4a566d..ef8ed2629ddc6bc6fafa5c3fb3f26238593776aa 100644 (file)
@@ -5,9 +5,16 @@
  *
  */
 
+/*
+ * The order of inclusion is important here: including sdt.h _after_ the probe
+ * declarations ensures that semaphore-protected SDT probes are
+ * generated. See SYSTEMTAP(2) for more details.
+ */
+/* clang-format off */
 #include "foobar_provider.h"
-
 #include <sys/sdt.h>
+/* clang-format on */
+
 void sema_function()
 {
        FOOBAR_TP_WITH_SEMAPHORE();
This page took 0.022895 seconds and 4 git commands to generate.