27 #if !defined(__IWLWIFI_DEVICE_TRACE) || defined(TRACE_HEADER_MULTI_READ)
28 #define __IWLWIFI_DEVICE_TRACE
31 #include <linux/device.h>
35 #if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
37 #define TRACE_EVENT(name, proto, ...) \
38 static inline void trace_ ## name(proto) {}
39 #undef DECLARE_EVENT_CLASS
40 #define DECLARE_EVENT_CLASS(...)
42 #define DEFINE_EVENT(evt_class, name, proto, ...) \
43 static inline void trace_ ## name(proto) {}
46 #define DEV_ENTRY __string(dev, dev_name(dev))
47 #define DEV_ASSIGN __assign_str(dev, dev_name(dev))
50 #define TRACE_SYSTEM iwlwifi_io
134 #define TRACE_SYSTEM iwlwifi_ucode
152 TP_printk(
"[%s] EVT_LOGT:%010u:0x%08x:%04u",
158 TP_ARGS(dev, wraps, n_entry, p_entry),
172 TP_printk(
"[%s] wraps=#%02d n=0x%X p=0x%X",
178 #define TRACE_SYSTEM iwlwifi_msg
180 #define MAX_MSG_LEN 110
219 TP_ARGS(level, in_interrupt,
function, vaf),
228 __entry->in_interrupt = in_interrupt;
238 #define TRACE_SYSTEM iwlwifi
244 TP_ARGS(dev, cmd, total_size, hdr, hdr_len),
289 void *buf0,
size_t buf0_len,
290 void *buf1,
size_t buf1_len),
291 TP_ARGS(dev, tfd, tfdlen, buf0, buf0_len, buf1, buf1_len),
308 __entry->framelen = buf0_len + buf1_len;
324 TP_ARGS(dev, desc, tsf_low, data1, data2, line,
325 blink1, blink2, ilink1, ilink2, bcon_time, gp1, gp2,
326 gp3, ucode_ver, hw_ver, brd_ver),
357 __entry->bcon_time = bcon_time;
361 __entry->ucode_ver = ucode_ver;
365 TP_printk(
"[%s] #%02d %010u data 0x%08X 0x%08X line %u, "
366 "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",
394 TP_printk(
"[%s] EVT_LOGT:%010u:0x%08x:%04u",
399 #undef TRACE_INCLUDE_PATH
400 #define TRACE_INCLUDE_PATH .
401 #undef TRACE_INCLUDE_FILE
402 #define TRACE_INCLUDE_FILE iwl-devtrace