xref: /openbmc/linux/include/trace/events/intel-sst.h (revision afb46f79)
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM intel-sst
3 
4 #if !defined(_TRACE_INTEL_SST_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_INTEL_SST_H
6 
7 #include <linux/types.h>
8 #include <linux/ktime.h>
9 #include <linux/tracepoint.h>
10 
11 DECLARE_EVENT_CLASS(sst_ipc_msg,
12 
13 	TP_PROTO(unsigned int val),
14 
15 	TP_ARGS(val),
16 
17 	TP_STRUCT__entry(
18 		__field(	unsigned int,	val		)
19 	),
20 
21 	TP_fast_assign(
22 		__entry->val = val;
23 	),
24 
25 	TP_printk("0x%8.8x", (unsigned int)__entry->val)
26 );
27 
28 DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_tx,
29 
30 	TP_PROTO(unsigned int val),
31 
32 	TP_ARGS(val)
33 
34 );
35 
36 DEFINE_EVENT(sst_ipc_msg, sst_ipc_msg_rx,
37 
38 	TP_PROTO(unsigned int val),
39 
40 	TP_ARGS(val)
41 
42 );
43 
44 DECLARE_EVENT_CLASS(sst_ipc_mailbox,
45 
46 	TP_PROTO(unsigned int offset, unsigned int val),
47 
48 	TP_ARGS(offset, val),
49 
50 	TP_STRUCT__entry(
51 		__field(	unsigned int,	offset		)
52 		__field(	unsigned int,	val		)
53 	),
54 
55 	TP_fast_assign(
56 		__entry->offset = offset;
57 		__entry->val = val;
58 	),
59 
60 	TP_printk(" 0x%4.4x = 0x%8.8x",
61 		(unsigned int)__entry->offset, (unsigned int)__entry->val)
62 );
63 
64 DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_rdata,
65 
66 	TP_PROTO(unsigned int offset, unsigned int val),
67 
68 	TP_ARGS(offset, val)
69 
70 );
71 
72 DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_wdata,
73 
74 	TP_PROTO(unsigned int offset, unsigned int val),
75 
76 	TP_ARGS(offset, val)
77 
78 );
79 
80 DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_rdata,
81 
82 	TP_PROTO(unsigned int offset, unsigned int val),
83 
84 	TP_ARGS(offset, val)
85 
86 );
87 
88 DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_outbox_wdata,
89 
90 	TP_PROTO(unsigned int offset, unsigned int val),
91 
92 	TP_ARGS(offset, val)
93 
94 );
95 
96 DECLARE_EVENT_CLASS(sst_ipc_mailbox_info,
97 
98 	TP_PROTO(unsigned int size),
99 
100 	TP_ARGS(size),
101 
102 	TP_STRUCT__entry(
103 		__field(	unsigned int,	size		)
104 	),
105 
106 	TP_fast_assign(
107 		__entry->size = size;
108 	),
109 
110 	TP_printk("Mailbox bytes 0x%8.8x", (unsigned int)__entry->size)
111 );
112 
113 DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_read,
114 
115 	TP_PROTO(unsigned int size),
116 
117 	TP_ARGS(size)
118 
119 );
120 
121 DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_inbox_write,
122 
123 	TP_PROTO(unsigned int size),
124 
125 	TP_ARGS(size)
126 
127 );
128 
129 DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_read,
130 
131 	TP_PROTO(unsigned int size),
132 
133 	TP_ARGS(size)
134 
135 );
136 
137 DEFINE_EVENT(sst_ipc_mailbox_info, sst_ipc_outbox_write,
138 
139 	TP_PROTO(unsigned int size),
140 
141 	TP_ARGS(size)
142 
143 );
144 
145 #endif /* _TRACE_SST_H */
146 
147 /* This part must be outside protection */
148 #include <trace/define_trace.h>
149