1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM scmi
5 #if !defined(_TRACE_SCMI_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(scmi_xfer_begin
,
11 TP_PROTO(int transfer_id
, u8 msg_id
, u8 protocol_id
, u16 seq
,
13 TP_ARGS(transfer_id
, msg_id
, protocol_id
, seq
, poll
),
16 __field(int, transfer_id
)
18 __field(u8
, protocol_id
)
24 __entry
->transfer_id
= transfer_id
;
25 __entry
->msg_id
= msg_id
;
26 __entry
->protocol_id
= protocol_id
;
31 TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u poll=%u",
32 __entry
->transfer_id
, __entry
->msg_id
, __entry
->protocol_id
,
33 __entry
->seq
, __entry
->poll
)
36 TRACE_EVENT(scmi_xfer_end
,
37 TP_PROTO(int transfer_id
, u8 msg_id
, u8 protocol_id
, u16 seq
,
39 TP_ARGS(transfer_id
, msg_id
, protocol_id
, seq
, status
),
42 __field(int, transfer_id
)
44 __field(u8
, protocol_id
)
50 __entry
->transfer_id
= transfer_id
;
51 __entry
->msg_id
= msg_id
;
52 __entry
->protocol_id
= protocol_id
;
54 __entry
->status
= status
;
57 TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u status=%u",
58 __entry
->transfer_id
, __entry
->msg_id
, __entry
->protocol_id
,
59 __entry
->seq
, __entry
->status
)
62 TRACE_EVENT(scmi_rx_done
,
63 TP_PROTO(int transfer_id
, u8 msg_id
, u8 protocol_id
, u16 seq
,
65 TP_ARGS(transfer_id
, msg_id
, protocol_id
, seq
, msg_type
),
68 __field(int, transfer_id
)
70 __field(u8
, protocol_id
)
76 __entry
->transfer_id
= transfer_id
;
77 __entry
->msg_id
= msg_id
;
78 __entry
->protocol_id
= protocol_id
;
80 __entry
->msg_type
= msg_type
;
83 TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u msg_type=%u",
84 __entry
->transfer_id
, __entry
->msg_id
, __entry
->protocol_id
,
85 __entry
->seq
, __entry
->msg_type
)
87 #endif /* _TRACE_SCMI_H */
89 /* This part must be outside protection */
90 #include <trace/define_trace.h>