1 #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
2 #define __MAC80211_DRIVER_TRACE
4 #include <linux/tracepoint.h>
5 #include <net/mac80211.h>
6 #include "ieee80211_i.h"
8 #if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__)
10 #define TRACE_EVENT(name, proto, ...) \
11 static inline void trace_ ## name(proto) {}
12 #undef DECLARE_EVENT_CLASS
13 #define DECLARE_EVENT_CLASS(...)
15 #define DEFINE_EVENT(evt_class, name, proto, ...) \
16 static inline void trace_ ## name(proto) {}
20 #define TRACE_SYSTEM mac80211
23 #define LOCAL_ENTRY __array(char, wiphy_name, 32)
24 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
25 #define LOCAL_PR_FMT "%s"
26 #define LOCAL_PR_ARG __entry->wiphy_name
28 #define STA_ENTRY __array(char, sta_addr, ETH_ALEN)
29 #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN))
30 #define STA_PR_FMT " sta:%pM"
31 #define STA_PR_ARG __entry->sta_addr
33 #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \
35 __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
36 #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \
37 __entry->p2p = sdata->vif.p2p; \
38 __assign_str(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
39 #define VIF_PR_FMT " vif:%s(%d%s)"
40 #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : ""
43 * Tracing for driver callbacks.
46 DECLARE_EVENT_CLASS(local_only_evt
,
47 TP_PROTO(struct ieee80211_local
*local
),
55 TP_printk(LOCAL_PR_FMT
, LOCAL_PR_ARG
)
58 DEFINE_EVENT(local_only_evt
, drv_return_void
,
59 TP_PROTO(struct ieee80211_local
*local
),
63 TRACE_EVENT(drv_return_int
,
64 TP_PROTO(struct ieee80211_local
*local
, int ret
),
74 TP_printk(LOCAL_PR_FMT
" - %d", LOCAL_PR_ARG
, __entry
->ret
)
77 TRACE_EVENT(drv_return_u64
,
78 TP_PROTO(struct ieee80211_local
*local
, u64 ret
),
88 TP_printk(LOCAL_PR_FMT
" - %llu", LOCAL_PR_ARG
, __entry
->ret
)
91 DEFINE_EVENT(local_only_evt
, drv_start
,
92 TP_PROTO(struct ieee80211_local
*local
),
96 DEFINE_EVENT(local_only_evt
, drv_stop
,
97 TP_PROTO(struct ieee80211_local
*local
),
101 TRACE_EVENT(drv_add_interface
,
102 TP_PROTO(struct ieee80211_local
*local
,
103 struct ieee80211_sub_if_data
*sdata
),
105 TP_ARGS(local
, sdata
),
110 __array(char, addr
, 6)
116 memcpy(__entry
->addr
, sdata
->vif
.addr
, 6);
120 LOCAL_PR_FMT VIF_PR_FMT
" addr:%pM",
121 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->addr
125 TRACE_EVENT(drv_change_interface
,
126 TP_PROTO(struct ieee80211_local
*local
,
127 struct ieee80211_sub_if_data
*sdata
,
128 enum nl80211_iftype type
, bool p2p
),
130 TP_ARGS(local
, sdata
, type
, p2p
),
135 __field(u32
, new_type
)
136 __field(bool, new_p2p
)
142 __entry
->new_type
= type
;
143 __entry
->new_p2p
= p2p
;
147 LOCAL_PR_FMT VIF_PR_FMT
" new type:%d%s",
148 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->new_type
,
149 __entry
->new_p2p
? "/p2p" : ""
153 TRACE_EVENT(drv_remove_interface
,
154 TP_PROTO(struct ieee80211_local
*local
, struct ieee80211_sub_if_data
*sdata
),
156 TP_ARGS(local
, sdata
),
161 __array(char, addr
, 6)
167 memcpy(__entry
->addr
, sdata
->vif
.addr
, 6);
171 LOCAL_PR_FMT VIF_PR_FMT
" addr:%pM",
172 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->addr
176 TRACE_EVENT(drv_config
,
177 TP_PROTO(struct ieee80211_local
*local
,
180 TP_ARGS(local
, changed
),
184 __field(u32
, changed
)
186 __field(int, power_level
)
187 __field(int, dynamic_ps_timeout
)
188 __field(int, max_sleep_period
)
189 __field(u16
, listen_interval
)
190 __field(u8
, long_frame_max_tx_count
)
191 __field(u8
, short_frame_max_tx_count
)
192 __field(int, center_freq
)
193 __field(int, channel_type
)
199 __entry
->changed
= changed
;
200 __entry
->flags
= local
->hw
.conf
.flags
;
201 __entry
->power_level
= local
->hw
.conf
.power_level
;
202 __entry
->dynamic_ps_timeout
= local
->hw
.conf
.dynamic_ps_timeout
;
203 __entry
->max_sleep_period
= local
->hw
.conf
.max_sleep_period
;
204 __entry
->listen_interval
= local
->hw
.conf
.listen_interval
;
205 __entry
->long_frame_max_tx_count
= local
->hw
.conf
.long_frame_max_tx_count
;
206 __entry
->short_frame_max_tx_count
= local
->hw
.conf
.short_frame_max_tx_count
;
207 __entry
->center_freq
= local
->hw
.conf
.channel
->center_freq
;
208 __entry
->channel_type
= local
->hw
.conf
.channel_type
;
209 __entry
->smps
= local
->hw
.conf
.smps_mode
;
213 LOCAL_PR_FMT
" ch:%#x freq:%d",
214 LOCAL_PR_ARG
, __entry
->changed
, __entry
->center_freq
218 TRACE_EVENT(drv_bss_info_changed
,
219 TP_PROTO(struct ieee80211_local
*local
,
220 struct ieee80211_sub_if_data
*sdata
,
221 struct ieee80211_bss_conf
*info
,
224 TP_ARGS(local
, sdata
, info
, changed
),
232 __field(bool, shortpre
)
233 __field(bool, shortslot
)
236 __field(u16
, assoc_cap
)
237 __field(u64
, timestamp
)
238 __field(u32
, basic_rates
)
239 __field(u32
, changed
)
240 __field(bool, enable_beacon
)
241 __field(u16
, ht_operation_mode
)
247 __entry
->changed
= changed
;
248 __entry
->aid
= info
->aid
;
249 __entry
->assoc
= info
->assoc
;
250 __entry
->shortpre
= info
->use_short_preamble
;
251 __entry
->cts
= info
->use_cts_prot
;
252 __entry
->shortslot
= info
->use_short_slot
;
253 __entry
->dtimper
= info
->dtim_period
;
254 __entry
->bcnint
= info
->beacon_int
;
255 __entry
->assoc_cap
= info
->assoc_capability
;
256 __entry
->timestamp
= info
->timestamp
;
257 __entry
->basic_rates
= info
->basic_rates
;
258 __entry
->enable_beacon
= info
->enable_beacon
;
259 __entry
->ht_operation_mode
= info
->ht_operation_mode
;
263 LOCAL_PR_FMT VIF_PR_FMT
" changed:%#x",
264 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->changed
268 TRACE_EVENT(drv_prepare_multicast
,
269 TP_PROTO(struct ieee80211_local
*local
, int mc_count
),
271 TP_ARGS(local
, mc_count
),
275 __field(int, mc_count
)
280 __entry
->mc_count
= mc_count
;
284 LOCAL_PR_FMT
" prepare mc (%d)",
285 LOCAL_PR_ARG
, __entry
->mc_count
289 TRACE_EVENT(drv_configure_filter
,
290 TP_PROTO(struct ieee80211_local
*local
,
291 unsigned int changed_flags
,
292 unsigned int *total_flags
,
295 TP_ARGS(local
, changed_flags
, total_flags
, multicast
),
299 __field(unsigned int, changed
)
300 __field(unsigned int, total
)
301 __field(u64
, multicast
)
306 __entry
->changed
= changed_flags
;
307 __entry
->total
= *total_flags
;
308 __entry
->multicast
= multicast
;
312 LOCAL_PR_FMT
" changed:%#x total:%#x",
313 LOCAL_PR_ARG
, __entry
->changed
, __entry
->total
317 TRACE_EVENT(drv_set_tim
,
318 TP_PROTO(struct ieee80211_local
*local
,
319 struct ieee80211_sta
*sta
, bool set
),
321 TP_ARGS(local
, sta
, set
),
336 LOCAL_PR_FMT STA_PR_FMT
" set:%d",
337 LOCAL_PR_ARG
, STA_PR_FMT
, __entry
->set
341 TRACE_EVENT(drv_set_key
,
342 TP_PROTO(struct ieee80211_local
*local
,
343 enum set_key_cmd cmd
, struct ieee80211_sub_if_data
*sdata
,
344 struct ieee80211_sta
*sta
,
345 struct ieee80211_key_conf
*key
),
347 TP_ARGS(local
, cmd
, sdata
, sta
, key
),
354 __field(u8
, hw_key_idx
)
363 __entry
->cipher
= key
->cipher
;
364 __entry
->flags
= key
->flags
;
365 __entry
->keyidx
= key
->keyidx
;
366 __entry
->hw_key_idx
= key
->hw_key_idx
;
370 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
371 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
375 TRACE_EVENT(drv_update_tkip_key
,
376 TP_PROTO(struct ieee80211_local
*local
,
377 struct ieee80211_sub_if_data
*sdata
,
378 struct ieee80211_key_conf
*conf
,
379 struct ieee80211_sta
*sta
, u32 iv32
),
381 TP_ARGS(local
, sdata
, conf
, sta
, iv32
),
394 __entry
->iv32
= iv32
;
398 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" iv32:%#x",
399 LOCAL_PR_ARG
,VIF_PR_ARG
,STA_PR_ARG
, __entry
->iv32
403 TRACE_EVENT(drv_hw_scan
,
404 TP_PROTO(struct ieee80211_local
*local
,
405 struct ieee80211_sub_if_data
*sdata
,
406 struct cfg80211_scan_request
*req
),
408 TP_ARGS(local
, sdata
, req
),
421 LOCAL_PR_FMT VIF_PR_FMT
,
422 LOCAL_PR_ARG
,VIF_PR_ARG
426 DEFINE_EVENT(local_only_evt
, drv_sw_scan_start
,
427 TP_PROTO(struct ieee80211_local
*local
),
431 DEFINE_EVENT(local_only_evt
, drv_sw_scan_complete
,
432 TP_PROTO(struct ieee80211_local
*local
),
436 TRACE_EVENT(drv_get_stats
,
437 TP_PROTO(struct ieee80211_local
*local
,
438 struct ieee80211_low_level_stats
*stats
,
441 TP_ARGS(local
, stats
, ret
),
446 __field(unsigned int, ackfail
)
447 __field(unsigned int, rtsfail
)
448 __field(unsigned int, fcserr
)
449 __field(unsigned int, rtssucc
)
455 __entry
->ackfail
= stats
->dot11ACKFailureCount
;
456 __entry
->rtsfail
= stats
->dot11RTSFailureCount
;
457 __entry
->fcserr
= stats
->dot11FCSErrorCount
;
458 __entry
->rtssucc
= stats
->dot11RTSSuccessCount
;
462 LOCAL_PR_FMT
" ret:%d",
463 LOCAL_PR_ARG
, __entry
->ret
467 TRACE_EVENT(drv_get_tkip_seq
,
468 TP_PROTO(struct ieee80211_local
*local
,
469 u8 hw_key_idx
, u32
*iv32
, u16
*iv16
),
471 TP_ARGS(local
, hw_key_idx
, iv32
, iv16
),
475 __field(u8
, hw_key_idx
)
482 __entry
->hw_key_idx
= hw_key_idx
;
483 __entry
->iv32
= *iv32
;
484 __entry
->iv16
= *iv16
;
488 LOCAL_PR_FMT
, LOCAL_PR_ARG
492 TRACE_EVENT(drv_set_frag_threshold
,
493 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
495 TP_ARGS(local
, value
),
504 __entry
->value
= value
;
508 LOCAL_PR_FMT
" value:%d",
509 LOCAL_PR_ARG
, __entry
->value
513 TRACE_EVENT(drv_set_rts_threshold
,
514 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
516 TP_ARGS(local
, value
),
525 __entry
->value
= value
;
529 LOCAL_PR_FMT
" value:%d",
530 LOCAL_PR_ARG
, __entry
->value
534 TRACE_EVENT(drv_set_coverage_class
,
535 TP_PROTO(struct ieee80211_local
*local
, u8 value
),
537 TP_ARGS(local
, value
),
546 __entry
->value
= value
;
550 LOCAL_PR_FMT
" value:%d",
551 LOCAL_PR_ARG
, __entry
->value
555 TRACE_EVENT(drv_sta_notify
,
556 TP_PROTO(struct ieee80211_local
*local
,
557 struct ieee80211_sub_if_data
*sdata
,
558 enum sta_notify_cmd cmd
,
559 struct ieee80211_sta
*sta
),
561 TP_ARGS(local
, sdata
, cmd
, sta
),
578 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" cmd:%d",
579 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->cmd
583 TRACE_EVENT(drv_sta_add
,
584 TP_PROTO(struct ieee80211_local
*local
,
585 struct ieee80211_sub_if_data
*sdata
,
586 struct ieee80211_sta
*sta
),
588 TP_ARGS(local
, sdata
, sta
),
603 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
604 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
608 TRACE_EVENT(drv_sta_remove
,
609 TP_PROTO(struct ieee80211_local
*local
,
610 struct ieee80211_sub_if_data
*sdata
,
611 struct ieee80211_sta
*sta
),
613 TP_ARGS(local
, sdata
, sta
),
628 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
629 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
633 TRACE_EVENT(drv_conf_tx
,
634 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
635 const struct ieee80211_tx_queue_params
*params
),
637 TP_ARGS(local
, queue
, params
),
650 __entry
->queue
= queue
;
651 __entry
->txop
= params
->txop
;
652 __entry
->cw_max
= params
->cw_max
;
653 __entry
->cw_min
= params
->cw_min
;
654 __entry
->aifs
= params
->aifs
;
658 LOCAL_PR_FMT
" queue:%d",
659 LOCAL_PR_ARG
, __entry
->queue
663 DEFINE_EVENT(local_only_evt
, drv_get_tsf
,
664 TP_PROTO(struct ieee80211_local
*local
),
668 TRACE_EVENT(drv_set_tsf
,
669 TP_PROTO(struct ieee80211_local
*local
, u64 tsf
),
684 LOCAL_PR_FMT
" tsf:%llu",
685 LOCAL_PR_ARG
, (unsigned long long)__entry
->tsf
689 DEFINE_EVENT(local_only_evt
, drv_reset_tsf
,
690 TP_PROTO(struct ieee80211_local
*local
),
694 DEFINE_EVENT(local_only_evt
, drv_tx_last_beacon
,
695 TP_PROTO(struct ieee80211_local
*local
),
699 TRACE_EVENT(drv_ampdu_action
,
700 TP_PROTO(struct ieee80211_local
*local
,
701 struct ieee80211_sub_if_data
*sdata
,
702 enum ieee80211_ampdu_mlme_action action
,
703 struct ieee80211_sta
*sta
, u16 tid
,
704 u16
*ssn
, u8 buf_size
),
706 TP_ARGS(local
, sdata
, action
, sta
, tid
, ssn
, buf_size
),
714 __field(u8
, buf_size
)
722 __entry
->action
= action
;
724 __entry
->ssn
= ssn
? *ssn
: 0;
725 __entry
->buf_size
= buf_size
;
729 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" action:%d tid:%d buf:%d",
730 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->action
,
731 __entry
->tid
, __entry
->buf_size
735 TRACE_EVENT(drv_get_survey
,
736 TP_PROTO(struct ieee80211_local
*local
, int idx
,
737 struct survey_info
*survey
),
739 TP_ARGS(local
, idx
, survey
),
752 LOCAL_PR_FMT
" idx:%d",
753 LOCAL_PR_ARG
, __entry
->idx
757 TRACE_EVENT(drv_flush
,
758 TP_PROTO(struct ieee80211_local
*local
, bool drop
),
760 TP_ARGS(local
, drop
),
769 __entry
->drop
= drop
;
773 LOCAL_PR_FMT
" drop:%d",
774 LOCAL_PR_ARG
, __entry
->drop
778 TRACE_EVENT(drv_channel_switch
,
779 TP_PROTO(struct ieee80211_local
*local
,
780 struct ieee80211_channel_switch
*ch_switch
),
782 TP_ARGS(local
, ch_switch
),
786 __field(u64
, timestamp
)
787 __field(bool, block_tx
)
794 __entry
->timestamp
= ch_switch
->timestamp
;
795 __entry
->block_tx
= ch_switch
->block_tx
;
796 __entry
->freq
= ch_switch
->channel
->center_freq
;
797 __entry
->count
= ch_switch
->count
;
801 LOCAL_PR_FMT
" new freq:%u count:%d",
802 LOCAL_PR_ARG
, __entry
->freq
, __entry
->count
806 TRACE_EVENT(drv_set_antenna
,
807 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
809 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
820 __entry
->tx_ant
= tx_ant
;
821 __entry
->rx_ant
= rx_ant
;
826 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
827 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
831 TRACE_EVENT(drv_get_antenna
,
832 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
834 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
845 __entry
->tx_ant
= tx_ant
;
846 __entry
->rx_ant
= rx_ant
;
851 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
852 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
856 TRACE_EVENT(drv_remain_on_channel
,
857 TP_PROTO(struct ieee80211_local
*local
, struct ieee80211_channel
*chan
,
858 enum nl80211_channel_type chantype
, unsigned int duration
),
860 TP_ARGS(local
, chan
, chantype
, duration
),
864 __field(int, center_freq
)
865 __field(int, channel_type
)
866 __field(unsigned int, duration
)
871 __entry
->center_freq
= chan
->center_freq
;
872 __entry
->channel_type
= chantype
;
873 __entry
->duration
= duration
;
877 LOCAL_PR_FMT
" freq:%dMHz duration:%dms",
878 LOCAL_PR_ARG
, __entry
->center_freq
, __entry
->duration
882 DEFINE_EVENT(local_only_evt
, drv_cancel_remain_on_channel
,
883 TP_PROTO(struct ieee80211_local
*local
),
887 TRACE_EVENT(drv_offchannel_tx
,
888 TP_PROTO(struct ieee80211_local
*local
, struct sk_buff
*skb
,
889 struct ieee80211_channel
*chan
,
890 enum nl80211_channel_type channel_type
,
893 TP_ARGS(local
, skb
, chan
, channel_type
, wait
),
897 __field(int, center_freq
)
898 __field(int, channel_type
)
899 __field(unsigned int, wait
)
904 __entry
->center_freq
= chan
->center_freq
;
905 __entry
->channel_type
= channel_type
;
906 __entry
->wait
= wait
;
910 LOCAL_PR_FMT
" freq:%dMHz, wait:%dms",
911 LOCAL_PR_ARG
, __entry
->center_freq
, __entry
->wait
915 TRACE_EVENT(drv_set_ringparam
,
916 TP_PROTO(struct ieee80211_local
*local
, u32 tx
, u32 rx
),
918 TP_ARGS(local
, tx
, rx
),
933 LOCAL_PR_FMT
" tx:%d rx %d",
934 LOCAL_PR_ARG
, __entry
->tx
, __entry
->rx
938 TRACE_EVENT(drv_get_ringparam
,
939 TP_PROTO(struct ieee80211_local
*local
, u32
*tx
, u32
*tx_max
,
940 u32
*rx
, u32
*rx_max
),
942 TP_ARGS(local
, tx
, tx_max
, rx
, rx_max
),
955 __entry
->tx_max
= *tx_max
;
957 __entry
->rx_max
= *rx_max
;
961 LOCAL_PR_FMT
" tx:%d tx_max %d rx %d rx_max %d",
963 __entry
->tx
, __entry
->tx_max
, __entry
->rx
, __entry
->rx_max
967 DEFINE_EVENT(local_only_evt
, drv_offchannel_tx_cancel_wait
,
968 TP_PROTO(struct ieee80211_local
*local
),
973 * Tracing for API calls that drivers call.
976 TRACE_EVENT(api_start_tx_ba_session
,
977 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
992 STA_PR_FMT
" tid:%d",
993 STA_PR_ARG
, __entry
->tid
997 TRACE_EVENT(api_start_tx_ba_cb
,
998 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
1000 TP_ARGS(sdata
, ra
, tid
),
1004 __array(u8
, ra
, ETH_ALEN
)
1010 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
1015 VIF_PR_FMT
" ra:%pM tid:%d",
1016 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
1020 TRACE_EVENT(api_stop_tx_ba_session
,
1021 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
1036 STA_PR_FMT
" tid:%d",
1037 STA_PR_ARG
, __entry
->tid
1041 TRACE_EVENT(api_stop_tx_ba_cb
,
1042 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
1044 TP_ARGS(sdata
, ra
, tid
),
1048 __array(u8
, ra
, ETH_ALEN
)
1054 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
1059 VIF_PR_FMT
" ra:%pM tid:%d",
1060 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
1064 DEFINE_EVENT(local_only_evt
, api_restart_hw
,
1065 TP_PROTO(struct ieee80211_local
*local
),
1069 TRACE_EVENT(api_beacon_loss
,
1070 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
1088 TRACE_EVENT(api_connection_loss
,
1089 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
1107 TRACE_EVENT(api_cqm_rssi_notify
,
1108 TP_PROTO(struct ieee80211_sub_if_data
*sdata
,
1109 enum nl80211_cqm_rssi_threshold_event rssi_event
),
1111 TP_ARGS(sdata
, rssi_event
),
1115 __field(u32
, rssi_event
)
1120 __entry
->rssi_event
= rssi_event
;
1124 VIF_PR_FMT
" event:%d",
1125 VIF_PR_ARG
, __entry
->rssi_event
1129 TRACE_EVENT(api_scan_completed
,
1130 TP_PROTO(struct ieee80211_local
*local
, bool aborted
),
1132 TP_ARGS(local
, aborted
),
1136 __field(bool, aborted
)
1141 __entry
->aborted
= aborted
;
1145 LOCAL_PR_FMT
" aborted:%d",
1146 LOCAL_PR_ARG
, __entry
->aborted
1150 TRACE_EVENT(api_sta_block_awake
,
1151 TP_PROTO(struct ieee80211_local
*local
,
1152 struct ieee80211_sta
*sta
, bool block
),
1154 TP_ARGS(local
, sta
, block
),
1159 __field(bool, block
)
1165 __entry
->block
= block
;
1169 LOCAL_PR_FMT STA_PR_FMT
" block:%d",
1170 LOCAL_PR_ARG
, STA_PR_FMT
, __entry
->block
1174 TRACE_EVENT(api_chswitch_done
,
1175 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, bool success
),
1177 TP_ARGS(sdata
, success
),
1181 __field(bool, success
)
1186 __entry
->success
= success
;
1190 VIF_PR_FMT
" success=%d",
1191 VIF_PR_ARG
, __entry
->success
1195 DEFINE_EVENT(local_only_evt
, api_ready_on_channel
,
1196 TP_PROTO(struct ieee80211_local
*local
),
1200 DEFINE_EVENT(local_only_evt
, api_remain_on_channel_expired
,
1201 TP_PROTO(struct ieee80211_local
*local
),
1206 * Tracing for internal functions
1207 * (which may also be called in response to driver calls)
1210 TRACE_EVENT(wake_queue
,
1211 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
1212 enum queue_stop_reason reason
),
1214 TP_ARGS(local
, queue
, reason
),
1219 __field(u32
, reason
)
1224 __entry
->queue
= queue
;
1225 __entry
->reason
= reason
;
1229 LOCAL_PR_FMT
" queue:%d, reason:%d",
1230 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
1234 TRACE_EVENT(stop_queue
,
1235 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
1236 enum queue_stop_reason reason
),
1238 TP_ARGS(local
, queue
, reason
),
1243 __field(u32
, reason
)
1248 __entry
->queue
= queue
;
1249 __entry
->reason
= reason
;
1253 LOCAL_PR_FMT
" queue:%d, reason:%d",
1254 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
1257 #endif /* !__MAC80211_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */
1259 #undef TRACE_INCLUDE_PATH
1260 #define TRACE_INCLUDE_PATH .
1261 #undef TRACE_INCLUDE_FILE
1262 #define TRACE_INCLUDE_FILE driver-trace
1263 #include <trace/define_trace.h>