diff options
Diffstat (limited to 'net/mac80211/driver-trace.h')
-rw-r--r-- | net/mac80211/driver-trace.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index e5cce19a7d65..520fe2444893 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
@@ -884,6 +884,39 @@ DEFINE_EVENT(local_only_evt, drv_cancel_remain_on_channel, | |||
884 | TP_ARGS(local) | 884 | TP_ARGS(local) |
885 | ); | 885 | ); |
886 | 886 | ||
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, | ||
891 | unsigned int wait), | ||
892 | |||
893 | TP_ARGS(local, skb, chan, channel_type, wait), | ||
894 | |||
895 | TP_STRUCT__entry( | ||
896 | LOCAL_ENTRY | ||
897 | __field(int, center_freq) | ||
898 | __field(int, channel_type) | ||
899 | __field(unsigned int, wait) | ||
900 | ), | ||
901 | |||
902 | TP_fast_assign( | ||
903 | LOCAL_ASSIGN; | ||
904 | __entry->center_freq = chan->center_freq; | ||
905 | __entry->channel_type = channel_type; | ||
906 | __entry->wait = wait; | ||
907 | ), | ||
908 | |||
909 | TP_printk( | ||
910 | LOCAL_PR_FMT " freq:%dMHz, wait:%dms", | ||
911 | LOCAL_PR_ARG, __entry->center_freq, __entry->wait | ||
912 | ) | ||
913 | ); | ||
914 | |||
915 | DEFINE_EVENT(local_only_evt, drv_offchannel_tx_cancel_wait, | ||
916 | TP_PROTO(struct ieee80211_local *local), | ||
917 | TP_ARGS(local) | ||
918 | ); | ||
919 | |||
887 | /* | 920 | /* |
888 | * Tracing for API calls that drivers call. | 921 | * Tracing for API calls that drivers call. |
889 | */ | 922 | */ |