cregit-Linux how code gets into the kernel

Release 4.7 include/trace/events/printk.h


#undef TRACE_SYSTEM

#define TRACE_SYSTEM printk

#if !defined(_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)

#define _TRACE_PRINTK_H

#include <linux/tracepoint.h>

TRACE_EVENT(console,
	TP_PROTO(const char *text, size_t len),

	TP_ARGS(text, len),

	TP_STRUCT__entry(
                __dynamic_array(char, msg, len + 1)
        ),

	TP_fast_assign(
                memcpy(__get_dynamic_array(msg), text, len);
                ((char *)__get_dynamic_array(msg))[len] = 0;
        ),

	TP_printk("%s", __get_str(msg))
);
#endif /* _TRACE_PRINTK_H */

/* This part must be outside protection */
#include <trace/define_trace.h>

Overall Contributors

PersonTokensPropCommitsCommitProp
johannes bergjohannes berg4890.57%150.00%
jovi zhangweijovi zhangwei59.43%150.00%
Total53100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}