summaryrefslogtreecommitdiffstats
path: root/src/daemon/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/trace.h')
-rw-r--r--src/daemon/trace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/trace.h b/src/daemon/trace.h
new file mode 100644
index 0000000..2e7c482
--- /dev/null
+++ b/src/daemon/trace.h
@@ -0,0 +1,8 @@
+#ifdef ENABLE_DTRACE
+# include "probes.h"
+# define TRACE(probe) probe
+# define TRACE_ENABLED(probe) probe##_ENABLED()
+#else
+# define TRACE(probe)
+# define TRACE_ENABLED(probe) (0)
+#endif