1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Copyright (c) 2023, Linaro Ltd 4 */ 5 6 #undef TRACE_SYSTEM 7 #define TRACE_SYSTEM pmic_pdcharger_ulog 8 9 #if !defined(_TRACE_PMIC_PDCHARGER_ULOG_H) || defined(TRACE_HEADER_MULTI_READ) 10 #define _TRACE_PMIC_PDCHARGER_ULOG_H 11 12 #include <linux/tracepoint.h> 13 14 TRACE_EVENT(pmic_pdcharger_ulog_msg, 15 TP_PROTO(char *msg), 16 TP_ARGS(msg), 17 TP_STRUCT__entry( 18 __string(msg, msg) 19 ), 20 TP_fast_assign( 21 __assign_str(msg, msg); 22 ), 23 TP_printk("%s", __get_str(msg)) 24 ); 25 26 #endif /* _TRACE_PMIC_PDCHARGER_ULOG_H */ 27 28 /* This part must be outside protection */ 29 30 #undef TRACE_INCLUDE_PATH 31 #define TRACE_INCLUDE_PATH . 32 33 #undef TRACE_INCLUDE_FILE 34 #define TRACE_INCLUDE_FILE pmic_pdcharger_ulog 35 36 #include <trace/define_trace.h> 37