| 1 | #undef TRACE_SYSTEM |
| 2 | #define TRACE_SYSTEM lttng |
| 3 | |
| 4 | #if !defined(_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ) |
| 5 | #define _TRACE_LTTNG_H |
| 6 | |
| 7 | #include <linux/tracepoint.h> |
| 8 | |
| 9 | TRACE_EVENT(lttng_metadata, |
| 10 | |
| 11 | TP_PROTO(const char *str), |
| 12 | |
| 13 | TP_ARGS(str), |
| 14 | |
| 15 | /* |
| 16 | * Not exactly a string: more a sequence of bytes (dynamic |
| 17 | * array) without the length. This is a dummy anyway: we only |
| 18 | * use this declaration to generate an event metadata entry. |
| 19 | */ |
| 20 | TP_STRUCT__entry( |
| 21 | __string( str, str ) |
| 22 | ), |
| 23 | |
| 24 | TP_fast_assign( |
| 25 | tp_strcpy(str, str) |
| 26 | ), |
| 27 | |
| 28 | TP_printk("") |
| 29 | ) |
| 30 | |
| 31 | #endif /* _TRACE_LTTNG_H */ |
| 32 | |
| 33 | /* This part must be outside protection */ |
| 34 | #include "../../../probes/define_trace.h" |