X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Flttng.h;h=c2ddf8d1d391cfaa24c69b0e350fa4f79a82e0bf;hb=fc6d6f213148c9babf46500058b10ff99db7d4d0;hp=6f3d6d1412154bde10c2f3ec7e2c666e92c13992;hpb=5b88d86e2d45fed6d405fd9fb72d6c1c22d35374;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/lttng.h b/instrumentation/events/lttng-module/lttng.h index 6f3d6d14..c2ddf8d1 100644 --- a/instrumentation/events/lttng-module/lttng.h +++ b/instrumentation/events/lttng-module/lttng.h @@ -6,29 +6,19 @@ #include -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 "../../../probes/define_trace.h"