X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Flttng.h;h=6f3d6d1412154bde10c2f3ec7e2c666e92c13992;hb=9a6800e3a7bed25af7a62d7e8cb2ad9a689e5877;hp=690b5df727dd337be38183a00561ef1af5756dee;hpb=cd4bd11fe2d3232089186a5b9b021b7cb504a8fb;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/lttng.h b/instrumentation/events/lttng-module/lttng.h index 690b5df7..6f3d6d14 100644 --- a/instrumentation/events/lttng-module/lttng.h +++ b/instrumentation/events/lttng-module/lttng.h @@ -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"