Cleanup: Move instrumentation/ headers to include/instrumentation/
[lttng-modules.git] / include / instrumentation / events / lttng-module / lttng.h
diff --git a/include/instrumentation/events/lttng-module/lttng.h b/include/instrumentation/events/lttng-module/lttng.h
new file mode 100644 (file)
index 0000000..91eb460
--- /dev/null
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM lttng
+
+#if !defined(LTTNG_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ)
+#define LTTNG_TRACE_LTTNG_H
+
+#include <lttng/tracepoint-event.h>
+
+LTTNG_TRACEPOINT_EVENT(lttng_logger,
+       TP_PROTO(const char __user *text, size_t len),
+       TP_ARGS(text, len),
+       TP_FIELDS(
+               ctf_user_sequence_text(char, msg, text, size_t, len)
+       )
+)
+
+#endif /* LTTNG_TRACE_LTTNG_H */
+
+/* This part must be outside protection */
+#include <lttng/define_trace.h>
This page took 0.023504 seconds and 4 git commands to generate.