X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Flttng.h;h=91eb4608096fb1b02b2ffc4874c253ed7f421d14;hb=cf77d12083b5092eca8c6f9899ec0892756845aa;hp=4cc14fc58a5dcb2902f0c7bc94c66fabd3233534;hpb=64c796d8aec1efa5d6f0d5850d2a0095cb7842e3;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/lttng.h b/instrumentation/events/lttng-module/lttng.h index 4cc14fc5..91eb4608 100644 --- a/instrumentation/events/lttng-module/lttng.h +++ b/instrumentation/events/lttng-module/lttng.h @@ -1,34 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #undef TRACE_SYSTEM #define TRACE_SYSTEM lttng -#if !defined(_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ) -#define _TRACE_LTTNG_H +#if !defined(LTTNG_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ) +#define LTTNG_TRACE_LTTNG_H -#include +#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. - */ - TP_STRUCT__entry( - __string( str, str ) - ), - - TP_fast_assign( - tp_strcpy(str, str) - ), - - TP_printk("") +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 /* _TRACE_LTTNG_H */ +#endif /* LTTNG_TRACE_LTTNG_H */ /* This part must be outside protection */ -#include "define_trace.h" +#include