Fix block_rq_complete TP on Ubuntu kernel
[lttng-modules.git] / instrumentation / events / lttng-module / lttng.h
index 4cc14fc58a5dcb2902f0c7bc94c66fabd3233534..c2ddf8d1d391cfaa24c69b0e350fa4f79a82e0bf 100644 (file)
@@ -6,29 +6,19 @@
 
 #include <linux/tracepoint.h>
 
-TRACE_EVENT(lttng_metadata,
-
-       TP_PROTO(const char *str),
-
-       TP_ARGS(str),
-
-       /*
-        * Not exactly a string: more a sequence of bytes (dynamic
-        * array) without the length. This is a dummy anyway: we only
-        * use this declaration to generate an event metadata entry.
-        */
+TRACE_EVENT(lttng_logger,
+       TP_PROTO(const char __user *text, size_t len),
+       TP_ARGS(text, len),
        TP_STRUCT__entry(
-               __string(       str,            str     )
+               __dynamic_array_text(char, msg, len)
        ),
-
        TP_fast_assign(
-               tp_strcpy(str, str)
+               tp_memcpy_dyn_from_user(msg, text)
        ),
-
        TP_printk("")
 )
 
-#endif /*  _TRACE_LTTNG_H */
+#endif /* _TRACE_LTTNG_H */
 
 /* This part must be outside protection */
-#include "define_trace.h"
+#include "../../../probes/define_trace.h"
This page took 0.032704 seconds and 4 git commands to generate.