1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM intel-sst
6 * The TRACE_SYSTEM_VAR defaults to TRACE_SYSTEM, but must be a
7 * legitimate C variable. It is not exported to user space.
9 #undef TRACE_SYSTEM_VAR
10 #define TRACE_SYSTEM_VAR intel_sst
12 #if !defined(_TRACE_INTEL_SST_H) || defined(TRACE_HEADER_MULTI_READ)
13 #define _TRACE_INTEL_SST_H
15 #include <linux/types.h>
16 #include <linux/ktime.h>
17 #include <linux/tracepoint.h>
19 DECLARE_EVENT_CLASS(sst_ipc_msg
,
21 TP_PROTO(unsigned int val
),
26 __field( unsigned int, val
)
33 TP_printk("0x%8.8x", (unsigned int)__entry
->val
)
36 DEFINE_EVENT(sst_ipc_msg
, sst_ipc_msg_tx
,
38 TP_PROTO(unsigned int val
),
44 DEFINE_EVENT(sst_ipc_msg
, sst_ipc_msg_rx
,
46 TP_PROTO(unsigned int val
),
52 DECLARE_EVENT_CLASS(sst_ipc_mailbox
,
54 TP_PROTO(unsigned int offset
, unsigned int val
),
59 __field( unsigned int, offset
)
60 __field( unsigned int, val
)
64 __entry
->offset
= offset
;
68 TP_printk(" 0x%4.4x = 0x%8.8x",
69 (unsigned int)__entry
->offset
, (unsigned int)__entry
->val
)
72 DEFINE_EVENT(sst_ipc_mailbox
, sst_ipc_inbox_rdata
,
74 TP_PROTO(unsigned int offset
, unsigned int val
),
80 DEFINE_EVENT(sst_ipc_mailbox
, sst_ipc_inbox_wdata
,
82 TP_PROTO(unsigned int offset
, unsigned int val
),
88 DEFINE_EVENT(sst_ipc_mailbox
, sst_ipc_outbox_rdata
,
90 TP_PROTO(unsigned int offset
, unsigned int val
),
96 DEFINE_EVENT(sst_ipc_mailbox
, sst_ipc_outbox_wdata
,
98 TP_PROTO(unsigned int offset
, unsigned int val
),
104 DECLARE_EVENT_CLASS(sst_ipc_mailbox_info
,
106 TP_PROTO(unsigned int size
),
111 __field( unsigned int, size
)
115 __entry
->size
= size
;
118 TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry
->size
)
121 DEFINE_EVENT(sst_ipc_mailbox_info
, sst_ipc_inbox_read
,
123 TP_PROTO(unsigned int size
),
129 DEFINE_EVENT(sst_ipc_mailbox_info
, sst_ipc_inbox_write
,
131 TP_PROTO(unsigned int size
),
137 DEFINE_EVENT(sst_ipc_mailbox_info
, sst_ipc_outbox_read
,
139 TP_PROTO(unsigned int size
),
145 DEFINE_EVENT(sst_ipc_mailbox_info
, sst_ipc_outbox_write
,
147 TP_PROTO(unsigned int size
),
153 #endif /* _TRACE_SST_H */
155 /* This part must be outside protection */
156 #include <trace/define_trace.h>