1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Portions of this file
4 * Copyright(c) 2016-2017 Intel Deutschland GmbH
5 * Copyright (C) 2018 - 2020 Intel Corporation
8 #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
9 #define __MAC80211_DRIVER_TRACE
11 #include <linux/tracepoint.h>
12 #include <net/mac80211.h>
13 #include "ieee80211_i.h"
16 #define TRACE_SYSTEM mac80211
19 #define LOCAL_ENTRY __array(char, wiphy_name, 32)
20 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
21 #define LOCAL_PR_FMT "%s"
22 #define LOCAL_PR_ARG __entry->wiphy_name
24 #define STA_ENTRY __array(char, sta_addr, ETH_ALEN)
25 #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : \
26 eth_zero_addr(__entry->sta_addr))
27 #define STA_NAMED_ASSIGN(s) memcpy(__entry->sta_addr, (s)->addr, ETH_ALEN)
28 #define STA_PR_FMT " sta:%pM"
29 #define STA_PR_ARG __entry->sta_addr
31 #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \
33 __string(vif_name, sdata->name)
34 #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \
35 __entry->p2p = sdata->vif.p2p; \
36 __assign_str(vif_name, sdata->name)
37 #define VIF_PR_FMT " vif:%s(%d%s)"
38 #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : ""
40 #define CHANDEF_ENTRY __field(u32, control_freq) \
41 __field(u32, freq_offset) \
42 __field(u32, chan_width) \
43 __field(u32, center_freq1) \
44 __field(u32, freq1_offset) \
45 __field(u32, center_freq2)
46 #define CHANDEF_ASSIGN(c) \
47 __entry->control_freq = (c) ? ((c)->chan ? (c)->chan->center_freq : 0) : 0; \
48 __entry->freq_offset = (c) ? ((c)->chan ? (c)->chan->freq_offset : 0) : 0; \
49 __entry->chan_width = (c) ? (c)->width : 0; \
50 __entry->center_freq1 = (c) ? (c)->center_freq1 : 0; \
51 __entry->freq1_offset = (c) ? (c)->freq1_offset : 0; \
52 __entry->center_freq2 = (c) ? (c)->center_freq2 : 0;
53 #define CHANDEF_PR_FMT " control:%d.%03d MHz width:%d center: %d.%03d/%d MHz"
54 #define CHANDEF_PR_ARG __entry->control_freq, __entry->freq_offset, __entry->chan_width, \
55 __entry->center_freq1, __entry->freq1_offset, __entry->center_freq2
57 #define MIN_CHANDEF_ENTRY \
58 __field(u32, min_control_freq) \
59 __field(u32, min_freq_offset) \
60 __field(u32, min_chan_width) \
61 __field(u32, min_center_freq1) \
62 __field(u32, min_freq1_offset) \
63 __field(u32, min_center_freq2)
65 #define MIN_CHANDEF_ASSIGN(c) \
66 __entry->min_control_freq = (c)->chan ? (c)->chan->center_freq : 0; \
67 __entry->min_freq_offset = (c)->chan ? (c)->chan->freq_offset : 0; \
68 __entry->min_chan_width = (c)->width; \
69 __entry->min_center_freq1 = (c)->center_freq1; \
70 __entry->freq1_offset = (c)->freq1_offset; \
71 __entry->min_center_freq2 = (c)->center_freq2;
72 #define MIN_CHANDEF_PR_FMT " min_control:%d.%03d MHz min_width:%d min_center: %d.%03d/%d MHz"
73 #define MIN_CHANDEF_PR_ARG __entry->min_control_freq, __entry->min_freq_offset, \
74 __entry->min_chan_width, \
75 __entry->min_center_freq1, __entry->min_freq1_offset, \
76 __entry->min_center_freq2
78 #define CHANCTX_ENTRY CHANDEF_ENTRY \
80 __field(u8, rx_chains_static) \
81 __field(u8, rx_chains_dynamic)
82 #define CHANCTX_ASSIGN CHANDEF_ASSIGN(&ctx->conf.def) \
83 MIN_CHANDEF_ASSIGN(&ctx->conf.min_def) \
84 __entry->rx_chains_static = ctx->conf.rx_chains_static; \
85 __entry->rx_chains_dynamic = ctx->conf.rx_chains_dynamic
86 #define CHANCTX_PR_FMT CHANDEF_PR_FMT MIN_CHANDEF_PR_FMT " chains:%d/%d"
87 #define CHANCTX_PR_ARG CHANDEF_PR_ARG, MIN_CHANDEF_PR_ARG, \
88 __entry->rx_chains_static, __entry->rx_chains_dynamic
90 #define KEY_ENTRY __field(u32, cipher) \
91 __field(u8, hw_key_idx) \
94 #define KEY_ASSIGN(k) __entry->cipher = (k)->cipher; \
95 __entry->flags = (k)->flags; \
96 __entry->keyidx = (k)->keyidx; \
97 __entry->hw_key_idx = (k)->hw_key_idx;
98 #define KEY_PR_FMT " cipher:0x%x, flags=%#x, keyidx=%d, hw_key_idx=%d"
99 #define KEY_PR_ARG __entry->cipher, __entry->flags, __entry->keyidx, __entry->hw_key_idx
101 #define AMPDU_ACTION_ENTRY __field(enum ieee80211_ampdu_mlme_action, \
102 ieee80211_ampdu_mlme_action) \
106 __field(u16, buf_size) \
107 __field(bool, amsdu) \
108 __field(u16, timeout) \
110 #define AMPDU_ACTION_ASSIGN STA_NAMED_ASSIGN(params->sta); \
111 __entry->tid = params->tid; \
112 __entry->ssn = params->ssn; \
113 __entry->buf_size = params->buf_size; \
114 __entry->amsdu = params->amsdu; \
115 __entry->timeout = params->timeout; \
116 __entry->action = params->action;
117 #define AMPDU_ACTION_PR_FMT STA_PR_FMT " tid %d, ssn %d, buf_size %u, amsdu %d, timeout %d action %d"
118 #define AMPDU_ACTION_PR_ARG STA_PR_ARG, __entry->tid, __entry->ssn, \
119 __entry->buf_size, __entry->amsdu, __entry->timeout, \
123 * Tracing for driver callbacks.
126 DECLARE_EVENT_CLASS(local_only_evt
,
127 TP_PROTO(struct ieee80211_local
*local
),
135 TP_printk(LOCAL_PR_FMT
, LOCAL_PR_ARG
)
138 DECLARE_EVENT_CLASS(local_sdata_addr_evt
,
139 TP_PROTO(struct ieee80211_local
*local
,
140 struct ieee80211_sub_if_data
*sdata
),
141 TP_ARGS(local
, sdata
),
146 __array(char, addr
, ETH_ALEN
)
152 memcpy(__entry
->addr
, sdata
->vif
.addr
, ETH_ALEN
);
156 LOCAL_PR_FMT VIF_PR_FMT
" addr:%pM",
157 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->addr
161 DECLARE_EVENT_CLASS(local_u32_evt
,
162 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
163 TP_ARGS(local
, value
),
172 __entry
->value
= value
;
176 LOCAL_PR_FMT
" value:%d",
177 LOCAL_PR_ARG
, __entry
->value
181 DECLARE_EVENT_CLASS(local_sdata_evt
,
182 TP_PROTO(struct ieee80211_local
*local
,
183 struct ieee80211_sub_if_data
*sdata
),
184 TP_ARGS(local
, sdata
),
197 LOCAL_PR_FMT VIF_PR_FMT
,
198 LOCAL_PR_ARG
, VIF_PR_ARG
202 DEFINE_EVENT(local_only_evt
, drv_return_void
,
203 TP_PROTO(struct ieee80211_local
*local
),
207 TRACE_EVENT(drv_return_int
,
208 TP_PROTO(struct ieee80211_local
*local
, int ret
),
218 TP_printk(LOCAL_PR_FMT
" - %d", LOCAL_PR_ARG
, __entry
->ret
)
221 TRACE_EVENT(drv_return_bool
,
222 TP_PROTO(struct ieee80211_local
*local
, bool ret
),
232 TP_printk(LOCAL_PR_FMT
" - %s", LOCAL_PR_ARG
, (__entry
->ret
) ?
236 TRACE_EVENT(drv_return_u32
,
237 TP_PROTO(struct ieee80211_local
*local
, u32 ret
),
247 TP_printk(LOCAL_PR_FMT
" - %u", LOCAL_PR_ARG
, __entry
->ret
)
250 TRACE_EVENT(drv_return_u64
,
251 TP_PROTO(struct ieee80211_local
*local
, u64 ret
),
261 TP_printk(LOCAL_PR_FMT
" - %llu", LOCAL_PR_ARG
, __entry
->ret
)
264 DEFINE_EVENT(local_only_evt
, drv_start
,
265 TP_PROTO(struct ieee80211_local
*local
),
269 DEFINE_EVENT(local_u32_evt
, drv_get_et_strings
,
270 TP_PROTO(struct ieee80211_local
*local
, u32 sset
),
274 DEFINE_EVENT(local_u32_evt
, drv_get_et_sset_count
,
275 TP_PROTO(struct ieee80211_local
*local
, u32 sset
),
279 DEFINE_EVENT(local_only_evt
, drv_get_et_stats
,
280 TP_PROTO(struct ieee80211_local
*local
),
284 DEFINE_EVENT(local_only_evt
, drv_suspend
,
285 TP_PROTO(struct ieee80211_local
*local
),
289 DEFINE_EVENT(local_only_evt
, drv_resume
,
290 TP_PROTO(struct ieee80211_local
*local
),
294 TRACE_EVENT(drv_set_wakeup
,
295 TP_PROTO(struct ieee80211_local
*local
, bool enabled
),
296 TP_ARGS(local
, enabled
),
299 __field(bool, enabled
)
303 __entry
->enabled
= enabled
;
305 TP_printk(LOCAL_PR_FMT
" enabled:%d", LOCAL_PR_ARG
, __entry
->enabled
)
308 DEFINE_EVENT(local_only_evt
, drv_stop
,
309 TP_PROTO(struct ieee80211_local
*local
),
313 DEFINE_EVENT(local_sdata_addr_evt
, drv_add_interface
,
314 TP_PROTO(struct ieee80211_local
*local
,
315 struct ieee80211_sub_if_data
*sdata
),
316 TP_ARGS(local
, sdata
)
319 TRACE_EVENT(drv_change_interface
,
320 TP_PROTO(struct ieee80211_local
*local
,
321 struct ieee80211_sub_if_data
*sdata
,
322 enum nl80211_iftype type
, bool p2p
),
324 TP_ARGS(local
, sdata
, type
, p2p
),
329 __field(u32
, new_type
)
330 __field(bool, new_p2p
)
336 __entry
->new_type
= type
;
337 __entry
->new_p2p
= p2p
;
341 LOCAL_PR_FMT VIF_PR_FMT
" new type:%d%s",
342 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->new_type
,
343 __entry
->new_p2p
? "/p2p" : ""
347 DEFINE_EVENT(local_sdata_addr_evt
, drv_remove_interface
,
348 TP_PROTO(struct ieee80211_local
*local
,
349 struct ieee80211_sub_if_data
*sdata
),
350 TP_ARGS(local
, sdata
)
353 TRACE_EVENT(drv_config
,
354 TP_PROTO(struct ieee80211_local
*local
,
357 TP_ARGS(local
, changed
),
361 __field(u32
, changed
)
363 __field(int, power_level
)
364 __field(int, dynamic_ps_timeout
)
365 __field(u16
, listen_interval
)
366 __field(u8
, long_frame_max_tx_count
)
367 __field(u8
, short_frame_max_tx_count
)
374 __entry
->changed
= changed
;
375 __entry
->flags
= local
->hw
.conf
.flags
;
376 __entry
->power_level
= local
->hw
.conf
.power_level
;
377 __entry
->dynamic_ps_timeout
= local
->hw
.conf
.dynamic_ps_timeout
;
378 __entry
->listen_interval
= local
->hw
.conf
.listen_interval
;
379 __entry
->long_frame_max_tx_count
=
380 local
->hw
.conf
.long_frame_max_tx_count
;
381 __entry
->short_frame_max_tx_count
=
382 local
->hw
.conf
.short_frame_max_tx_count
;
383 CHANDEF_ASSIGN(&local
->hw
.conf
.chandef
)
384 __entry
->smps
= local
->hw
.conf
.smps_mode
;
388 LOCAL_PR_FMT
" ch:%#x" CHANDEF_PR_FMT
,
389 LOCAL_PR_ARG
, __entry
->changed
, CHANDEF_PR_ARG
393 TRACE_EVENT(drv_bss_info_changed
,
394 TP_PROTO(struct ieee80211_local
*local
,
395 struct ieee80211_sub_if_data
*sdata
,
396 struct ieee80211_bss_conf
*info
,
399 TP_ARGS(local
, sdata
, info
, changed
),
404 __field(u32
, changed
)
406 __field(bool, ibss_joined
)
407 __field(bool, ibss_creator
)
410 __field(bool, shortpre
)
411 __field(bool, shortslot
)
412 __field(bool, enable_beacon
)
415 __field(u16
, assoc_cap
)
416 __field(u64
, sync_tsf
)
417 __field(u32
, sync_device_ts
)
418 __field(u8
, sync_dtim_count
)
419 __field(u32
, basic_rates
)
420 __array(int, mcast_rate
, NUM_NL80211_BANDS
)
421 __field(u16
, ht_operation_mode
)
422 __field(s32
, cqm_rssi_thold
)
423 __field(s32
, cqm_rssi_hyst
)
424 __field(u32
, channel_width
)
425 __field(u32
, channel_cfreq1
)
426 __field(u32
, channel_cfreq1_offset
)
427 __dynamic_array(u32
, arp_addr_list
,
428 info
->arp_addr_cnt
> IEEE80211_BSS_ARP_ADDR_LIST_LEN
?
429 IEEE80211_BSS_ARP_ADDR_LIST_LEN
:
431 __field(int, arp_addr_cnt
)
435 __dynamic_array(u8
, ssid
, info
->ssid_len
)
436 __field(bool, hidden_ssid
)
437 __field(int, txpower
)
438 __field(u8
, p2p_oppps_ctwindow
)
444 __entry
->changed
= changed
;
445 __entry
->aid
= info
->aid
;
446 __entry
->assoc
= info
->assoc
;
447 __entry
->ibss_joined
= info
->ibss_joined
;
448 __entry
->ibss_creator
= info
->ibss_creator
;
449 __entry
->shortpre
= info
->use_short_preamble
;
450 __entry
->cts
= info
->use_cts_prot
;
451 __entry
->shortslot
= info
->use_short_slot
;
452 __entry
->enable_beacon
= info
->enable_beacon
;
453 __entry
->dtimper
= info
->dtim_period
;
454 __entry
->bcnint
= info
->beacon_int
;
455 __entry
->assoc_cap
= info
->assoc_capability
;
456 __entry
->sync_tsf
= info
->sync_tsf
;
457 __entry
->sync_device_ts
= info
->sync_device_ts
;
458 __entry
->sync_dtim_count
= info
->sync_dtim_count
;
459 __entry
->basic_rates
= info
->basic_rates
;
460 memcpy(__entry
->mcast_rate
, info
->mcast_rate
,
461 sizeof(__entry
->mcast_rate
));
462 __entry
->ht_operation_mode
= info
->ht_operation_mode
;
463 __entry
->cqm_rssi_thold
= info
->cqm_rssi_thold
;
464 __entry
->cqm_rssi_hyst
= info
->cqm_rssi_hyst
;
465 __entry
->channel_width
= info
->chandef
.width
;
466 __entry
->channel_cfreq1
= info
->chandef
.center_freq1
;
467 __entry
->channel_cfreq1_offset
= info
->chandef
.freq1_offset
;
468 __entry
->arp_addr_cnt
= info
->arp_addr_cnt
;
469 memcpy(__get_dynamic_array(arp_addr_list
), info
->arp_addr_list
,
470 sizeof(u32
) * (info
->arp_addr_cnt
> IEEE80211_BSS_ARP_ADDR_LIST_LEN
?
471 IEEE80211_BSS_ARP_ADDR_LIST_LEN
:
472 info
->arp_addr_cnt
));
473 __entry
->qos
= info
->qos
;
474 __entry
->idle
= info
->idle
;
475 __entry
->ps
= info
->ps
;
476 memcpy(__get_dynamic_array(ssid
), info
->ssid
, info
->ssid_len
);
477 __entry
->hidden_ssid
= info
->hidden_ssid
;
478 __entry
->txpower
= info
->txpower
;
479 __entry
->p2p_oppps_ctwindow
= info
->p2p_noa_attr
.oppps_ctwindow
;
483 LOCAL_PR_FMT VIF_PR_FMT
" changed:%#x",
484 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->changed
488 TRACE_EVENT(drv_prepare_multicast
,
489 TP_PROTO(struct ieee80211_local
*local
, int mc_count
),
491 TP_ARGS(local
, mc_count
),
495 __field(int, mc_count
)
500 __entry
->mc_count
= mc_count
;
504 LOCAL_PR_FMT
" prepare mc (%d)",
505 LOCAL_PR_ARG
, __entry
->mc_count
509 TRACE_EVENT(drv_configure_filter
,
510 TP_PROTO(struct ieee80211_local
*local
,
511 unsigned int changed_flags
,
512 unsigned int *total_flags
,
515 TP_ARGS(local
, changed_flags
, total_flags
, multicast
),
519 __field(unsigned int, changed
)
520 __field(unsigned int, total
)
521 __field(u64
, multicast
)
526 __entry
->changed
= changed_flags
;
527 __entry
->total
= *total_flags
;
528 __entry
->multicast
= multicast
;
532 LOCAL_PR_FMT
" changed:%#x total:%#x",
533 LOCAL_PR_ARG
, __entry
->changed
, __entry
->total
537 TRACE_EVENT(drv_config_iface_filter
,
538 TP_PROTO(struct ieee80211_local
*local
,
539 struct ieee80211_sub_if_data
*sdata
,
540 unsigned int filter_flags
,
541 unsigned int changed_flags
),
543 TP_ARGS(local
, sdata
, filter_flags
, changed_flags
),
548 __field(unsigned int, filter_flags
)
549 __field(unsigned int, changed_flags
)
555 __entry
->filter_flags
= filter_flags
;
556 __entry
->changed_flags
= changed_flags
;
560 LOCAL_PR_FMT VIF_PR_FMT
561 " filter_flags: %#x changed_flags: %#x",
562 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->filter_flags
,
563 __entry
->changed_flags
567 TRACE_EVENT(drv_set_tim
,
568 TP_PROTO(struct ieee80211_local
*local
,
569 struct ieee80211_sta
*sta
, bool set
),
571 TP_ARGS(local
, sta
, set
),
586 LOCAL_PR_FMT STA_PR_FMT
" set:%d",
587 LOCAL_PR_ARG
, STA_PR_ARG
, __entry
->set
591 TRACE_EVENT(drv_set_key
,
592 TP_PROTO(struct ieee80211_local
*local
,
593 enum set_key_cmd cmd
, struct ieee80211_sub_if_data
*sdata
,
594 struct ieee80211_sta
*sta
,
595 struct ieee80211_key_conf
*key
),
597 TP_ARGS(local
, cmd
, sdata
, sta
, key
),
614 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT KEY_PR_FMT
,
615 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, KEY_PR_ARG
619 TRACE_EVENT(drv_update_tkip_key
,
620 TP_PROTO(struct ieee80211_local
*local
,
621 struct ieee80211_sub_if_data
*sdata
,
622 struct ieee80211_key_conf
*conf
,
623 struct ieee80211_sta
*sta
, u32 iv32
),
625 TP_ARGS(local
, sdata
, conf
, sta
, iv32
),
638 __entry
->iv32
= iv32
;
642 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" iv32:%#x",
643 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->iv32
647 DEFINE_EVENT(local_sdata_evt
, drv_hw_scan
,
648 TP_PROTO(struct ieee80211_local
*local
,
649 struct ieee80211_sub_if_data
*sdata
),
650 TP_ARGS(local
, sdata
)
653 DEFINE_EVENT(local_sdata_evt
, drv_cancel_hw_scan
,
654 TP_PROTO(struct ieee80211_local
*local
,
655 struct ieee80211_sub_if_data
*sdata
),
656 TP_ARGS(local
, sdata
)
659 DEFINE_EVENT(local_sdata_evt
, drv_sched_scan_start
,
660 TP_PROTO(struct ieee80211_local
*local
,
661 struct ieee80211_sub_if_data
*sdata
),
662 TP_ARGS(local
, sdata
)
665 DEFINE_EVENT(local_sdata_evt
, drv_sched_scan_stop
,
666 TP_PROTO(struct ieee80211_local
*local
,
667 struct ieee80211_sub_if_data
*sdata
),
668 TP_ARGS(local
, sdata
)
671 TRACE_EVENT(drv_sw_scan_start
,
672 TP_PROTO(struct ieee80211_local
*local
,
673 struct ieee80211_sub_if_data
*sdata
,
676 TP_ARGS(local
, sdata
, mac_addr
),
681 __array(char, mac_addr
, ETH_ALEN
)
687 memcpy(__entry
->mac_addr
, mac_addr
, ETH_ALEN
);
690 TP_printk(LOCAL_PR_FMT
", " VIF_PR_FMT
", addr:%pM",
691 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->mac_addr
)
694 DEFINE_EVENT(local_sdata_evt
, drv_sw_scan_complete
,
695 TP_PROTO(struct ieee80211_local
*local
,
696 struct ieee80211_sub_if_data
*sdata
),
697 TP_ARGS(local
, sdata
)
700 TRACE_EVENT(drv_get_stats
,
701 TP_PROTO(struct ieee80211_local
*local
,
702 struct ieee80211_low_level_stats
*stats
,
705 TP_ARGS(local
, stats
, ret
),
710 __field(unsigned int, ackfail
)
711 __field(unsigned int, rtsfail
)
712 __field(unsigned int, fcserr
)
713 __field(unsigned int, rtssucc
)
719 __entry
->ackfail
= stats
->dot11ACKFailureCount
;
720 __entry
->rtsfail
= stats
->dot11RTSFailureCount
;
721 __entry
->fcserr
= stats
->dot11FCSErrorCount
;
722 __entry
->rtssucc
= stats
->dot11RTSSuccessCount
;
726 LOCAL_PR_FMT
" ret:%d",
727 LOCAL_PR_ARG
, __entry
->ret
731 TRACE_EVENT(drv_get_key_seq
,
732 TP_PROTO(struct ieee80211_local
*local
,
733 struct ieee80211_key_conf
*key
),
748 LOCAL_PR_FMT KEY_PR_FMT
,
749 LOCAL_PR_ARG
, KEY_PR_ARG
753 DEFINE_EVENT(local_u32_evt
, drv_set_frag_threshold
,
754 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
755 TP_ARGS(local
, value
)
758 DEFINE_EVENT(local_u32_evt
, drv_set_rts_threshold
,
759 TP_PROTO(struct ieee80211_local
*local
, u32 value
),
760 TP_ARGS(local
, value
)
763 TRACE_EVENT(drv_set_coverage_class
,
764 TP_PROTO(struct ieee80211_local
*local
, s16 value
),
766 TP_ARGS(local
, value
),
775 __entry
->value
= value
;
779 LOCAL_PR_FMT
" value:%d",
780 LOCAL_PR_ARG
, __entry
->value
784 TRACE_EVENT(drv_sta_notify
,
785 TP_PROTO(struct ieee80211_local
*local
,
786 struct ieee80211_sub_if_data
*sdata
,
787 enum sta_notify_cmd cmd
,
788 struct ieee80211_sta
*sta
),
790 TP_ARGS(local
, sdata
, cmd
, sta
),
807 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" cmd:%d",
808 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->cmd
812 TRACE_EVENT(drv_sta_state
,
813 TP_PROTO(struct ieee80211_local
*local
,
814 struct ieee80211_sub_if_data
*sdata
,
815 struct ieee80211_sta
*sta
,
816 enum ieee80211_sta_state old_state
,
817 enum ieee80211_sta_state new_state
),
819 TP_ARGS(local
, sdata
, sta
, old_state
, new_state
),
825 __field(u32
, old_state
)
826 __field(u32
, new_state
)
833 __entry
->old_state
= old_state
;
834 __entry
->new_state
= new_state
;
838 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" state: %d->%d",
839 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
,
840 __entry
->old_state
, __entry
->new_state
844 TRACE_EVENT(drv_sta_set_txpwr
,
845 TP_PROTO(struct ieee80211_local
*local
,
846 struct ieee80211_sub_if_data
*sdata
,
847 struct ieee80211_sta
*sta
),
849 TP_ARGS(local
, sdata
, sta
),
863 __entry
->txpwr
= sta
->txpwr
.power
;
864 __entry
->type
= sta
->txpwr
.type
;
868 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" txpwr: %d type %d",
869 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
,
870 __entry
->txpwr
, __entry
->type
874 TRACE_EVENT(drv_sta_rc_update
,
875 TP_PROTO(struct ieee80211_local
*local
,
876 struct ieee80211_sub_if_data
*sdata
,
877 struct ieee80211_sta
*sta
,
880 TP_ARGS(local
, sdata
, sta
, changed
),
886 __field(u32
, changed
)
893 __entry
->changed
= changed
;
897 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" changed: 0x%x",
898 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->changed
902 DECLARE_EVENT_CLASS(sta_event
,
903 TP_PROTO(struct ieee80211_local
*local
,
904 struct ieee80211_sub_if_data
*sdata
,
905 struct ieee80211_sta
*sta
),
907 TP_ARGS(local
, sdata
, sta
),
922 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
,
923 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
927 DEFINE_EVENT(sta_event
, drv_sta_statistics
,
928 TP_PROTO(struct ieee80211_local
*local
,
929 struct ieee80211_sub_if_data
*sdata
,
930 struct ieee80211_sta
*sta
),
931 TP_ARGS(local
, sdata
, sta
)
934 DEFINE_EVENT(sta_event
, drv_sta_add
,
935 TP_PROTO(struct ieee80211_local
*local
,
936 struct ieee80211_sub_if_data
*sdata
,
937 struct ieee80211_sta
*sta
),
938 TP_ARGS(local
, sdata
, sta
)
941 DEFINE_EVENT(sta_event
, drv_sta_remove
,
942 TP_PROTO(struct ieee80211_local
*local
,
943 struct ieee80211_sub_if_data
*sdata
,
944 struct ieee80211_sta
*sta
),
945 TP_ARGS(local
, sdata
, sta
)
948 DEFINE_EVENT(sta_event
, drv_sta_pre_rcu_remove
,
949 TP_PROTO(struct ieee80211_local
*local
,
950 struct ieee80211_sub_if_data
*sdata
,
951 struct ieee80211_sta
*sta
),
952 TP_ARGS(local
, sdata
, sta
)
955 DEFINE_EVENT(sta_event
, drv_sync_rx_queues
,
956 TP_PROTO(struct ieee80211_local
*local
,
957 struct ieee80211_sub_if_data
*sdata
,
958 struct ieee80211_sta
*sta
),
959 TP_ARGS(local
, sdata
, sta
)
962 DEFINE_EVENT(sta_event
, drv_sta_rate_tbl_update
,
963 TP_PROTO(struct ieee80211_local
*local
,
964 struct ieee80211_sub_if_data
*sdata
,
965 struct ieee80211_sta
*sta
),
966 TP_ARGS(local
, sdata
, sta
)
969 TRACE_EVENT(drv_conf_tx
,
970 TP_PROTO(struct ieee80211_local
*local
,
971 struct ieee80211_sub_if_data
*sdata
,
972 u16 ac
, const struct ieee80211_tx_queue_params
*params
),
974 TP_ARGS(local
, sdata
, ac
, params
),
991 __entry
->txop
= params
->txop
;
992 __entry
->cw_max
= params
->cw_max
;
993 __entry
->cw_min
= params
->cw_min
;
994 __entry
->aifs
= params
->aifs
;
995 __entry
->uapsd
= params
->uapsd
;
999 LOCAL_PR_FMT VIF_PR_FMT
" AC:%d",
1000 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->ac
1004 DEFINE_EVENT(local_sdata_evt
, drv_get_tsf
,
1005 TP_PROTO(struct ieee80211_local
*local
,
1006 struct ieee80211_sub_if_data
*sdata
),
1007 TP_ARGS(local
, sdata
)
1010 TRACE_EVENT(drv_set_tsf
,
1011 TP_PROTO(struct ieee80211_local
*local
,
1012 struct ieee80211_sub_if_data
*sdata
,
1015 TP_ARGS(local
, sdata
, tsf
),
1030 LOCAL_PR_FMT VIF_PR_FMT
" tsf:%llu",
1031 LOCAL_PR_ARG
, VIF_PR_ARG
, (unsigned long long)__entry
->tsf
1035 TRACE_EVENT(drv_offset_tsf
,
1036 TP_PROTO(struct ieee80211_local
*local
,
1037 struct ieee80211_sub_if_data
*sdata
,
1040 TP_ARGS(local
, sdata
, offset
),
1045 __field(s64
, tsf_offset
)
1051 __entry
->tsf_offset
= offset
;
1055 LOCAL_PR_FMT VIF_PR_FMT
" tsf offset:%lld",
1056 LOCAL_PR_ARG
, VIF_PR_ARG
,
1057 (unsigned long long)__entry
->tsf_offset
1061 DEFINE_EVENT(local_sdata_evt
, drv_reset_tsf
,
1062 TP_PROTO(struct ieee80211_local
*local
,
1063 struct ieee80211_sub_if_data
*sdata
),
1064 TP_ARGS(local
, sdata
)
1067 DEFINE_EVENT(local_only_evt
, drv_tx_last_beacon
,
1068 TP_PROTO(struct ieee80211_local
*local
),
1072 TRACE_EVENT(drv_ampdu_action
,
1073 TP_PROTO(struct ieee80211_local
*local
,
1074 struct ieee80211_sub_if_data
*sdata
,
1075 struct ieee80211_ampdu_params
*params
),
1077 TP_ARGS(local
, sdata
, params
),
1088 AMPDU_ACTION_ASSIGN
;
1092 LOCAL_PR_FMT VIF_PR_FMT AMPDU_ACTION_PR_FMT
,
1093 LOCAL_PR_ARG
, VIF_PR_ARG
, AMPDU_ACTION_PR_ARG
1097 TRACE_EVENT(drv_get_survey
,
1098 TP_PROTO(struct ieee80211_local
*local
, int _idx
,
1099 struct survey_info
*survey
),
1101 TP_ARGS(local
, _idx
, survey
),
1110 __entry
->idx
= _idx
;
1114 LOCAL_PR_FMT
" idx:%d",
1115 LOCAL_PR_ARG
, __entry
->idx
1119 TRACE_EVENT(drv_flush
,
1120 TP_PROTO(struct ieee80211_local
*local
,
1121 u32 queues
, bool drop
),
1123 TP_ARGS(local
, queues
, drop
),
1128 __field(u32
, queues
)
1133 __entry
->drop
= drop
;
1134 __entry
->queues
= queues
;
1138 LOCAL_PR_FMT
" queues:0x%x drop:%d",
1139 LOCAL_PR_ARG
, __entry
->queues
, __entry
->drop
1143 TRACE_EVENT(drv_channel_switch
,
1144 TP_PROTO(struct ieee80211_local
*local
,
1145 struct ieee80211_sub_if_data
*sdata
,
1146 struct ieee80211_channel_switch
*ch_switch
),
1148 TP_ARGS(local
, sdata
, ch_switch
),
1154 __field(u64
, timestamp
)
1155 __field(u32
, device_timestamp
)
1156 __field(bool, block_tx
)
1163 CHANDEF_ASSIGN(&ch_switch
->chandef
)
1164 __entry
->timestamp
= ch_switch
->timestamp
;
1165 __entry
->device_timestamp
= ch_switch
->device_timestamp
;
1166 __entry
->block_tx
= ch_switch
->block_tx
;
1167 __entry
->count
= ch_switch
->count
;
1171 LOCAL_PR_FMT VIF_PR_FMT
" new " CHANDEF_PR_FMT
" count:%d",
1172 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANDEF_PR_ARG
, __entry
->count
1176 TRACE_EVENT(drv_set_antenna
,
1177 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
1179 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
1183 __field(u32
, tx_ant
)
1184 __field(u32
, rx_ant
)
1190 __entry
->tx_ant
= tx_ant
;
1191 __entry
->rx_ant
= rx_ant
;
1196 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
1197 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
1201 TRACE_EVENT(drv_get_antenna
,
1202 TP_PROTO(struct ieee80211_local
*local
, u32 tx_ant
, u32 rx_ant
, int ret
),
1204 TP_ARGS(local
, tx_ant
, rx_ant
, ret
),
1208 __field(u32
, tx_ant
)
1209 __field(u32
, rx_ant
)
1215 __entry
->tx_ant
= tx_ant
;
1216 __entry
->rx_ant
= rx_ant
;
1221 LOCAL_PR_FMT
" tx_ant:%d rx_ant:%d ret:%d",
1222 LOCAL_PR_ARG
, __entry
->tx_ant
, __entry
->rx_ant
, __entry
->ret
1226 TRACE_EVENT(drv_remain_on_channel
,
1227 TP_PROTO(struct ieee80211_local
*local
,
1228 struct ieee80211_sub_if_data
*sdata
,
1229 struct ieee80211_channel
*chan
,
1230 unsigned int duration
,
1231 enum ieee80211_roc_type type
),
1233 TP_ARGS(local
, sdata
, chan
, duration
, type
),
1238 __field(int, center_freq
)
1239 __field(int, freq_offset
)
1240 __field(unsigned int, duration
)
1247 __entry
->center_freq
= chan
->center_freq
;
1248 __entry
->freq_offset
= chan
->freq_offset
;
1249 __entry
->duration
= duration
;
1250 __entry
->type
= type
;
1254 LOCAL_PR_FMT VIF_PR_FMT
" freq:%d.%03dMHz duration:%dms type=%d",
1255 LOCAL_PR_ARG
, VIF_PR_ARG
,
1256 __entry
->center_freq
, __entry
->freq_offset
,
1257 __entry
->duration
, __entry
->type
1261 DEFINE_EVENT(local_sdata_evt
, drv_cancel_remain_on_channel
,
1262 TP_PROTO(struct ieee80211_local
*local
,
1263 struct ieee80211_sub_if_data
*sdata
),
1264 TP_ARGS(local
, sdata
)
1267 TRACE_EVENT(drv_set_ringparam
,
1268 TP_PROTO(struct ieee80211_local
*local
, u32 tx
, u32 rx
),
1270 TP_ARGS(local
, tx
, rx
),
1285 LOCAL_PR_FMT
" tx:%d rx %d",
1286 LOCAL_PR_ARG
, __entry
->tx
, __entry
->rx
1290 TRACE_EVENT(drv_get_ringparam
,
1291 TP_PROTO(struct ieee80211_local
*local
, u32
*tx
, u32
*tx_max
,
1292 u32
*rx
, u32
*rx_max
),
1294 TP_ARGS(local
, tx
, tx_max
, rx
, rx_max
),
1299 __field(u32
, tx_max
)
1301 __field(u32
, rx_max
)
1307 __entry
->tx_max
= *tx_max
;
1309 __entry
->rx_max
= *rx_max
;
1313 LOCAL_PR_FMT
" tx:%d tx_max %d rx %d rx_max %d",
1315 __entry
->tx
, __entry
->tx_max
, __entry
->rx
, __entry
->rx_max
1319 DEFINE_EVENT(local_only_evt
, drv_tx_frames_pending
,
1320 TP_PROTO(struct ieee80211_local
*local
),
1324 DEFINE_EVENT(local_only_evt
, drv_offchannel_tx_cancel_wait
,
1325 TP_PROTO(struct ieee80211_local
*local
),
1329 TRACE_EVENT(drv_set_bitrate_mask
,
1330 TP_PROTO(struct ieee80211_local
*local
,
1331 struct ieee80211_sub_if_data
*sdata
,
1332 const struct cfg80211_bitrate_mask
*mask
),
1334 TP_ARGS(local
, sdata
, mask
),
1339 __field(u32
, legacy_2g
)
1340 __field(u32
, legacy_5g
)
1346 __entry
->legacy_2g
= mask
->control
[NL80211_BAND_2GHZ
].legacy
;
1347 __entry
->legacy_5g
= mask
->control
[NL80211_BAND_5GHZ
].legacy
;
1351 LOCAL_PR_FMT VIF_PR_FMT
" 2G Mask:0x%x 5G Mask:0x%x",
1352 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->legacy_2g
, __entry
->legacy_5g
1356 TRACE_EVENT(drv_set_rekey_data
,
1357 TP_PROTO(struct ieee80211_local
*local
,
1358 struct ieee80211_sub_if_data
*sdata
,
1359 struct cfg80211_gtk_rekey_data
*data
),
1361 TP_ARGS(local
, sdata
, data
),
1366 __array(u8
, kek
, NL80211_KEK_LEN
)
1367 __array(u8
, kck
, NL80211_KCK_LEN
)
1368 __array(u8
, replay_ctr
, NL80211_REPLAY_CTR_LEN
)
1374 memcpy(__entry
->kek
, data
->kek
, NL80211_KEK_LEN
);
1375 memcpy(__entry
->kck
, data
->kck
, NL80211_KCK_LEN
);
1376 memcpy(__entry
->replay_ctr
, data
->replay_ctr
,
1377 NL80211_REPLAY_CTR_LEN
);
1380 TP_printk(LOCAL_PR_FMT VIF_PR_FMT
,
1381 LOCAL_PR_ARG
, VIF_PR_ARG
)
1384 TRACE_EVENT(drv_event_callback
,
1385 TP_PROTO(struct ieee80211_local
*local
,
1386 struct ieee80211_sub_if_data
*sdata
,
1387 const struct ieee80211_event
*_event
),
1389 TP_ARGS(local
, sdata
, _event
),
1400 __entry
->type
= _event
->type
;
1404 LOCAL_PR_FMT VIF_PR_FMT
" event:%d",
1405 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->type
1409 DECLARE_EVENT_CLASS(release_evt
,
1410 TP_PROTO(struct ieee80211_local
*local
,
1411 struct ieee80211_sta
*sta
,
1412 u16 tids
, int num_frames
,
1413 enum ieee80211_frame_release_type reason
,
1416 TP_ARGS(local
, sta
, tids
, num_frames
, reason
, more_data
),
1422 __field(int, num_frames
)
1423 __field(int, reason
)
1424 __field(bool, more_data
)
1430 __entry
->tids
= tids
;
1431 __entry
->num_frames
= num_frames
;
1432 __entry
->reason
= reason
;
1433 __entry
->more_data
= more_data
;
1437 LOCAL_PR_FMT STA_PR_FMT
1438 " TIDs:0x%.4x frames:%d reason:%d more:%d",
1439 LOCAL_PR_ARG
, STA_PR_ARG
, __entry
->tids
, __entry
->num_frames
,
1440 __entry
->reason
, __entry
->more_data
1444 DEFINE_EVENT(release_evt
, drv_release_buffered_frames
,
1445 TP_PROTO(struct ieee80211_local
*local
,
1446 struct ieee80211_sta
*sta
,
1447 u16 tids
, int num_frames
,
1448 enum ieee80211_frame_release_type reason
,
1451 TP_ARGS(local
, sta
, tids
, num_frames
, reason
, more_data
)
1454 DEFINE_EVENT(release_evt
, drv_allow_buffered_frames
,
1455 TP_PROTO(struct ieee80211_local
*local
,
1456 struct ieee80211_sta
*sta
,
1457 u16 tids
, int num_frames
,
1458 enum ieee80211_frame_release_type reason
,
1461 TP_ARGS(local
, sta
, tids
, num_frames
, reason
, more_data
)
1464 TRACE_EVENT(drv_mgd_prepare_tx
,
1465 TP_PROTO(struct ieee80211_local
*local
,
1466 struct ieee80211_sub_if_data
*sdata
,
1469 TP_ARGS(local
, sdata
, duration
),
1474 __field(u32
, duration
)
1480 __entry
->duration
= duration
;
1484 LOCAL_PR_FMT VIF_PR_FMT
" duration: %u",
1485 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->duration
1489 DEFINE_EVENT(local_sdata_evt
, drv_mgd_protect_tdls_discover
,
1490 TP_PROTO(struct ieee80211_local
*local
,
1491 struct ieee80211_sub_if_data
*sdata
),
1493 TP_ARGS(local
, sdata
)
1496 DECLARE_EVENT_CLASS(local_chanctx
,
1497 TP_PROTO(struct ieee80211_local
*local
,
1498 struct ieee80211_chanctx
*ctx
),
1500 TP_ARGS(local
, ctx
),
1513 LOCAL_PR_FMT CHANCTX_PR_FMT
,
1514 LOCAL_PR_ARG
, CHANCTX_PR_ARG
1518 DEFINE_EVENT(local_chanctx
, drv_add_chanctx
,
1519 TP_PROTO(struct ieee80211_local
*local
,
1520 struct ieee80211_chanctx
*ctx
),
1524 DEFINE_EVENT(local_chanctx
, drv_remove_chanctx
,
1525 TP_PROTO(struct ieee80211_local
*local
,
1526 struct ieee80211_chanctx
*ctx
),
1530 TRACE_EVENT(drv_change_chanctx
,
1531 TP_PROTO(struct ieee80211_local
*local
,
1532 struct ieee80211_chanctx
*ctx
,
1535 TP_ARGS(local
, ctx
, changed
),
1540 __field(u32
, changed
)
1546 __entry
->changed
= changed
;
1550 LOCAL_PR_FMT CHANCTX_PR_FMT
" changed:%#x",
1551 LOCAL_PR_ARG
, CHANCTX_PR_ARG
, __entry
->changed
1555 #if !defined(__TRACE_VIF_ENTRY)
1556 #define __TRACE_VIF_ENTRY
1557 struct trace_vif_entry
{
1558 enum nl80211_iftype vif_type
;
1560 char vif_name
[IFNAMSIZ
];
1563 struct trace_chandef_entry
{
1572 struct trace_switch_entry
{
1573 struct trace_vif_entry vif
;
1574 struct trace_chandef_entry old_chandef
;
1575 struct trace_chandef_entry new_chandef
;
1578 #define SWITCH_ENTRY_ASSIGN(to, from) local_vifs[i].to = vifs[i].from
1581 TRACE_EVENT(drv_switch_vif_chanctx
,
1582 TP_PROTO(struct ieee80211_local
*local
,
1583 struct ieee80211_vif_chanctx_switch
*vifs
,
1584 int n_vifs
, enum ieee80211_chanctx_switch_mode mode
),
1585 TP_ARGS(local
, vifs
, n_vifs
, mode
),
1589 __field(int, n_vifs
)
1591 __dynamic_array(u8
, vifs
,
1592 sizeof(struct trace_switch_entry
) * n_vifs
)
1597 __entry
->n_vifs
= n_vifs
;
1598 __entry
->mode
= mode
;
1600 struct trace_switch_entry
*local_vifs
=
1601 __get_dynamic_array(vifs
);
1604 for (i
= 0; i
< n_vifs
; i
++) {
1605 struct ieee80211_sub_if_data
*sdata
;
1607 sdata
= container_of(vifs
[i
].vif
,
1608 struct ieee80211_sub_if_data
,
1611 SWITCH_ENTRY_ASSIGN(vif
.vif_type
, vif
->type
);
1612 SWITCH_ENTRY_ASSIGN(vif
.p2p
, vif
->p2p
);
1613 strncpy(local_vifs
[i
].vif
.vif_name
,
1615 sizeof(local_vifs
[i
].vif
.vif_name
));
1616 SWITCH_ENTRY_ASSIGN(old_chandef
.control_freq
,
1617 old_ctx
->def
.chan
->center_freq
);
1618 SWITCH_ENTRY_ASSIGN(old_chandef
.freq_offset
,
1619 old_ctx
->def
.chan
->freq_offset
);
1620 SWITCH_ENTRY_ASSIGN(old_chandef
.chan_width
,
1621 old_ctx
->def
.width
);
1622 SWITCH_ENTRY_ASSIGN(old_chandef
.center_freq1
,
1623 old_ctx
->def
.center_freq1
);
1624 SWITCH_ENTRY_ASSIGN(old_chandef
.freq1_offset
,
1625 old_ctx
->def
.freq1_offset
);
1626 SWITCH_ENTRY_ASSIGN(old_chandef
.center_freq2
,
1627 old_ctx
->def
.center_freq2
);
1628 SWITCH_ENTRY_ASSIGN(new_chandef
.control_freq
,
1629 new_ctx
->def
.chan
->center_freq
);
1630 SWITCH_ENTRY_ASSIGN(new_chandef
.freq_offset
,
1631 new_ctx
->def
.chan
->freq_offset
);
1632 SWITCH_ENTRY_ASSIGN(new_chandef
.chan_width
,
1633 new_ctx
->def
.width
);
1634 SWITCH_ENTRY_ASSIGN(new_chandef
.center_freq1
,
1635 new_ctx
->def
.center_freq1
);
1636 SWITCH_ENTRY_ASSIGN(new_chandef
.freq1_offset
,
1637 new_ctx
->def
.freq1_offset
);
1638 SWITCH_ENTRY_ASSIGN(new_chandef
.center_freq2
,
1639 new_ctx
->def
.center_freq2
);
1645 LOCAL_PR_FMT
" n_vifs:%d mode:%d",
1646 LOCAL_PR_ARG
, __entry
->n_vifs
, __entry
->mode
1650 DECLARE_EVENT_CLASS(local_sdata_chanctx
,
1651 TP_PROTO(struct ieee80211_local
*local
,
1652 struct ieee80211_sub_if_data
*sdata
,
1653 struct ieee80211_chanctx
*ctx
),
1655 TP_ARGS(local
, sdata
, ctx
),
1670 LOCAL_PR_FMT VIF_PR_FMT CHANCTX_PR_FMT
,
1671 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANCTX_PR_ARG
1675 DEFINE_EVENT(local_sdata_chanctx
, drv_assign_vif_chanctx
,
1676 TP_PROTO(struct ieee80211_local
*local
,
1677 struct ieee80211_sub_if_data
*sdata
,
1678 struct ieee80211_chanctx
*ctx
),
1679 TP_ARGS(local
, sdata
, ctx
)
1682 DEFINE_EVENT(local_sdata_chanctx
, drv_unassign_vif_chanctx
,
1683 TP_PROTO(struct ieee80211_local
*local
,
1684 struct ieee80211_sub_if_data
*sdata
,
1685 struct ieee80211_chanctx
*ctx
),
1686 TP_ARGS(local
, sdata
, ctx
)
1689 TRACE_EVENT(drv_start_ap
,
1690 TP_PROTO(struct ieee80211_local
*local
,
1691 struct ieee80211_sub_if_data
*sdata
,
1692 struct ieee80211_bss_conf
*info
),
1694 TP_ARGS(local
, sdata
, info
),
1699 __field(u8
, dtimper
)
1700 __field(u16
, bcnint
)
1701 __dynamic_array(u8
, ssid
, info
->ssid_len
)
1702 __field(bool, hidden_ssid
)
1708 __entry
->dtimper
= info
->dtim_period
;
1709 __entry
->bcnint
= info
->beacon_int
;
1710 memcpy(__get_dynamic_array(ssid
), info
->ssid
, info
->ssid_len
);
1711 __entry
->hidden_ssid
= info
->hidden_ssid
;
1715 LOCAL_PR_FMT VIF_PR_FMT
,
1716 LOCAL_PR_ARG
, VIF_PR_ARG
1720 DEFINE_EVENT(local_sdata_evt
, drv_stop_ap
,
1721 TP_PROTO(struct ieee80211_local
*local
,
1722 struct ieee80211_sub_if_data
*sdata
),
1723 TP_ARGS(local
, sdata
)
1726 TRACE_EVENT(drv_reconfig_complete
,
1727 TP_PROTO(struct ieee80211_local
*local
,
1728 enum ieee80211_reconfig_type reconfig_type
),
1729 TP_ARGS(local
, reconfig_type
),
1733 __field(u8
, reconfig_type
)
1738 __entry
->reconfig_type
= reconfig_type
;
1742 LOCAL_PR_FMT
" reconfig_type:%d",
1743 LOCAL_PR_ARG
, __entry
->reconfig_type
1748 #if IS_ENABLED(CONFIG_IPV6)
1749 DEFINE_EVENT(local_sdata_evt
, drv_ipv6_addr_change
,
1750 TP_PROTO(struct ieee80211_local
*local
,
1751 struct ieee80211_sub_if_data
*sdata
),
1752 TP_ARGS(local
, sdata
)
1756 TRACE_EVENT(drv_join_ibss
,
1757 TP_PROTO(struct ieee80211_local
*local
,
1758 struct ieee80211_sub_if_data
*sdata
,
1759 struct ieee80211_bss_conf
*info
),
1761 TP_ARGS(local
, sdata
, info
),
1766 __field(u8
, dtimper
)
1767 __field(u16
, bcnint
)
1768 __dynamic_array(u8
, ssid
, info
->ssid_len
)
1774 __entry
->dtimper
= info
->dtim_period
;
1775 __entry
->bcnint
= info
->beacon_int
;
1776 memcpy(__get_dynamic_array(ssid
), info
->ssid
, info
->ssid_len
);
1780 LOCAL_PR_FMT VIF_PR_FMT
,
1781 LOCAL_PR_ARG
, VIF_PR_ARG
1785 DEFINE_EVENT(local_sdata_evt
, drv_leave_ibss
,
1786 TP_PROTO(struct ieee80211_local
*local
,
1787 struct ieee80211_sub_if_data
*sdata
),
1788 TP_ARGS(local
, sdata
)
1791 TRACE_EVENT(drv_get_expected_throughput
,
1792 TP_PROTO(struct ieee80211_sta
*sta
),
1805 STA_PR_FMT
, STA_PR_ARG
1809 TRACE_EVENT(drv_start_nan
,
1810 TP_PROTO(struct ieee80211_local
*local
,
1811 struct ieee80211_sub_if_data
*sdata
,
1812 struct cfg80211_nan_conf
*conf
),
1814 TP_ARGS(local
, sdata
, conf
),
1818 __field(u8
, master_pref
)
1825 __entry
->master_pref
= conf
->master_pref
;
1826 __entry
->bands
= conf
->bands
;
1830 LOCAL_PR_FMT VIF_PR_FMT
1831 ", master preference: %u, bands: 0x%0x",
1832 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->master_pref
,
1837 TRACE_EVENT(drv_stop_nan
,
1838 TP_PROTO(struct ieee80211_local
*local
,
1839 struct ieee80211_sub_if_data
*sdata
),
1841 TP_ARGS(local
, sdata
),
1854 LOCAL_PR_FMT VIF_PR_FMT
,
1855 LOCAL_PR_ARG
, VIF_PR_ARG
1859 TRACE_EVENT(drv_nan_change_conf
,
1860 TP_PROTO(struct ieee80211_local
*local
,
1861 struct ieee80211_sub_if_data
*sdata
,
1862 struct cfg80211_nan_conf
*conf
,
1865 TP_ARGS(local
, sdata
, conf
, changes
),
1869 __field(u8
, master_pref
)
1871 __field(u32
, changes
)
1877 __entry
->master_pref
= conf
->master_pref
;
1878 __entry
->bands
= conf
->bands
;
1879 __entry
->changes
= changes
;
1883 LOCAL_PR_FMT VIF_PR_FMT
1884 ", master preference: %u, bands: 0x%0x, changes: 0x%x",
1885 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->master_pref
,
1886 __entry
->bands
, __entry
->changes
1890 TRACE_EVENT(drv_add_nan_func
,
1891 TP_PROTO(struct ieee80211_local
*local
,
1892 struct ieee80211_sub_if_data
*sdata
,
1893 const struct cfg80211_nan_func
*func
),
1895 TP_ARGS(local
, sdata
, func
),
1900 __field(u8
, inst_id
)
1906 __entry
->type
= func
->type
;
1907 __entry
->inst_id
= func
->instance_id
;
1911 LOCAL_PR_FMT VIF_PR_FMT
1912 ", type: %u, inst_id: %u",
1913 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->type
, __entry
->inst_id
1917 TRACE_EVENT(drv_del_nan_func
,
1918 TP_PROTO(struct ieee80211_local
*local
,
1919 struct ieee80211_sub_if_data
*sdata
,
1922 TP_ARGS(local
, sdata
, instance_id
),
1926 __field(u8
, instance_id
)
1932 __entry
->instance_id
= instance_id
;
1936 LOCAL_PR_FMT VIF_PR_FMT
1937 ", instance_id: %u",
1938 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->instance_id
1942 DEFINE_EVENT(local_sdata_evt
, drv_start_pmsr
,
1943 TP_PROTO(struct ieee80211_local
*local
,
1944 struct ieee80211_sub_if_data
*sdata
),
1945 TP_ARGS(local
, sdata
)
1948 DEFINE_EVENT(local_sdata_evt
, drv_abort_pmsr
,
1949 TP_PROTO(struct ieee80211_local
*local
,
1950 struct ieee80211_sub_if_data
*sdata
),
1951 TP_ARGS(local
, sdata
)
1955 * Tracing for API calls that drivers call.
1958 TRACE_EVENT(api_start_tx_ba_session
,
1959 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
1974 STA_PR_FMT
" tid:%d",
1975 STA_PR_ARG
, __entry
->tid
1979 TRACE_EVENT(api_start_tx_ba_cb
,
1980 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
1982 TP_ARGS(sdata
, ra
, tid
),
1986 __array(u8
, ra
, ETH_ALEN
)
1992 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
1997 VIF_PR_FMT
" ra:%pM tid:%d",
1998 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
2002 TRACE_EVENT(api_stop_tx_ba_session
,
2003 TP_PROTO(struct ieee80211_sta
*sta
, u16 tid
),
2018 STA_PR_FMT
" tid:%d",
2019 STA_PR_ARG
, __entry
->tid
2023 TRACE_EVENT(api_stop_tx_ba_cb
,
2024 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, const u8
*ra
, u16 tid
),
2026 TP_ARGS(sdata
, ra
, tid
),
2030 __array(u8
, ra
, ETH_ALEN
)
2036 memcpy(__entry
->ra
, ra
, ETH_ALEN
);
2041 VIF_PR_FMT
" ra:%pM tid:%d",
2042 VIF_PR_ARG
, __entry
->ra
, __entry
->tid
2046 DEFINE_EVENT(local_only_evt
, api_restart_hw
,
2047 TP_PROTO(struct ieee80211_local
*local
),
2051 TRACE_EVENT(api_beacon_loss
,
2052 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
2070 TRACE_EVENT(api_connection_loss
,
2071 TP_PROTO(struct ieee80211_sub_if_data
*sdata
),
2089 TRACE_EVENT(api_disconnect
,
2090 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, bool reconnect
),
2092 TP_ARGS(sdata
, reconnect
),
2096 __field(int, reconnect
)
2101 __entry
->reconnect
= reconnect
;
2105 VIF_PR_FMT
" reconnect:%d",
2106 VIF_PR_ARG
, __entry
->reconnect
2110 TRACE_EVENT(api_cqm_rssi_notify
,
2111 TP_PROTO(struct ieee80211_sub_if_data
*sdata
,
2112 enum nl80211_cqm_rssi_threshold_event rssi_event
,
2115 TP_ARGS(sdata
, rssi_event
, rssi_level
),
2119 __field(u32
, rssi_event
)
2120 __field(s32
, rssi_level
)
2125 __entry
->rssi_event
= rssi_event
;
2126 __entry
->rssi_level
= rssi_level
;
2130 VIF_PR_FMT
" event:%d rssi:%d",
2131 VIF_PR_ARG
, __entry
->rssi_event
, __entry
->rssi_level
2135 DEFINE_EVENT(local_sdata_evt
, api_cqm_beacon_loss_notify
,
2136 TP_PROTO(struct ieee80211_local
*local
,
2137 struct ieee80211_sub_if_data
*sdata
),
2138 TP_ARGS(local
, sdata
)
2141 TRACE_EVENT(api_scan_completed
,
2142 TP_PROTO(struct ieee80211_local
*local
, bool aborted
),
2144 TP_ARGS(local
, aborted
),
2148 __field(bool, aborted
)
2153 __entry
->aborted
= aborted
;
2157 LOCAL_PR_FMT
" aborted:%d",
2158 LOCAL_PR_ARG
, __entry
->aborted
2162 TRACE_EVENT(api_sched_scan_results
,
2163 TP_PROTO(struct ieee80211_local
*local
),
2176 LOCAL_PR_FMT
, LOCAL_PR_ARG
2180 TRACE_EVENT(api_sched_scan_stopped
,
2181 TP_PROTO(struct ieee80211_local
*local
),
2194 LOCAL_PR_FMT
, LOCAL_PR_ARG
2198 TRACE_EVENT(api_sta_block_awake
,
2199 TP_PROTO(struct ieee80211_local
*local
,
2200 struct ieee80211_sta
*sta
, bool block
),
2202 TP_ARGS(local
, sta
, block
),
2207 __field(bool, block
)
2213 __entry
->block
= block
;
2217 LOCAL_PR_FMT STA_PR_FMT
" block:%d",
2218 LOCAL_PR_ARG
, STA_PR_ARG
, __entry
->block
2222 TRACE_EVENT(api_chswitch_done
,
2223 TP_PROTO(struct ieee80211_sub_if_data
*sdata
, bool success
),
2225 TP_ARGS(sdata
, success
),
2229 __field(bool, success
)
2234 __entry
->success
= success
;
2238 VIF_PR_FMT
" success=%d",
2239 VIF_PR_ARG
, __entry
->success
2243 DEFINE_EVENT(local_only_evt
, api_ready_on_channel
,
2244 TP_PROTO(struct ieee80211_local
*local
),
2248 DEFINE_EVENT(local_only_evt
, api_remain_on_channel_expired
,
2249 TP_PROTO(struct ieee80211_local
*local
),
2253 TRACE_EVENT(api_gtk_rekey_notify
,
2254 TP_PROTO(struct ieee80211_sub_if_data
*sdata
,
2255 const u8
*bssid
, const u8
*replay_ctr
),
2257 TP_ARGS(sdata
, bssid
, replay_ctr
),
2261 __array(u8
, bssid
, ETH_ALEN
)
2262 __array(u8
, replay_ctr
, NL80211_REPLAY_CTR_LEN
)
2267 memcpy(__entry
->bssid
, bssid
, ETH_ALEN
);
2268 memcpy(__entry
->replay_ctr
, replay_ctr
, NL80211_REPLAY_CTR_LEN
);
2271 TP_printk(VIF_PR_FMT
, VIF_PR_ARG
)
2274 TRACE_EVENT(api_enable_rssi_reports
,
2275 TP_PROTO(struct ieee80211_sub_if_data
*sdata
,
2276 int rssi_min_thold
, int rssi_max_thold
),
2278 TP_ARGS(sdata
, rssi_min_thold
, rssi_max_thold
),
2282 __field(int, rssi_min_thold
)
2283 __field(int, rssi_max_thold
)
2288 __entry
->rssi_min_thold
= rssi_min_thold
;
2289 __entry
->rssi_max_thold
= rssi_max_thold
;
2293 VIF_PR_FMT
" rssi_min_thold =%d, rssi_max_thold = %d",
2294 VIF_PR_ARG
, __entry
->rssi_min_thold
, __entry
->rssi_max_thold
2298 TRACE_EVENT(api_eosp
,
2299 TP_PROTO(struct ieee80211_local
*local
,
2300 struct ieee80211_sta
*sta
),
2302 TP_ARGS(local
, sta
),
2315 LOCAL_PR_FMT STA_PR_FMT
,
2316 LOCAL_PR_ARG
, STA_PR_ARG
2320 TRACE_EVENT(api_send_eosp_nullfunc
,
2321 TP_PROTO(struct ieee80211_local
*local
,
2322 struct ieee80211_sta
*sta
,
2325 TP_ARGS(local
, sta
, tid
),
2340 LOCAL_PR_FMT STA_PR_FMT
" tid:%d",
2341 LOCAL_PR_ARG
, STA_PR_ARG
, __entry
->tid
2345 TRACE_EVENT(api_sta_set_buffered
,
2346 TP_PROTO(struct ieee80211_local
*local
,
2347 struct ieee80211_sta
*sta
,
2348 u8 tid
, bool buffered
),
2350 TP_ARGS(local
, sta
, tid
, buffered
),
2356 __field(bool, buffered
)
2363 __entry
->buffered
= buffered
;
2367 LOCAL_PR_FMT STA_PR_FMT
" tid:%d buffered:%d",
2368 LOCAL_PR_ARG
, STA_PR_ARG
, __entry
->tid
, __entry
->buffered
2373 * Tracing for internal functions
2374 * (which may also be called in response to driver calls)
2377 TRACE_EVENT(wake_queue
,
2378 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
2379 enum queue_stop_reason reason
),
2381 TP_ARGS(local
, queue
, reason
),
2386 __field(u32
, reason
)
2391 __entry
->queue
= queue
;
2392 __entry
->reason
= reason
;
2396 LOCAL_PR_FMT
" queue:%d, reason:%d",
2397 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
2401 TRACE_EVENT(stop_queue
,
2402 TP_PROTO(struct ieee80211_local
*local
, u16 queue
,
2403 enum queue_stop_reason reason
),
2405 TP_ARGS(local
, queue
, reason
),
2410 __field(u32
, reason
)
2415 __entry
->queue
= queue
;
2416 __entry
->reason
= reason
;
2420 LOCAL_PR_FMT
" queue:%d, reason:%d",
2421 LOCAL_PR_ARG
, __entry
->queue
, __entry
->reason
2425 TRACE_EVENT(drv_set_default_unicast_key
,
2426 TP_PROTO(struct ieee80211_local
*local
,
2427 struct ieee80211_sub_if_data
*sdata
,
2430 TP_ARGS(local
, sdata
, key_idx
),
2435 __field(int, key_idx
)
2441 __entry
->key_idx
= key_idx
;
2444 TP_printk(LOCAL_PR_FMT VIF_PR_FMT
" key_idx:%d",
2445 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->key_idx
)
2448 TRACE_EVENT(api_radar_detected
,
2449 TP_PROTO(struct ieee80211_local
*local
),
2462 LOCAL_PR_FMT
" radar detected",
2467 TRACE_EVENT(drv_channel_switch_beacon
,
2468 TP_PROTO(struct ieee80211_local
*local
,
2469 struct ieee80211_sub_if_data
*sdata
,
2470 struct cfg80211_chan_def
*chandef
),
2472 TP_ARGS(local
, sdata
, chandef
),
2483 CHANDEF_ASSIGN(chandef
);
2487 LOCAL_PR_FMT VIF_PR_FMT
" channel switch to " CHANDEF_PR_FMT
,
2488 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANDEF_PR_ARG
2492 TRACE_EVENT(drv_pre_channel_switch
,
2493 TP_PROTO(struct ieee80211_local
*local
,
2494 struct ieee80211_sub_if_data
*sdata
,
2495 struct ieee80211_channel_switch
*ch_switch
),
2497 TP_ARGS(local
, sdata
, ch_switch
),
2503 __field(u64
, timestamp
)
2504 __field(u32
, device_timestamp
)
2505 __field(bool, block_tx
)
2512 CHANDEF_ASSIGN(&ch_switch
->chandef
)
2513 __entry
->timestamp
= ch_switch
->timestamp
;
2514 __entry
->device_timestamp
= ch_switch
->device_timestamp
;
2515 __entry
->block_tx
= ch_switch
->block_tx
;
2516 __entry
->count
= ch_switch
->count
;
2520 LOCAL_PR_FMT VIF_PR_FMT
" prepare channel switch to "
2521 CHANDEF_PR_FMT
" count:%d block_tx:%d timestamp:%llu",
2522 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANDEF_PR_ARG
, __entry
->count
,
2523 __entry
->block_tx
, __entry
->timestamp
2527 DEFINE_EVENT(local_sdata_evt
, drv_post_channel_switch
,
2528 TP_PROTO(struct ieee80211_local
*local
,
2529 struct ieee80211_sub_if_data
*sdata
),
2530 TP_ARGS(local
, sdata
)
2533 DEFINE_EVENT(local_sdata_evt
, drv_abort_channel_switch
,
2534 TP_PROTO(struct ieee80211_local
*local
,
2535 struct ieee80211_sub_if_data
*sdata
),
2536 TP_ARGS(local
, sdata
)
2539 TRACE_EVENT(drv_channel_switch_rx_beacon
,
2540 TP_PROTO(struct ieee80211_local
*local
,
2541 struct ieee80211_sub_if_data
*sdata
,
2542 struct ieee80211_channel_switch
*ch_switch
),
2544 TP_ARGS(local
, sdata
, ch_switch
),
2550 __field(u64
, timestamp
)
2551 __field(u32
, device_timestamp
)
2552 __field(bool, block_tx
)
2559 CHANDEF_ASSIGN(&ch_switch
->chandef
)
2560 __entry
->timestamp
= ch_switch
->timestamp
;
2561 __entry
->device_timestamp
= ch_switch
->device_timestamp
;
2562 __entry
->block_tx
= ch_switch
->block_tx
;
2563 __entry
->count
= ch_switch
->count
;
2567 LOCAL_PR_FMT VIF_PR_FMT
2568 " received a channel switch beacon to "
2569 CHANDEF_PR_FMT
" count:%d block_tx:%d timestamp:%llu",
2570 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANDEF_PR_ARG
, __entry
->count
,
2571 __entry
->block_tx
, __entry
->timestamp
2575 TRACE_EVENT(drv_get_txpower
,
2576 TP_PROTO(struct ieee80211_local
*local
,
2577 struct ieee80211_sub_if_data
*sdata
,
2580 TP_ARGS(local
, sdata
, dbm
, ret
),
2597 LOCAL_PR_FMT VIF_PR_FMT
" dbm:%d ret:%d",
2598 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->dbm
, __entry
->ret
2602 TRACE_EVENT(drv_tdls_channel_switch
,
2603 TP_PROTO(struct ieee80211_local
*local
,
2604 struct ieee80211_sub_if_data
*sdata
,
2605 struct ieee80211_sta
*sta
, u8 oper_class
,
2606 struct cfg80211_chan_def
*chandef
),
2608 TP_ARGS(local
, sdata
, sta
, oper_class
, chandef
),
2614 __field(u8
, oper_class
)
2622 __entry
->oper_class
= oper_class
;
2623 CHANDEF_ASSIGN(chandef
)
2627 LOCAL_PR_FMT VIF_PR_FMT
" tdls channel switch to"
2628 CHANDEF_PR_FMT
" oper_class:%d " STA_PR_FMT
,
2629 LOCAL_PR_ARG
, VIF_PR_ARG
, CHANDEF_PR_ARG
, __entry
->oper_class
,
2634 TRACE_EVENT(drv_tdls_cancel_channel_switch
,
2635 TP_PROTO(struct ieee80211_local
*local
,
2636 struct ieee80211_sub_if_data
*sdata
,
2637 struct ieee80211_sta
*sta
),
2639 TP_ARGS(local
, sdata
, sta
),
2654 LOCAL_PR_FMT VIF_PR_FMT
2655 " tdls cancel channel switch with " STA_PR_FMT
,
2656 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
2660 TRACE_EVENT(drv_tdls_recv_channel_switch
,
2661 TP_PROTO(struct ieee80211_local
*local
,
2662 struct ieee80211_sub_if_data
*sdata
,
2663 struct ieee80211_tdls_ch_sw_params
*params
),
2665 TP_ARGS(local
, sdata
, params
),
2670 __field(u8
, action_code
)
2673 __field(u32
, status
)
2674 __field(bool, peer_initiator
)
2675 __field(u32
, timestamp
)
2676 __field(u16
, switch_time
)
2677 __field(u16
, switch_timeout
)
2683 STA_NAMED_ASSIGN(params
->sta
);
2684 CHANDEF_ASSIGN(params
->chandef
)
2685 __entry
->peer_initiator
= params
->sta
->tdls_initiator
;
2686 __entry
->action_code
= params
->action_code
;
2687 __entry
->status
= params
->status
;
2688 __entry
->timestamp
= params
->timestamp
;
2689 __entry
->switch_time
= params
->switch_time
;
2690 __entry
->switch_timeout
= params
->switch_timeout
;
2694 LOCAL_PR_FMT VIF_PR_FMT
" received tdls channel switch packet"
2695 " action:%d status:%d time:%d switch time:%d switch"
2696 " timeout:%d initiator: %d chan:" CHANDEF_PR_FMT STA_PR_FMT
,
2697 LOCAL_PR_ARG
, VIF_PR_ARG
, __entry
->action_code
, __entry
->status
,
2698 __entry
->timestamp
, __entry
->switch_time
,
2699 __entry
->switch_timeout
, __entry
->peer_initiator
,
2700 CHANDEF_PR_ARG
, STA_PR_ARG
2704 TRACE_EVENT(drv_wake_tx_queue
,
2705 TP_PROTO(struct ieee80211_local
*local
,
2706 struct ieee80211_sub_if_data
*sdata
,
2707 struct txq_info
*txq
),
2709 TP_ARGS(local
, sdata
, txq
),
2720 struct ieee80211_sta
*sta
= txq
->txq
.sta
;
2725 __entry
->ac
= txq
->txq
.ac
;
2726 __entry
->tid
= txq
->txq
.tid
;
2730 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" ac:%d tid:%d",
2731 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->ac
, __entry
->tid
2735 TRACE_EVENT(drv_get_ftm_responder_stats
,
2736 TP_PROTO(struct ieee80211_local
*local
,
2737 struct ieee80211_sub_if_data
*sdata
,
2738 struct cfg80211_ftm_responder_stats
*ftm_stats
),
2740 TP_ARGS(local
, sdata
, ftm_stats
),
2753 LOCAL_PR_FMT VIF_PR_FMT
,
2754 LOCAL_PR_ARG
, VIF_PR_ARG
2758 DEFINE_EVENT(local_sdata_addr_evt
, drv_update_vif_offload
,
2759 TP_PROTO(struct ieee80211_local
*local
,
2760 struct ieee80211_sub_if_data
*sdata
),
2761 TP_ARGS(local
, sdata
)
2764 TRACE_EVENT(drv_sta_set_4addr
,
2765 TP_PROTO(struct ieee80211_local
*local
,
2766 struct ieee80211_sub_if_data
*sdata
,
2767 struct ieee80211_sta
*sta
, bool enabled
),
2769 TP_ARGS(local
, sdata
, sta
, enabled
),
2775 __field(bool, enabled
)
2782 __entry
->enabled
= enabled
;
2786 LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT
" enabled:%d",
2787 LOCAL_PR_ARG
, VIF_PR_ARG
, STA_PR_ARG
, __entry
->enabled
2791 #endif /* !__MAC80211_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */
2793 #undef TRACE_INCLUDE_PATH
2794 #define TRACE_INCLUDE_PATH .
2795 #undef TRACE_INCLUDE_FILE
2796 #define TRACE_INCLUDE_FILE trace
2797 #include <trace/define_trace.h>