1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM initcall
5 #if !defined(_TRACE_INITCALL_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_INITCALL_H
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(initcall_level,
12 TP_PROTO(const char *level),
17 __string(level, level)
21 __assign_str(level, level);
24 TP_printk("level=%s", __get_str(level))
27 TRACE_EVENT(initcall_start,
29 TP_PROTO(initcall_t func),
35 * Use field_struct to avoid is_signed_type()
36 * comparison of a function pointer
38 __field_struct(initcall_t, func)
45 TP_printk("func=%pS", __entry->func)
48 TRACE_EVENT(initcall_finish,
50 TP_PROTO(initcall_t func, int ret),
56 * Use field_struct to avoid is_signed_type()
57 * comparison of a function pointer
59 __field_struct(initcall_t, func)
68 TP_printk("func=%pS ret=%d", __entry->func, __entry->ret)
71 #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
73 /* This part must be outside protection */
74 #include <trace/define_trace.h>