Tests: fix: test_list_triggers_cli fails to list userspace-probe-sdt trigger
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / libzzz.c
index ee7599f9e68ff27a7008b53859c3768a5b2ceef3..8b3a0b2081e4facef5aa5df988a1ad12bfe87d27 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 overridable_function()
 {
        FOOBAR_TP_IN_LDPRELOAD();
This page took 0.022962 seconds and 4 git commands to generate.