Fix: warning kvm_trace_exit_reason redefined for 3.9 kernel
[lttng-modules.git] / instrumentation / events / lttng-module / lttng.h
CommitLineData
cd4bd11f
MD
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
9TRACE_EVENT(lttng_metadata,
10
11 TP_PROTO(const char *str),
12
13 TP_ARGS(str),
14
64c796d8
MD
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 */
cd4bd11f 20 TP_STRUCT__entry(
30bdb6e4 21 __string( str, str )
cd4bd11f
MD
22 ),
23
24 TP_fast_assign(
30bdb6e4 25 tp_strcpy(str, str)
cd4bd11f
MD
26 ),
27
28 TP_printk("")
29)
30
31#endif /* _TRACE_LTTNG_H */
32
33/* This part must be outside protection */
5b88d86e 34#include "../../../probes/define_trace.h"
This page took 0.025943 seconds and 4 git commands to generate.