blob: 06ca505bb2cc68cb84168f55107e52324639ff4a [file] [log] [blame]
Reinette Chatrebb5d2db2010-01-15 13:42:59 -08001/******************************************************************************
2 *
Wey-Yi Guyfb4961d2012-01-06 13:16:33 -08003 * Copyright(c) 2009 - 2012 Intel Corporation. All rights reserved.
Reinette Chatrebb5d2db2010-01-15 13:42:59 -08004 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17 *
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
20 *
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 *
25 *****************************************************************************/
26
Johannes Bergbe1a71a2009-10-02 13:44:02 -070027#if !defined(__IWLWIFI_DEVICE_TRACE) || defined(TRACE_HEADER_MULTI_READ)
28#define __IWLWIFI_DEVICE_TRACE
29
30#include <linux/tracepoint.h>
Johannes Berg1023fdc2012-05-15 12:16:34 +020031#include <linux/device.h>
Johannes Bergbe1a71a2009-10-02 13:44:02 -070032
Emmanuel Grumbach83ed9012011-08-25 23:11:14 -070033
Johannes Bergbe1a71a2009-10-02 13:44:02 -070034#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
35#undef TRACE_EVENT
36#define TRACE_EVENT(name, proto, ...) \
37static inline void trace_ ## name(proto) {}
Johannes Berg2655e312012-01-31 21:08:37 -080038#undef DECLARE_EVENT_CLASS
39#define DECLARE_EVENT_CLASS(...)
40#undef DEFINE_EVENT
41#define DEFINE_EVENT(evt_class, name, proto, ...) \
42static inline void trace_ ## name(proto) {}
Johannes Bergbe1a71a2009-10-02 13:44:02 -070043#endif
44
Johannes Berg6c1011e2012-03-06 13:30:48 -080045#define DEV_ENTRY __string(dev, dev_name(dev))
46#define DEV_ASSIGN __assign_str(dev, dev_name(dev))
Johannes Bergbe1a71a2009-10-02 13:44:02 -070047
48#undef TRACE_SYSTEM
Johannes Berg0fd95af2009-11-20 12:05:02 -080049#define TRACE_SYSTEM iwlwifi_io
Johannes Bergbe1a71a2009-10-02 13:44:02 -070050
51TRACE_EVENT(iwlwifi_dev_ioread32,
Johannes Berg6c1011e2012-03-06 13:30:48 -080052 TP_PROTO(const struct device *dev, u32 offs, u32 val),
53 TP_ARGS(dev, offs, val),
Johannes Bergbe1a71a2009-10-02 13:44:02 -070054 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080055 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -070056 __field(u32, offs)
57 __field(u32, val)
58 ),
59 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080060 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -070061 __entry->offs = offs;
62 __entry->val = val;
63 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080064 TP_printk("[%s] read io[%#x] = %#x",
65 __get_str(dev), __entry->offs, __entry->val)
Johannes Bergbe1a71a2009-10-02 13:44:02 -070066);
67
Ben Cahill4e031852009-11-20 12:04:52 -080068TRACE_EVENT(iwlwifi_dev_iowrite8,
Johannes Berg6c1011e2012-03-06 13:30:48 -080069 TP_PROTO(const struct device *dev, u32 offs, u8 val),
70 TP_ARGS(dev, offs, val),
Ben Cahill4e031852009-11-20 12:04:52 -080071 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080072 DEV_ENTRY
Ben Cahill4e031852009-11-20 12:04:52 -080073 __field(u32, offs)
74 __field(u8, val)
75 ),
76 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080077 DEV_ASSIGN;
Ben Cahill4e031852009-11-20 12:04:52 -080078 __entry->offs = offs;
79 __entry->val = val;
80 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080081 TP_printk("[%s] write io[%#x] = %#x)",
82 __get_str(dev), __entry->offs, __entry->val)
Ben Cahill4e031852009-11-20 12:04:52 -080083);
84
Johannes Bergbe1a71a2009-10-02 13:44:02 -070085TRACE_EVENT(iwlwifi_dev_iowrite32,
Johannes Berg6c1011e2012-03-06 13:30:48 -080086 TP_PROTO(const struct device *dev, u32 offs, u32 val),
87 TP_ARGS(dev, offs, val),
Johannes Bergbe1a71a2009-10-02 13:44:02 -070088 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080089 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -070090 __field(u32, offs)
91 __field(u32, val)
92 ),
93 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080094 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -070095 __entry->offs = offs;
96 __entry->val = val;
97 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080098 TP_printk("[%s] write io[%#x] = %#x)",
99 __get_str(dev), __entry->offs, __entry->val)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700100);
101
Johannes Bergb80667e2011-12-09 07:26:13 -0800102TRACE_EVENT(iwlwifi_dev_irq,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800103 TP_PROTO(const struct device *dev),
104 TP_ARGS(dev),
Johannes Bergb80667e2011-12-09 07:26:13 -0800105 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800106 DEV_ENTRY
Johannes Bergb80667e2011-12-09 07:26:13 -0800107 ),
108 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800109 DEV_ASSIGN;
Johannes Bergb80667e2011-12-09 07:26:13 -0800110 ),
111 /* TP_printk("") doesn't compile */
112 TP_printk("%d", 0)
113);
114
115TRACE_EVENT(iwlwifi_dev_ict_read,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800116 TP_PROTO(const struct device *dev, u32 index, u32 value),
117 TP_ARGS(dev, index, value),
Johannes Bergb80667e2011-12-09 07:26:13 -0800118 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800119 DEV_ENTRY
Johannes Bergb80667e2011-12-09 07:26:13 -0800120 __field(u32, index)
121 __field(u32, value)
122 ),
123 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800124 DEV_ASSIGN;
Johannes Bergb80667e2011-12-09 07:26:13 -0800125 __entry->index = index;
126 __entry->value = value;
127 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800128 TP_printk("[%s] read ict[%d] = %#.8x",
129 __get_str(dev), __entry->index, __entry->value)
Johannes Bergb80667e2011-12-09 07:26:13 -0800130);
131
Johannes Berg0fd95af2009-11-20 12:05:02 -0800132#undef TRACE_SYSTEM
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800133#define TRACE_SYSTEM iwlwifi_ucode
134
135TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800136 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
137 TP_ARGS(dev, time, data, ev),
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800138 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800139 DEV_ENTRY
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800140
141 __field(u32, time)
142 __field(u32, data)
143 __field(u32, ev)
144 ),
145 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800146 DEV_ASSIGN;
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800147 __entry->time = time;
148 __entry->data = data;
149 __entry->ev = ev;
150 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800151 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
152 __get_str(dev), __entry->time, __entry->data, __entry->ev)
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800153);
154
155TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800156 TP_PROTO(const struct device *dev, u32 wraps, u32 n_entry, u32 p_entry),
157 TP_ARGS(dev, wraps, n_entry, p_entry),
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800158 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800159 DEV_ENTRY
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800160
161 __field(u32, wraps)
162 __field(u32, n_entry)
163 __field(u32, p_entry)
164 ),
165 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800166 DEV_ASSIGN;
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800167 __entry->wraps = wraps;
168 __entry->n_entry = n_entry;
169 __entry->p_entry = p_entry;
170 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800171 TP_printk("[%s] wraps=#%02d n=0x%X p=0x%X",
172 __get_str(dev), __entry->wraps, __entry->n_entry,
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800173 __entry->p_entry)
174);
175
176#undef TRACE_SYSTEM
Johannes Berg2655e312012-01-31 21:08:37 -0800177#define TRACE_SYSTEM iwlwifi_msg
178
Johannes Bergeecf21a2012-06-22 15:21:02 +0200179#define MAX_MSG_LEN 110
Johannes Berg2655e312012-01-31 21:08:37 -0800180
181DECLARE_EVENT_CLASS(iwlwifi_msg_event,
182 TP_PROTO(struct va_format *vaf),
183 TP_ARGS(vaf),
184 TP_STRUCT__entry(
185 __dynamic_array(char, msg, MAX_MSG_LEN)
186 ),
187 TP_fast_assign(
188 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
189 MAX_MSG_LEN, vaf->fmt,
190 *vaf->va) >= MAX_MSG_LEN);
191 ),
Johannes Berg94bfa4a2012-06-22 19:39:23 +0200192 TP_printk("%s", __get_str(msg))
Johannes Berg2655e312012-01-31 21:08:37 -0800193);
194
195DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_err,
196 TP_PROTO(struct va_format *vaf),
197 TP_ARGS(vaf)
198);
199
200DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_warn,
201 TP_PROTO(struct va_format *vaf),
202 TP_ARGS(vaf)
203);
204
205DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_info,
206 TP_PROTO(struct va_format *vaf),
207 TP_ARGS(vaf)
208);
209
210DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_crit,
211 TP_PROTO(struct va_format *vaf),
212 TP_ARGS(vaf)
213);
214
215TRACE_EVENT(iwlwifi_dbg,
216 TP_PROTO(u32 level, bool in_interrupt, const char *function,
217 struct va_format *vaf),
218 TP_ARGS(level, in_interrupt, function, vaf),
219 TP_STRUCT__entry(
220 __field(u32, level)
221 __field(u8, in_interrupt)
222 __string(function, function)
223 __dynamic_array(char, msg, MAX_MSG_LEN)
224 ),
225 TP_fast_assign(
226 __entry->level = level;
227 __entry->in_interrupt = in_interrupt;
228 __assign_str(function, function);
229 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
230 MAX_MSG_LEN, vaf->fmt,
231 *vaf->va) >= MAX_MSG_LEN);
232 ),
233 TP_printk("%s", (char *)__get_dynamic_array(msg))
234);
235
236#undef TRACE_SYSTEM
Johannes Berg0fd95af2009-11-20 12:05:02 -0800237#define TRACE_SYSTEM iwlwifi
238
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700239TRACE_EVENT(iwlwifi_dev_hcmd,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800240 TP_PROTO(const struct device *dev, u32 flags,
Johannes Berg4ce7cc22011-05-13 11:57:40 -0700241 const void *hcmd0, size_t len0,
242 const void *hcmd1, size_t len1,
243 const void *hcmd2, size_t len2),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800244 TP_ARGS(dev, flags, hcmd0, len0, hcmd1, len1, hcmd2, len2),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700245 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800246 DEV_ENTRY
Johannes Berg4ce7cc22011-05-13 11:57:40 -0700247 __dynamic_array(u8, hcmd0, len0)
248 __dynamic_array(u8, hcmd1, len1)
249 __dynamic_array(u8, hcmd2, len2)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700250 __field(u32, flags)
251 ),
252 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800253 DEV_ASSIGN;
Johannes Berg4ce7cc22011-05-13 11:57:40 -0700254 memcpy(__get_dynamic_array(hcmd0), hcmd0, len0);
255 memcpy(__get_dynamic_array(hcmd1), hcmd1, len1);
256 memcpy(__get_dynamic_array(hcmd2), hcmd2, len2);
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700257 __entry->flags = flags;
258 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800259 TP_printk("[%s] hcmd %#.2x (%ssync)",
260 __get_str(dev), ((u8 *)__get_dynamic_array(hcmd0))[0],
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700261 __entry->flags & CMD_ASYNC ? "a" : "")
262);
263
264TRACE_EVENT(iwlwifi_dev_rx,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800265 TP_PROTO(const struct device *dev, void *rxbuf, size_t len),
266 TP_ARGS(dev, rxbuf, len),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700267 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800268 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700269 __dynamic_array(u8, rxbuf, len)
270 ),
271 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800272 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700273 memcpy(__get_dynamic_array(rxbuf), rxbuf, len);
274 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800275 TP_printk("[%s] RX cmd %#.2x",
276 __get_str(dev), ((u8 *)__get_dynamic_array(rxbuf))[4])
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700277);
278
279TRACE_EVENT(iwlwifi_dev_tx,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800280 TP_PROTO(const struct device *dev, void *tfd, size_t tfdlen,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700281 void *buf0, size_t buf0_len,
282 void *buf1, size_t buf1_len),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800283 TP_ARGS(dev, tfd, tfdlen, buf0, buf0_len, buf1, buf1_len),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700284 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800285 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700286
287 __field(size_t, framelen)
288 __dynamic_array(u8, tfd, tfdlen)
289
290 /*
291 * Do not insert between or below these items,
292 * we want to keep the frame together (except
293 * for the possible padding).
294 */
295 __dynamic_array(u8, buf0, buf0_len)
296 __dynamic_array(u8, buf1, buf1_len)
297 ),
298 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800299 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700300 __entry->framelen = buf0_len + buf1_len;
301 memcpy(__get_dynamic_array(tfd), tfd, tfdlen);
302 memcpy(__get_dynamic_array(buf0), buf0, buf0_len);
Johannes Berge95b7432010-08-06 16:00:48 +0200303 memcpy(__get_dynamic_array(buf1), buf1, buf1_len);
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700304 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800305 TP_printk("[%s] TX %.2x (%zu bytes)",
306 __get_str(dev), ((u8 *)__get_dynamic_array(buf0))[0],
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700307 __entry->framelen)
308);
309
310TRACE_EVENT(iwlwifi_dev_ucode_error,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800311 TP_PROTO(const struct device *dev, u32 desc, u32 tsf_low,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700312 u32 data1, u32 data2, u32 line, u32 blink1,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700313 u32 blink2, u32 ilink1, u32 ilink2, u32 bcon_time,
314 u32 gp1, u32 gp2, u32 gp3, u32 ucode_ver, u32 hw_ver,
315 u32 brd_ver),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800316 TP_ARGS(dev, desc, tsf_low, data1, data2, line,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700317 blink1, blink2, ilink1, ilink2, bcon_time, gp1, gp2,
318 gp3, ucode_ver, hw_ver, brd_ver),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700319 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800320 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700321 __field(u32, desc)
Wey-Yi Guy50650542011-05-04 16:56:52 -0700322 __field(u32, tsf_low)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700323 __field(u32, data1)
324 __field(u32, data2)
325 __field(u32, line)
326 __field(u32, blink1)
327 __field(u32, blink2)
328 __field(u32, ilink1)
329 __field(u32, ilink2)
Wey-Yi Guy50650542011-05-04 16:56:52 -0700330 __field(u32, bcon_time)
331 __field(u32, gp1)
332 __field(u32, gp2)
333 __field(u32, gp3)
334 __field(u32, ucode_ver)
335 __field(u32, hw_ver)
336 __field(u32, brd_ver)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700337 ),
338 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800339 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700340 __entry->desc = desc;
Wey-Yi Guy50650542011-05-04 16:56:52 -0700341 __entry->tsf_low = tsf_low;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700342 __entry->data1 = data1;
343 __entry->data2 = data2;
344 __entry->line = line;
345 __entry->blink1 = blink1;
346 __entry->blink2 = blink2;
347 __entry->ilink1 = ilink1;
348 __entry->ilink2 = ilink2;
Wey-Yi Guy50650542011-05-04 16:56:52 -0700349 __entry->bcon_time = bcon_time;
350 __entry->gp1 = gp1;
351 __entry->gp2 = gp2;
352 __entry->gp3 = gp3;
353 __entry->ucode_ver = ucode_ver;
354 __entry->hw_ver = hw_ver;
355 __entry->brd_ver = brd_ver;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700356 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800357 TP_printk("[%s] #%02d %010u data 0x%08X 0x%08X line %u, "
Wey-Yi Guy50650542011-05-04 16:56:52 -0700358 "blink 0x%05X 0x%05X ilink 0x%05X 0x%05X "
359 "bcon_tm %010u gp 0x%08X 0x%08X 0x%08X uCode 0x%08X "
360 "hw 0x%08X brd 0x%08X",
Johannes Berg6c1011e2012-03-06 13:30:48 -0800361 __get_str(dev), __entry->desc, __entry->tsf_low,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700362 __entry->data1,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700363 __entry->data2, __entry->line, __entry->blink1,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700364 __entry->blink2, __entry->ilink1, __entry->ilink2,
365 __entry->bcon_time, __entry->gp1, __entry->gp2,
366 __entry->gp3, __entry->ucode_ver, __entry->hw_ver,
367 __entry->brd_ver)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700368);
369
370TRACE_EVENT(iwlwifi_dev_ucode_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800371 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
372 TP_ARGS(dev, time, data, ev),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700373 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800374 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700375
376 __field(u32, time)
377 __field(u32, data)
378 __field(u32, ev)
379 ),
380 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800381 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700382 __entry->time = time;
383 __entry->data = data;
384 __entry->ev = ev;
385 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800386 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
387 __get_str(dev), __entry->time, __entry->data, __entry->ev)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700388);
389#endif /* __IWLWIFI_DEVICE_TRACE */
390
391#undef TRACE_INCLUDE_PATH
392#define TRACE_INCLUDE_PATH .
393#undef TRACE_INCLUDE_FILE
394#define TRACE_INCLUDE_FILE iwl-devtrace
395#include <trace/define_trace.h>