Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / libfoo.c
index 78c79fb84e13e8e4580678178ed9a25f52de63e4..283dac24e5387d6e1af90e4cc126ec3f6b7582f1 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 foo_function()
 {
        FOOBAR_TP_IN_SHARED_OBJECT();
This page took 0.022976 seconds and 4 git commands to generate.