Move public tracepoint definition headers to 'lttng/tp'
[lttng-ust.git] / include / lttng / tp / lttng-ust-tracef.h
diff --git a/include/lttng/tp/lttng-ust-tracef.h b/include/lttng/tp/lttng-ust-tracef.h
new file mode 100644 (file)
index 0000000..785f213
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2011-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#include <lttng/tracepoint.h>
+#include <stdarg.h>
+
+TRACEPOINT_EVENT(lttng_ust_tracef, event,
+       TP_ARGS(const char *, msg, unsigned int, len, void *, ip),
+       TP_FIELDS(
+               ctf_sequence_text(char, msg, msg, unsigned int, len)
+       )
+)
+TRACEPOINT_LOGLEVEL(lttng_ust_tracef, event, TRACE_DEBUG)
This page took 0.025834 seconds and 4 git commands to generate.