1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM platform_trace_event 4 5 #if !defined(_TRACE_PLATFORM_TRACE_EVENT_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_PLATFORM_TRACE_EVENT_H 7 8 #include <linux/tracepoint.h> 9 10 TRACE_EVENT(platfrom_trace_record_messages, 11 TP_PROTO( 12 const char *buf 13 ), 14 15 TP_ARGS(buf), 16 17 TP_STRUCT__entry( 18 __string(msg, buf) 19 ), 20 21 TP_fast_assign( 22 __assign_str(msg, buf) 23 ), 24 25 TP_printk("platform trace info msg='%s'", __get_str(msg)) 26 ); 27 #endif /* _TRACE_PLATFORM_TRACE_EVENT_H */ 28 29 /* This part must be outside protection */ 30 #include <trace/define_trace.h>