Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / libbar.c
index 633fa0561c792a4085a30a4669cd072fa3686258..0a0edfb81a9249ea71b0fe2a51254c28066f1227 100644 (file)
@@ -5,9 +5,16 @@
  *
  */
 
+/*
+ * 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 <sys/sdt.h>
 void bar_function()
 {
        FOOBAR_TP_IN_DLOPEN();
This page took 0.022823 seconds and 4 git commands to generate.