blob: 59a5f78402fce35319014267c33514b7e4b7ef65 [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 Berg45eab7c2012-09-05 00:33:53 +020032#include "iwl-trans.h"
Johannes Bergbe1a71a2009-10-02 13:44:02 -070033
Emmanuel Grumbach83ed9012011-08-25 23:11:14 -070034
Johannes Bergbe1a71a2009-10-02 13:44:02 -070035#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
36#undef TRACE_EVENT
37#define TRACE_EVENT(name, proto, ...) \
38static inline void trace_ ## name(proto) {}
Johannes Berg2655e312012-01-31 21:08:37 -080039#undef DECLARE_EVENT_CLASS
40#define DECLARE_EVENT_CLASS(...)
41#undef DEFINE_EVENT
42#define DEFINE_EVENT(evt_class, name, proto, ...) \
43static inline void trace_ ## name(proto) {}
Johannes Bergbe1a71a2009-10-02 13:44:02 -070044#endif
45
Johannes Berg6c1011e2012-03-06 13:30:48 -080046#define DEV_ENTRY __string(dev, dev_name(dev))
47#define DEV_ASSIGN __assign_str(dev, dev_name(dev))
Johannes Bergbe1a71a2009-10-02 13:44:02 -070048
49#undef TRACE_SYSTEM
Johannes Berg0fd95af2009-11-20 12:05:02 -080050#define TRACE_SYSTEM iwlwifi_io
Johannes Bergbe1a71a2009-10-02 13:44:02 -070051
52TRACE_EVENT(iwlwifi_dev_ioread32,
Johannes Berg6c1011e2012-03-06 13:30:48 -080053 TP_PROTO(const struct device *dev, u32 offs, u32 val),
54 TP_ARGS(dev, offs, val),
Johannes Bergbe1a71a2009-10-02 13:44:02 -070055 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080056 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -070057 __field(u32, offs)
58 __field(u32, val)
59 ),
60 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080061 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -070062 __entry->offs = offs;
63 __entry->val = val;
64 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080065 TP_printk("[%s] read io[%#x] = %#x",
66 __get_str(dev), __entry->offs, __entry->val)
Johannes Bergbe1a71a2009-10-02 13:44:02 -070067);
68
Ben Cahill4e031852009-11-20 12:04:52 -080069TRACE_EVENT(iwlwifi_dev_iowrite8,
Johannes Berg6c1011e2012-03-06 13:30:48 -080070 TP_PROTO(const struct device *dev, u32 offs, u8 val),
71 TP_ARGS(dev, offs, val),
Ben Cahill4e031852009-11-20 12:04:52 -080072 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080073 DEV_ENTRY
Ben Cahill4e031852009-11-20 12:04:52 -080074 __field(u32, offs)
75 __field(u8, val)
76 ),
77 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080078 DEV_ASSIGN;
Ben Cahill4e031852009-11-20 12:04:52 -080079 __entry->offs = offs;
80 __entry->val = val;
81 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080082 TP_printk("[%s] write io[%#x] = %#x)",
83 __get_str(dev), __entry->offs, __entry->val)
Ben Cahill4e031852009-11-20 12:04:52 -080084);
85
Johannes Bergbe1a71a2009-10-02 13:44:02 -070086TRACE_EVENT(iwlwifi_dev_iowrite32,
Johannes Berg6c1011e2012-03-06 13:30:48 -080087 TP_PROTO(const struct device *dev, u32 offs, u32 val),
88 TP_ARGS(dev, offs, val),
Johannes Bergbe1a71a2009-10-02 13:44:02 -070089 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -080090 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -070091 __field(u32, offs)
92 __field(u32, val)
93 ),
94 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -080095 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -070096 __entry->offs = offs;
97 __entry->val = val;
98 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -080099 TP_printk("[%s] write io[%#x] = %#x)",
100 __get_str(dev), __entry->offs, __entry->val)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700101);
102
Johannes Bergb80667e2011-12-09 07:26:13 -0800103TRACE_EVENT(iwlwifi_dev_irq,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800104 TP_PROTO(const struct device *dev),
105 TP_ARGS(dev),
Johannes Bergb80667e2011-12-09 07:26:13 -0800106 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800107 DEV_ENTRY
Johannes Bergb80667e2011-12-09 07:26:13 -0800108 ),
109 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800110 DEV_ASSIGN;
Johannes Bergb80667e2011-12-09 07:26:13 -0800111 ),
112 /* TP_printk("") doesn't compile */
113 TP_printk("%d", 0)
114);
115
116TRACE_EVENT(iwlwifi_dev_ict_read,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800117 TP_PROTO(const struct device *dev, u32 index, u32 value),
118 TP_ARGS(dev, index, value),
Johannes Bergb80667e2011-12-09 07:26:13 -0800119 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800120 DEV_ENTRY
Johannes Bergb80667e2011-12-09 07:26:13 -0800121 __field(u32, index)
122 __field(u32, value)
123 ),
124 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800125 DEV_ASSIGN;
Johannes Bergb80667e2011-12-09 07:26:13 -0800126 __entry->index = index;
127 __entry->value = value;
128 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800129 TP_printk("[%s] read ict[%d] = %#.8x",
130 __get_str(dev), __entry->index, __entry->value)
Johannes Bergb80667e2011-12-09 07:26:13 -0800131);
132
Johannes Berg0fd95af2009-11-20 12:05:02 -0800133#undef TRACE_SYSTEM
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800134#define TRACE_SYSTEM iwlwifi_ucode
135
136TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800137 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
138 TP_ARGS(dev, time, data, ev),
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800139 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800140 DEV_ENTRY
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800141
142 __field(u32, time)
143 __field(u32, data)
144 __field(u32, ev)
145 ),
146 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800147 DEV_ASSIGN;
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800148 __entry->time = time;
149 __entry->data = data;
150 __entry->ev = ev;
151 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800152 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
153 __get_str(dev), __entry->time, __entry->data, __entry->ev)
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800154);
155
156TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800157 TP_PROTO(const struct device *dev, u32 wraps, u32 n_entry, u32 p_entry),
158 TP_ARGS(dev, wraps, n_entry, p_entry),
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800159 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800160 DEV_ENTRY
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800161
162 __field(u32, wraps)
163 __field(u32, n_entry)
164 __field(u32, p_entry)
165 ),
166 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800167 DEV_ASSIGN;
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800168 __entry->wraps = wraps;
169 __entry->n_entry = n_entry;
170 __entry->p_entry = p_entry;
171 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800172 TP_printk("[%s] wraps=#%02d n=0x%X p=0x%X",
173 __get_str(dev), __entry->wraps, __entry->n_entry,
Wey-Yi Guya9e1cb62009-12-10 14:37:26 -0800174 __entry->p_entry)
175);
176
177#undef TRACE_SYSTEM
Johannes Berg2655e312012-01-31 21:08:37 -0800178#define TRACE_SYSTEM iwlwifi_msg
179
Johannes Bergeecf21a2012-06-22 15:21:02 +0200180#define MAX_MSG_LEN 110
Johannes Berg2655e312012-01-31 21:08:37 -0800181
182DECLARE_EVENT_CLASS(iwlwifi_msg_event,
183 TP_PROTO(struct va_format *vaf),
184 TP_ARGS(vaf),
185 TP_STRUCT__entry(
186 __dynamic_array(char, msg, MAX_MSG_LEN)
187 ),
188 TP_fast_assign(
189 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
190 MAX_MSG_LEN, vaf->fmt,
191 *vaf->va) >= MAX_MSG_LEN);
192 ),
Johannes Berg94bfa4a2012-06-22 19:39:23 +0200193 TP_printk("%s", __get_str(msg))
Johannes Berg2655e312012-01-31 21:08:37 -0800194);
195
196DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_err,
197 TP_PROTO(struct va_format *vaf),
198 TP_ARGS(vaf)
199);
200
201DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_warn,
202 TP_PROTO(struct va_format *vaf),
203 TP_ARGS(vaf)
204);
205
206DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_info,
207 TP_PROTO(struct va_format *vaf),
208 TP_ARGS(vaf)
209);
210
211DEFINE_EVENT(iwlwifi_msg_event, iwlwifi_crit,
212 TP_PROTO(struct va_format *vaf),
213 TP_ARGS(vaf)
214);
215
216TRACE_EVENT(iwlwifi_dbg,
217 TP_PROTO(u32 level, bool in_interrupt, const char *function,
218 struct va_format *vaf),
219 TP_ARGS(level, in_interrupt, function, vaf),
220 TP_STRUCT__entry(
221 __field(u32, level)
222 __field(u8, in_interrupt)
223 __string(function, function)
224 __dynamic_array(char, msg, MAX_MSG_LEN)
225 ),
226 TP_fast_assign(
227 __entry->level = level;
228 __entry->in_interrupt = in_interrupt;
229 __assign_str(function, function);
230 WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg),
231 MAX_MSG_LEN, vaf->fmt,
232 *vaf->va) >= MAX_MSG_LEN);
233 ),
234 TP_printk("%s", (char *)__get_dynamic_array(msg))
235);
236
237#undef TRACE_SYSTEM
Johannes Berg0fd95af2009-11-20 12:05:02 -0800238#define TRACE_SYSTEM iwlwifi
239
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700240TRACE_EVENT(iwlwifi_dev_hcmd,
Johannes Berg45eab7c2012-09-05 00:33:53 +0200241 TP_PROTO(const struct device *dev,
242 struct iwl_host_cmd *cmd, u16 total_size,
243 const void *hdr, size_t hdr_len),
244 TP_ARGS(dev, cmd, total_size, hdr, hdr_len),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700245 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800246 DEV_ENTRY
Johannes Berg45eab7c2012-09-05 00:33:53 +0200247 __dynamic_array(u8, hcmd, total_size)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700248 __field(u32, flags)
249 ),
250 TP_fast_assign(
Johannes Berg45eab7c2012-09-05 00:33:53 +0200251 int i, offset = hdr_len;
252
Johannes Berg6c1011e2012-03-06 13:30:48 -0800253 DEV_ASSIGN;
Johannes Berg45eab7c2012-09-05 00:33:53 +0200254 __entry->flags = cmd->flags;
255 memcpy(__get_dynamic_array(hcmd), hdr, hdr_len);
256
257 for (i = 0; i < IWL_MAX_CMD_TFDS; i++) {
258 if (!cmd->len[i])
259 continue;
260 if (!(cmd->dataflags[i] & IWL_HCMD_DFL_NOCOPY))
261 continue;
262 memcpy((u8 *)__get_dynamic_array(hcmd) + offset,
263 cmd->data[i], cmd->len[i]);
264 offset += cmd->len[i];
265 }
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700266 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800267 TP_printk("[%s] hcmd %#.2x (%ssync)",
Johannes Berg45eab7c2012-09-05 00:33:53 +0200268 __get_str(dev), ((u8 *)__get_dynamic_array(hcmd))[0],
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700269 __entry->flags & CMD_ASYNC ? "a" : "")
270);
271
272TRACE_EVENT(iwlwifi_dev_rx,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800273 TP_PROTO(const struct device *dev, void *rxbuf, size_t len),
274 TP_ARGS(dev, rxbuf, len),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700275 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800276 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700277 __dynamic_array(u8, rxbuf, len)
278 ),
279 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800280 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700281 memcpy(__get_dynamic_array(rxbuf), rxbuf, len);
282 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800283 TP_printk("[%s] RX cmd %#.2x",
284 __get_str(dev), ((u8 *)__get_dynamic_array(rxbuf))[4])
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700285);
286
287TRACE_EVENT(iwlwifi_dev_tx,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800288 TP_PROTO(const struct device *dev, void *tfd, size_t tfdlen,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700289 void *buf0, size_t buf0_len,
290 void *buf1, size_t buf1_len),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800291 TP_ARGS(dev, tfd, tfdlen, buf0, buf0_len, buf1, buf1_len),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700292 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800293 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700294
295 __field(size_t, framelen)
296 __dynamic_array(u8, tfd, tfdlen)
297
298 /*
299 * Do not insert between or below these items,
300 * we want to keep the frame together (except
301 * for the possible padding).
302 */
303 __dynamic_array(u8, buf0, buf0_len)
304 __dynamic_array(u8, buf1, buf1_len)
305 ),
306 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800307 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700308 __entry->framelen = buf0_len + buf1_len;
309 memcpy(__get_dynamic_array(tfd), tfd, tfdlen);
310 memcpy(__get_dynamic_array(buf0), buf0, buf0_len);
Johannes Berge95b7432010-08-06 16:00:48 +0200311 memcpy(__get_dynamic_array(buf1), buf1, buf1_len);
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700312 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800313 TP_printk("[%s] TX %.2x (%zu bytes)",
314 __get_str(dev), ((u8 *)__get_dynamic_array(buf0))[0],
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700315 __entry->framelen)
316);
317
318TRACE_EVENT(iwlwifi_dev_ucode_error,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800319 TP_PROTO(const struct device *dev, u32 desc, u32 tsf_low,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700320 u32 data1, u32 data2, u32 line, u32 blink1,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700321 u32 blink2, u32 ilink1, u32 ilink2, u32 bcon_time,
322 u32 gp1, u32 gp2, u32 gp3, u32 ucode_ver, u32 hw_ver,
323 u32 brd_ver),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800324 TP_ARGS(dev, desc, tsf_low, data1, data2, line,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700325 blink1, blink2, ilink1, ilink2, bcon_time, gp1, gp2,
326 gp3, ucode_ver, hw_ver, brd_ver),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700327 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800328 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700329 __field(u32, desc)
Wey-Yi Guy50650542011-05-04 16:56:52 -0700330 __field(u32, tsf_low)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700331 __field(u32, data1)
332 __field(u32, data2)
333 __field(u32, line)
334 __field(u32, blink1)
335 __field(u32, blink2)
336 __field(u32, ilink1)
337 __field(u32, ilink2)
Wey-Yi Guy50650542011-05-04 16:56:52 -0700338 __field(u32, bcon_time)
339 __field(u32, gp1)
340 __field(u32, gp2)
341 __field(u32, gp3)
342 __field(u32, ucode_ver)
343 __field(u32, hw_ver)
344 __field(u32, brd_ver)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700345 ),
346 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800347 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700348 __entry->desc = desc;
Wey-Yi Guy50650542011-05-04 16:56:52 -0700349 __entry->tsf_low = tsf_low;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700350 __entry->data1 = data1;
351 __entry->data2 = data2;
352 __entry->line = line;
353 __entry->blink1 = blink1;
354 __entry->blink2 = blink2;
355 __entry->ilink1 = ilink1;
356 __entry->ilink2 = ilink2;
Wey-Yi Guy50650542011-05-04 16:56:52 -0700357 __entry->bcon_time = bcon_time;
358 __entry->gp1 = gp1;
359 __entry->gp2 = gp2;
360 __entry->gp3 = gp3;
361 __entry->ucode_ver = ucode_ver;
362 __entry->hw_ver = hw_ver;
363 __entry->brd_ver = brd_ver;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700364 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800365 TP_printk("[%s] #%02d %010u data 0x%08X 0x%08X line %u, "
Wey-Yi Guy50650542011-05-04 16:56:52 -0700366 "blink 0x%05X 0x%05X ilink 0x%05X 0x%05X "
367 "bcon_tm %010u gp 0x%08X 0x%08X 0x%08X uCode 0x%08X "
368 "hw 0x%08X brd 0x%08X",
Johannes Berg6c1011e2012-03-06 13:30:48 -0800369 __get_str(dev), __entry->desc, __entry->tsf_low,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700370 __entry->data1,
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700371 __entry->data2, __entry->line, __entry->blink1,
Wey-Yi Guy50650542011-05-04 16:56:52 -0700372 __entry->blink2, __entry->ilink1, __entry->ilink2,
373 __entry->bcon_time, __entry->gp1, __entry->gp2,
374 __entry->gp3, __entry->ucode_ver, __entry->hw_ver,
375 __entry->brd_ver)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700376);
377
378TRACE_EVENT(iwlwifi_dev_ucode_event,
Johannes Berg6c1011e2012-03-06 13:30:48 -0800379 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
380 TP_ARGS(dev, time, data, ev),
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700381 TP_STRUCT__entry(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800382 DEV_ENTRY
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700383
384 __field(u32, time)
385 __field(u32, data)
386 __field(u32, ev)
387 ),
388 TP_fast_assign(
Johannes Berg6c1011e2012-03-06 13:30:48 -0800389 DEV_ASSIGN;
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700390 __entry->time = time;
391 __entry->data = data;
392 __entry->ev = ev;
393 ),
Johannes Berg6c1011e2012-03-06 13:30:48 -0800394 TP_printk("[%s] EVT_LOGT:%010u:0x%08x:%04u",
395 __get_str(dev), __entry->time, __entry->data, __entry->ev)
Johannes Bergbe1a71a2009-10-02 13:44:02 -0700396);
397#endif /* __IWLWIFI_DEVICE_TRACE */
398
399#undef TRACE_INCLUDE_PATH
400#define TRACE_INCLUDE_PATH .
401#undef TRACE_INCLUDE_FILE
402#define TRACE_INCLUDE_FILE iwl-devtrace
403#include <trace/define_trace.h>