1 #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
2 #define __MAC80211_DRIVER_TRACE
9 #define TRACE_SYSTEM mac80211
12 #define LOCAL_ENTRY __array(char, wiphy_name, 32)
13 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
14 #define LOCAL_PR_FMT "%s"
15 #define LOCAL_PR_ARG __entry->wiphy_name
17 #define STA_ENTRY __array(char, sta_addr, ETH_ALEN)
18 #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN))
19 #define STA_PR_FMT " sta:%pM"
20 #define STA_PR_ARG __entry->sta_addr
22 #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \
24 __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
25 #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \
26 __entry->p2p = sdata->vif.p2p; \
27 __assign_str(vif_name, sdata->dev ? sdata->dev->name : sdata->name)
28 #define VIF_PR_FMT " vif:%s(%d%s)"
29 #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : ""
219 TP_ARGS(local, sdata, type, p2p),
242 DEFINE_EVENT(local_sdata_addr_evt, drv_remove_interface,
259 __field(
int, dynamic_ps_timeout)
273 __entry->power_level = local->
hw.conf.power_level;
274 __entry->dynamic_ps_timeout = local->
hw.conf.dynamic_ps_timeout;
275 __entry->max_sleep_period = local->
hw.conf.max_sleep_period;
276 __entry->listen_interval = local->
hw.conf.listen_interval;
277 __entry->long_frame_max_tx_count =
278 local->
hw.conf.long_frame_max_tx_count;
279 __entry->short_frame_max_tx_count =
280 local->
hw.conf.short_frame_max_tx_count;
281 __entry->center_freq = local->
hw.conf.channel ?
282 local->
hw.conf.channel->center_freq : 0;
283 __entry->channel_type = local->
hw.conf.channel_type;
284 __entry->smps = local->
hw.conf.smps_mode;
299 TP_ARGS(local, sdata, info, changed),
368 unsigned int changed_flags,
369 unsigned int *total_flags,
372 TP_ARGS(local, changed_flags, total_flags, multicast),
383 __entry->changed = changed_flags;
385 __entry->multicast = multicast;
424 TP_ARGS(local, cmd, sdata, sta, key),
458 TP_ARGS(local, sdata, conf, sta, iv32),
547 u8 hw_key_idx,
u32 *iv32,
u16 *iv16),
549 TP_ARGS(local, hw_key_idx, iv32, iv16),
560 __entry->hw_key_idx = hw_key_idx;
607 TP_ARGS(local, sdata, cmd, sta),
636 TP_ARGS(local, sdata, sta, old_state, new_state),
650 __entry->old_state = old_state;
667 TP_ARGS(local, sdata, sta, changed),
744 TP_ARGS(local, sdata, ac, params),
823 TP_ARGS(local, sdata, action, sta, tid, ssn, buf_size),
926 TP_ARGS(local, tx_ant, rx_ant, ret),
951 TP_ARGS(local, tx_ant, rx_ant, ret),
977 TP_ARGS(local, chan, chantype, duration),
983 __field(
unsigned int, duration)
989 __entry->channel_type = chantype;
999 DEFINE_EVENT(local_only_evt, drv_cancel_remain_on_channel,
1010 TP_ARGS(local, skb, chan, channel_type, wait),
1059 TP_ARGS(local, tx, tx_max, rx, rx_max),
1089 DEFINE_EVENT(local_only_evt, drv_offchannel_tx_cancel_wait,
1162 __entry->rssi_event = rssi_event;
1174 u16 tids,
int num_frames,
1178 TP_ARGS(local, sta, tids, num_frames, reason, more_data),
1193 __entry->num_frames = num_frames;
1195 __entry->more_data = more_data;
1200 " TIDs:0x%.4x frames:%d reason:%d more:%d",
1209 u16 tids,
int num_frames,
1213 TP_ARGS(local, sta, tids, num_frames, reason, more_data)
1219 u16 tids,
int num_frames,
1223 TP_ARGS(local, sta, tids, num_frames, reason, more_data)
1230 TP_ARGS(local, sta, rssi, ret),
1302 VIF_PR_FMT
" ra:%pM tid:%d",
1346 VIF_PR_FMT
" ra:%pM tid:%d",
1407 __entry->rssi_event = rssi_event;
1411 VIF_PR_FMT
" event:%d",
1513 VIF_PR_FMT
" success=%d",
1523 DEFINE_EVENT(local_only_evt, api_remain_on_channel_expired,
1532 TP_ARGS(sdata, bssid, replay_ctr),
1551 int rssi_min_thold,
int rssi_max_thold),
1553 TP_ARGS(sdata, rssi_min_thold, rssi_max_thold),
1563 __entry->rssi_min_thold = rssi_min_thold;
1564 __entry->rssi_max_thold = rssi_max_thold;
1568 VIF_PR_FMT
" rssi_min_thold =%d, rssi_max_thold = %d",
1604 TP_ARGS(local, queue, reason),
1628 TP_ARGS(local, queue, reason),
1648 #ifdef CONFIG_MAC80211_MESSAGE_TRACING
1650 #define TRACE_SYSTEM mac80211_msg
1652 #define MAX_MSG_LEN 100
1688 #undef TRACE_INCLUDE_PATH
1689 #define TRACE_INCLUDE_PATH .
1690 #undef TRACE_INCLUDE_FILE
1691 #define TRACE_INCLUDE_FILE trace