Fix: warning kvm_trace_exit_reason redefined for 3.9 kernel
[lttng-modules.git] / instrumentation / events / lttng-module / lttng.h
index 690b5df727dd337be38183a00561ef1af5756dee..6f3d6d1412154bde10c2f3ec7e2c666e92c13992 100644 (file)
@@ -12,12 +12,17 @@ TRACE_EVENT(lttng_metadata,
 
        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.
+        */
        TP_STRUCT__entry(
-               __string(       string,         str     )
+               __string(       str,            str     )
        ),
 
        TP_fast_assign(
-               tp_strcpy(string, str)
+               tp_strcpy(str, str)
        ),
 
        TP_printk("")
@@ -26,4 +31,4 @@ TRACE_EVENT(lttng_metadata,
 #endif /*  _TRACE_LTTNG_H */
 
 /* This part must be outside protection */
-#include "define_trace.h"
+#include "../../../probes/define_trace.h"
This page took 0.04415 seconds and 4 git commands to generate.