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) {}
15 #define TRACE_SYSTEM mac80211
18 #define LOCAL_ENTRY __array(char, wiphy_name, 32)
19 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
20 #define LOCAL_PR_FMT "%s"
21 #define LOCAL_PR_ARG __entry->wiphy_name
23 #define STA_ENTRY __array(char, sta_addr, ETH_ALEN)
24 #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN))
25 #define STA_PR_FMT " sta:%pM"
26 #define STA_PR_ARG __entry->sta_addr
28 #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \
30 __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
31 #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \
32 __entry->p2p = sdata->vif.p2p; \
33 __assign_str(vif_name, sdata->dev ? sdata->dev->name : "<nodev>")
34 #define VIF_PR_FMT " vif:%s(%d%s)"
35 #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : ""
38 * Tracing for driver callbacks.
41 TRACE_EVENT(drv_return_void
,
42 TP_PROTO(struct ieee80211_local
*local
),
50 TP_printk(LOCAL_PR_FMT
, LOCAL_PR_ARG
)
53 TRACE_EVENT(drv_return_int
,
54 TP_PROTO(struct ieee80211_local
*local
, int ret
),
64 TP_printk(LOCAL_PR_FMT
" - %d", LOCAL_PR_ARG
, __entry
->ret
)
67 TRACE_EVENT(drv_return_u64
,
68 TP_PROTO(struct ieee80211_local
*local
, u64 ret
),
78 TP_printk(LOCAL_PR_FMT
" - %llu", LOCAL_PR_ARG
, __entry
->ret
)
81 TRACE_EVENT(drv_start
,
82 TP_PROTO(struct ieee80211_local
*local
),
95 LOCAL_PR_FMT
, LOCAL_PR_ARG
100 TP_PROTO(struct ieee80211_local
*local
),
113 LOCAL_PR_FMT
, LOCAL_PR_ARG
117 TRACE_EVENT(drv_add_interface
,
118 TP_PROTO(struct ieee80211_local
*local
,
119 struct ieee80211_sub_if_data
*sdata
),
121 TP_ARGS(local
, sdata
),
126 __array(char, addr
, 6)
132 memcpy(__entry
->addr
, sdata
->vif
.addr
, 6);
136 LOCAL_PR_FMT VIF_PR_FMT
" addr:%pM",
137 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->addr
141 TRACE_EVENT(drv_change_interface
,
142 TP_PROTO(struct ieee80211_local
*local
,
143 struct ieee80211_sub_if_data
*sdata
,
144 enum nl80211_iftype type
, bool p2p
),
146 TP_ARGS(local
, sdata
, type
, p2p
),
151 __field(u32
, new_type
)
152 __field(bool, new_p2p
)
158 __entry
->new_type
= type
;
159 __entry
->new_p2p
= p2p
;
163 LOCAL_PR_FMT VIF_PR_FMT
" new type:%d%s",
164 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->new_type
,
165 __entry
->new_p2p
? "/p2p" : ""
169 TRACE_EVENT(drv_remove_interface
,
170 TP_PROTO(struct ieee80211_local
*local
, struct ieee80211_sub_if_data
*sdata
),
172 TP_ARGS(local
, sdata
),
177 __array(char, addr
, 6)
183 memcpy(__entry
->addr
, sdata
->vif
.addr
, 6);
187 LOCAL_PR_FMT VIF_PR_FMT
" addr:%pM",
188 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->addr
192 TRACE_EVENT(drv_config
,
193 TP_PROTO(struct ieee80211_local
*local
,
196 TP_ARGS(local
, changed
),
200 __field(u32
, changed
)
202 __field(int, power_level
)
203 __field(int, dynamic_ps_timeout
)
204 __field(int, max_sleep_period
)
205 __field(u16
, listen_interval
)
206 __field(u8
, long_frame_max_tx_count
)
207 __field(u8
, short_frame_max_tx_count
)
208 __field(int, center_freq
)
209 __field(int, channel_type
)
215 __entry
->changed
= changed
;
216 __entry
->flags
= local
->hw
.conf
.flags
;
217 __entry
->power_level
= local
->hw
.conf
.power_level
;
218 __entry
->dynamic_ps_timeout
= local
->hw
.conf
.dynamic_ps_timeout
;
219 __entry
->max_sleep_period
= local
->hw
.conf
.max_sleep_period
;
220 __entry
->listen_interval
= local
->hw
.conf
.listen_interval
;
221 __entry
->long_frame_max_tx_count
= local
->hw
.conf
.long_frame_max_tx_count
;
222 __entry
->short_frame_max_tx_count
= local
->hw
.conf
.short_frame_max_tx_count
;
223 __entry
->center_freq
= local
->hw
.conf
.channel
->center_freq
;
224 __entry
->channel_type
= local
->hw
.conf
.channel_type
;
225 __entry
->smps
= local
->hw
.conf
.smps_mode
;
229 LOCAL_PR_FMT
" ch:%#x freq:%d",
230 LOCAL_PR_ARG
, __entry
->changed
, __entry
->center_freq
234 TRACE_EVENT(drv_bss_info_changed
,
235 TP_PROTO(struct ieee80211_local
*local
,
236 struct ieee80211_sub_if_data
*sdata
,
237 struct ieee80211_bss_conf
*info
,
240 TP_ARGS(local
, sdata
, info
, changed
),
248 __field(bool, shortpre
)
249 __field(bool, shortslot
)
252 __field(u16
, assoc_cap
)
253 __field(u64
, timestamp
)
254 __field(u32
, basic_rates
)
255 __field(u32
, changed
)
256 __field(bool, enable_beacon
)
257 __field(u16
, ht_operation_mode
)
263 __entry
->changed
= changed
;
264 __entry
->aid
= info
->aid
;
265 __entry
->assoc
= info
->assoc
;
266 __entry
->shortpre
= info
->use_short_preamble
;
267 __entry
->cts
= info
->use_cts_prot
;
268 __entry
->shortslot
= info
->use_short_slot
;
269 __entry
->dtimper
= info
->dtim_period
;
270 __entry
->bcnint
= info
->beacon_int
;
271 __entry
->assoc_cap
= info
->assoc_capability
;
272 __entry
->timestamp
= info
->timestamp
;
273 __entry
->basic_rates
= info
->basic_rates
;
274 __entry
->enable_beacon
= info
->enable_beacon
;
275 __entry
->ht_operation_mode
= info
->ht_operation_mode
;
279 LOCAL_PR_FMT VIF_PR_FMT
" changed:%#x",
280 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->changed
284 TRACE_EVENT(drv_prepare_multicast
,
285 TP_PROTO(struct ieee80211_local
*local
, int mc_count
),
287 TP_ARGS(local
, mc_count
),
291 __field(int, mc_count
)
296 __entry
->mc_count
= mc_count
;
300 LOCAL_PR_FMT
" prepare mc (%d)",
301 LOCAL_PR_ARG
, __entry
->mc_count
305 TRACE_EVENT(drv_configure_filter
,
306 TP_PROTO(struct ieee80211_local
*local
,
307 unsigned int changed_flags
,
308 unsigned int *total_flags
,
311 TP_ARGS(local
, changed_flags
, total_flags
, multicast
),
315 __field(unsigned int, changed
)
316 __field(unsigned int, total
)
317 __field(u64
, multicast
)
322 __entry
->changed
= changed_flags
;
323 __entry
->total
= *total_flags
;
324 __entry
->multicast
= multicast
;
328 LOCAL_PR_FMT
" changed:%#x total:%#x",
329 LOCAL_PR_ARG
, __entry
->changed
, __entry
->total
333 TRACE_EVENT(drv_set_tim
,
334 TP_PROTO(struct ieee80211_local
*local
,
335 struct ieee80211_sta
*sta
, bool set
),
337 TP_ARGS(local
, sta
, set
),
352 LOCAL_PR_FMT STA_PR_FMT
" set:%d",
353 LOCAL_PR_ARG
, STA_PR_FMT
, __entry
->set
357 TRACE_EVENT(drv_set_key
,
358 TP_PROTO(struct ieee80211_local
*local
,
359 enum set_key_cmd cmd
, struct ieee80211_sub_if_data
*sdata
,
360 struct ieee80211_sta
*sta
,
361 struct ieee80211_key_conf
*key
),
363 TP_ARGS(local
, cmd
, sdata
, sta
, key
),
370 __field(u8
, hw_key_idx
)
379 __entry
->cipher
= key
->cipher
;
380 __entry
->flags
= key
->flags
;
381 __entry
->keyidx
= key
->keyidx
;
382 __entry
->hw_key_idx
= key
->hw_key_idx
;
386 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
387 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
391 TRACE_EVENT(drv_update_tkip_key
,
392 TP_PROTO(struct ieee80211_local
*local
,
393 struct ieee80211_sub_if_data
*sdata
,
394 struct ieee80211_key_conf
*conf
,
395 struct ieee80211_sta
*sta
, u32 iv32
),
397 TP_ARGS(local
, sdata
, conf
, sta
, iv32
),
410 __entry
->iv32
= iv32
;
414 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" iv32:%#x",
415 LOCAL_PR_ARG
,VIF_PR_ARG
,STA_PR_ARG
, __entry
->iv32
419 TRACE_EVENT(drv_hw_scan
,
420 TP_PROTO(struct ieee80211_local
*local
,
421 struct ieee80211_sub_if_data
*sdata
,
422 struct cfg80211_scan_request
*req
),
424 TP_ARGS(local
, sdata
, req
),
437 LOCAL_PR_FMT VIF_PR_FMT
,
438 LOCAL_PR_ARG
,VIF_PR_ARG
442 TRACE_EVENT(drv_sw_scan_start
,
443 TP_PROTO(struct ieee80211_local
*local
),
456 LOCAL_PR_FMT
, LOCAL_PR_ARG
460 TRACE_EVENT(drv_sw_scan_complete
,
461 TP_PROTO(struct ieee80211_local
*local
),
474 LOCAL_PR_FMT
, LOCAL_PR_ARG
478 TRACE_EVENT(drv_get_stats
,
479 TP_PROTO(struct ieee80211_local
*local
,
480 struct ieee80211_low_level_stats
*stats
,
483 TP_ARGS(local
, stats
, ret
),
488 __field(unsigned int, ackfail
)
489 __field(unsigned int, rtsfail
)
490 __field(unsigned int, fcserr
)
491 __field(unsigned int, rtssucc
)
497 __entry
->ackfail
= stats
->dot11ACKFailureCount
;
498 __entry
->rtsfail
= stats
->dot11RTSFailureCount
;
499 __entry
->fcserr
= stats
->dot11FCSErrorCount
;
500 __entry
->rtssucc
= stats
->dot11RTSSuccessCount
;
504 LOCAL_PR_FMT
" ret:%d",
505 LOCAL_PR_ARG
, __entry
->ret
509 TRACE_EVENT(drv_get_tkip_seq
,
510 TP_PROTO(struct ieee80211_local
*local
,
511 u8 hw_key_idx
, u32
*iv32
, u16
*iv16
),
513 TP_ARGS(local
, hw_key_idx
, iv32
, iv16
),
517 __field(u8
, hw_key_idx
)
524 __entry
->hw_key_idx
= hw_key_idx
;
525 __entry
->iv32
= *iv32
;
526 __entry
->iv16
= *iv16
;
530 LOCAL_PR_FMT
, LOCAL_PR_ARG
534 TRACE_EVENT(drv_set_frag_threshold
,
535 TP_PROTO(struct ieee80211_local
*local
, u32 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_set_rts_threshold
,
556 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
558 TP_ARGS(local
, value
),
567 __entry
->value
= value
;
571 LOCAL_PR_FMT
" value:%d",
572 LOCAL_PR_ARG
, __entry
->value
576 TRACE_EVENT(drv_set_coverage_class
,
577 TP_PROTO(struct ieee80211_local
*local
, u8 value
),
579 TP_ARGS(local
, value
),
588 __entry
->value
= value
;
592 LOCAL_PR_FMT
" value:%d",
593 LOCAL_PR_ARG
, __entry
->value
597 TRACE_EVENT(drv_sta_notify
,
598 TP_PROTO(struct ieee80211_local
*local
,
599 struct ieee80211_sub_if_data
*sdata
,
600 enum sta_notify_cmd cmd
,
601 struct ieee80211_sta
*sta
),
603 TP_ARGS(local
, sdata
, cmd
, sta
),
620 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" cmd:%d",
621 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->cmd
625 TRACE_EVENT(drv_sta_add
,
626 TP_PROTO(struct ieee80211_local
*local
,
627 struct ieee80211_sub_if_data
*sdata
,
628 struct ieee80211_sta
*sta
),
630 TP_ARGS(local
, sdata
, sta
),
645 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
646 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
650 TRACE_EVENT(drv_sta_remove
,
651 TP_PROTO(struct ieee80211_local
*local
,
652 struct ieee80211_sub_if_data
*sdata
,
653 struct ieee80211_sta
*sta
),
655 TP_ARGS(local
, sdata
, sta
),
670 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
671 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
675 TRACE_EVENT(drv_conf_tx
,
676 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
677 const struct ieee80211_tx_queue_params
*params
),
679 TP_ARGS(local
, queue
, params
),
692 __entry
->queue
= queue
;
693 __entry
->txop
= params
->txop
;
694 __entry
->cw_max
= params
->cw_max
;
695 __entry
->cw_min
= params
->cw_min
;
696 __entry
->aifs
= params
->aifs
;
700 LOCAL_PR_FMT
" queue:%d",
701 LOCAL_PR_ARG
, __entry
->queue
705 TRACE_EVENT(drv_get_tsf
,
706 TP_PROTO(struct ieee80211_local
*local
),
724 TRACE_EVENT(drv_set_tsf
,
725 TP_PROTO(struct ieee80211_local
*local
, u64 tsf
),
740 LOCAL_PR_FMT
" tsf:%llu",
741 LOCAL_PR_ARG
, (unsigned long long)__entry
->tsf
745 TRACE_EVENT(drv_reset_tsf
,
746 TP_PROTO(struct ieee80211_local
*local
),
759 LOCAL_PR_FMT
, LOCAL_PR_ARG
763 TRACE_EVENT(drv_tx_last_beacon
,
764 TP_PROTO(struct ieee80211_local
*local
),
782 TRACE_EVENT(drv_ampdu_action
,
783 TP_PROTO(struct ieee80211_local
*local
,
784 struct ieee80211_sub_if_data
*sdata
,
785 enum ieee80211_ampdu_mlme_action action
,
786 struct ieee80211_sta
*sta
, u16 tid
,
789 TP_ARGS(local
, sdata
, action
, sta
, tid
, ssn
),
804 __entry
->action
= action
;
806 __entry
->ssn
= ssn
? *ssn
: 0;
810 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" action:%d tid:%d",
811 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->action
, __entry
->tid
815 TRACE_EVENT(drv_get_survey
,
816 TP_PROTO(struct ieee80211_local
*local
, int idx
,
817 struct survey_info
*survey
),
819 TP_ARGS(local
, idx
, survey
),
832 LOCAL_PR_FMT
" idx:%d",
833 LOCAL_PR_ARG
, __entry
->idx
837 TRACE_EVENT(drv_flush
,
838 TP_PROTO(struct ieee80211_local
*local
, bool drop
),
840 TP_ARGS(local
, drop
),
849 __entry
->drop
= drop
;
853 LOCAL_PR_FMT
" drop:%d",
854 LOCAL_PR_ARG
, __entry
->drop
858 TRACE_EVENT(drv_channel_switch
,
859 TP_PROTO(struct ieee80211_local
*local
,
860 struct ieee80211_channel_switch
*ch_switch
),
862 TP_ARGS(local
, ch_switch
),
866 __field(u64
, timestamp
)
867 __field(bool, block_tx
)
874 __entry
->timestamp
= ch_switch
->timestamp
;
875 __entry
->block_tx
= ch_switch
->block_tx
;
876 __entry
->freq
= ch_switch
->channel
->center_freq
;
877 __entry
->count
= ch_switch
->count
;
881 LOCAL_PR_FMT
" new freq:%u count:%d",
882 LOCAL_PR_ARG
, __entry
->freq
, __entry
->count
886 TRACE_EVENT(drv_set_antenna
,
887 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
889 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
900 __entry
->tx_ant
= tx_ant
;
901 __entry
->rx_ant
= rx_ant
;
906 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
907 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
911 TRACE_EVENT(drv_get_antenna
,
912 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
914 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
925 __entry
->tx_ant
= tx_ant
;
926 __entry
->rx_ant
= rx_ant
;
931 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
932 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
936 TRACE_EVENT(drv_remain_on_channel
,
937 TP_PROTO(struct ieee80211_local
*local
, struct ieee80211_channel
*chan
,
938 enum nl80211_channel_type chantype
, unsigned int duration
),
940 TP_ARGS(local
, chan
, chantype
, duration
),
944 __field(int, center_freq
)
945 __field(int, channel_type
)
946 __field(unsigned int, duration
)
951 __entry
->center_freq
= chan
->center_freq
;
952 __entry
->channel_type
= chantype
;
953 __entry
->duration
= duration
;
957 LOCAL_PR_FMT
" freq:%dMHz duration:%dms",
958 LOCAL_PR_ARG
, __entry
->center_freq
, __entry
->duration
962 TRACE_EVENT(drv_cancel_remain_on_channel
,
963 TP_PROTO(struct ieee80211_local
*local
),
976 LOCAL_PR_FMT
, LOCAL_PR_ARG
981 * Tracing for API calls that drivers call.
984 TRACE_EVENT(api_start_tx_ba_session
,
985 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
1000 STA_PR_FMT
" tid:%d",
1001 STA_PR_ARG
, __entry
->tid
1005 TRACE_EVENT(api_start_tx_ba_cb
,
1006 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
1008 TP_ARGS(sdata
, ra
, tid
),
1012 __array(u8
, ra
, ETH_ALEN
)
1018 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
1023 VIF_PR_FMT
" ra:%pM tid:%d",
1024 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
1028 TRACE_EVENT(api_stop_tx_ba_session
,
1029 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
1044 STA_PR_FMT
" tid:%d",
1045 STA_PR_ARG
, __entry
->tid
1049 TRACE_EVENT(api_stop_tx_ba_cb
,
1050 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
1052 TP_ARGS(sdata
, ra
, tid
),
1056 __array(u8
, ra
, ETH_ALEN
)
1062 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
1067 VIF_PR_FMT
" ra:%pM tid:%d",
1068 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
1072 TRACE_EVENT(api_restart_hw
,
1073 TP_PROTO(struct ieee80211_local
*local
),
1091 TRACE_EVENT(api_beacon_loss
,
1092 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
1110 TRACE_EVENT(api_connection_loss
,
1111 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
1129 TRACE_EVENT(api_cqm_rssi_notify
,
1130 TP_PROTO(struct ieee80211_sub_if_data
*sdata
,
1131 enum nl80211_cqm_rssi_threshold_event rssi_event
),
1133 TP_ARGS(sdata
, rssi_event
),
1137 __field(u32
, rssi_event
)
1142 __entry
->rssi_event
= rssi_event
;
1146 VIF_PR_FMT
" event:%d",
1147 VIF_PR_ARG
, __entry
->rssi_event
1151 TRACE_EVENT(api_scan_completed
,
1152 TP_PROTO(struct ieee80211_local
*local
, bool aborted
),
1154 TP_ARGS(local
, aborted
),
1158 __field(bool, aborted
)
1163 __entry
->aborted
= aborted
;
1167 LOCAL_PR_FMT
" aborted:%d",
1168 LOCAL_PR_ARG
, __entry
->aborted
1172 TRACE_EVENT(api_sta_block_awake
,
1173 TP_PROTO(struct ieee80211_local
*local
,
1174 struct ieee80211_sta
*sta
, bool block
),
1176 TP_ARGS(local
, sta
, block
),
1181 __field(bool, block
)
1187 __entry
->block
= block
;
1191 LOCAL_PR_FMT STA_PR_FMT
" block:%d",
1192 LOCAL_PR_ARG
, STA_PR_FMT
, __entry
->block
1196 TRACE_EVENT(api_chswitch_done
,
1197 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, bool success
),
1199 TP_ARGS(sdata
, success
),
1203 __field(bool, success
)
1208 __entry
->success
= success
;
1212 VIF_PR_FMT
" success=%d",
1213 VIF_PR_ARG
, __entry
->success
1217 TRACE_EVENT(api_ready_on_channel
,
1218 TP_PROTO(struct ieee80211_local
*local
),
1231 LOCAL_PR_FMT
, LOCAL_PR_ARG
1235 TRACE_EVENT(api_remain_on_channel_expired
,
1236 TP_PROTO(struct ieee80211_local
*local
),
1249 LOCAL_PR_FMT
, LOCAL_PR_ARG
1254 * Tracing for internal functions
1255 * (which may also be called in response to driver calls)
1258 TRACE_EVENT(wake_queue
,
1259 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
1260 enum queue_stop_reason reason
),
1262 TP_ARGS(local
, queue
, reason
),
1267 __field(u32
, reason
)
1272 __entry
->queue
= queue
;
1273 __entry
->reason
= reason
;
1277 LOCAL_PR_FMT
" queue:%d, reason:%d",
1278 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
1282 TRACE_EVENT(stop_queue
,
1283 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
1284 enum queue_stop_reason reason
),
1286 TP_ARGS(local
, queue
, reason
),
1291 __field(u32
, reason
)
1296 __entry
->queue
= queue
;
1297 __entry
->reason
= reason
;
1301 LOCAL_PR_FMT
" queue:%d, reason:%d",
1302 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
1305 #endif /* !__MAC80211_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */
1307 #undef TRACE_INCLUDE_PATH
1308 #define TRACE_INCLUDE_PATH .
1309 #undef TRACE_INCLUDE_FILE
1310 #define TRACE_INCLUDE_FILE driver-trace
1311 #include <trace/define_trace.h>