Drop support for kernels < 4.4 from printk instrumentation
[lttng-modules.git] / include / instrumentation / events / printk.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM printk
4
5 #if !defined(LTTNG_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_PRINTK_H
7
8 #include <lttng/tracepoint-event.h>
9 #include <lttng/kernel-version.h>
10
11 LTTNG_TRACEPOINT_EVENT_MAP(console,
12
13 printk_console,
14
15 TP_PROTO(const char *text, size_t len),
16
17 TP_ARGS(text, len),
18
19 TP_FIELDS(
20 ctf_sequence_text(char, msg, text, size_t, len)
21 )
22 )
23
24 #endif /* LTTNG_TRACE_PRINTK_H */
25
26 /* This part must be outside protection */
27 #include <lttng/define_trace.h>
This page took 0.028842 seconds and 4 git commands to generate.