.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / utils / testapp / userspace-probe-sdt-binary / libfoo.c
index 103b3d729285ea637da28ec0ecc4086b37bdbea7..283dac24e5387d6e1af90e4cc126ec3f6b7582f1 100644 (file)
@@ -5,10 +5,20 @@
  *
  */
 
+/*
+ * 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"
-void foo_function() {
+/* clang-format on */
+
+void foo_function()
+{
        FOOBAR_TP_IN_SHARED_OBJECT();
 }
-void overridable_function() {
+void overridable_function()
+{
 }
This page took 0.02422 seconds and 4 git commands to generate.