Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[linux/fpc-iii.git] / include / trace / events / printk.h
blobc008bc99f9fa9093beb2668f2ebb33a72b825715
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM printk
4 #if !defined(_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_PRINTK_H
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(console,
10 TP_PROTO(const char *text, size_t len),
12 TP_ARGS(text, len),
14 TP_STRUCT__entry(
15 __dynamic_array(char, msg, len + 1)
18 TP_fast_assign(
19 memcpy(__get_dynamic_array(msg), text, len);
20 ((char *)__get_dynamic_array(msg))[len] = 0;
23 TP_printk("%s", __get_str(msg))
25 #endif /* _TRACE_PRINTK_H */
27 /* This part must be outside protection */
28 #include <trace/define_trace.h>