diff options
Diffstat (limited to 'net/mac80211/driver-trace.h')
| -rw-r--r-- | net/mac80211/driver-trace.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index ce734b58d07a..6a9b2342a9c2 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
| @@ -774,6 +774,34 @@ TRACE_EVENT(drv_flush, | |||
| 774 | ) | 774 | ) |
| 775 | ); | 775 | ); |
| 776 | 776 | ||
| 777 | TRACE_EVENT(drv_channel_switch, | ||
| 778 | TP_PROTO(struct ieee80211_local *local, | ||
| 779 | struct ieee80211_channel_switch *ch_switch), | ||
| 780 | |||
| 781 | TP_ARGS(local, ch_switch), | ||
| 782 | |||
| 783 | TP_STRUCT__entry( | ||
| 784 | LOCAL_ENTRY | ||
| 785 | __field(u64, timestamp) | ||
| 786 | __field(bool, block_tx) | ||
| 787 | __field(u16, freq) | ||
| 788 | __field(u8, count) | ||
| 789 | ), | ||
| 790 | |||
| 791 | TP_fast_assign( | ||
| 792 | LOCAL_ASSIGN; | ||
| 793 | __entry->timestamp = ch_switch->timestamp; | ||
| 794 | __entry->block_tx = ch_switch->block_tx; | ||
| 795 | __entry->freq = ch_switch->channel->center_freq; | ||
| 796 | __entry->count = ch_switch->count; | ||
| 797 | ), | ||
| 798 | |||
| 799 | TP_printk( | ||
| 800 | LOCAL_PR_FMT " new freq:%u count:%d", | ||
| 801 | LOCAL_PR_ARG, __entry->freq, __entry->count | ||
| 802 | ) | ||
| 803 | ); | ||
| 804 | |||
| 777 | /* | 805 | /* |
| 778 | * Tracing for API calls that drivers call. | 806 | * Tracing for API calls that drivers call. |
| 779 | */ | 807 | */ |
| @@ -992,6 +1020,27 @@ TRACE_EVENT(api_sta_block_awake, | |||
| 992 | ) | 1020 | ) |
| 993 | ); | 1021 | ); |
| 994 | 1022 | ||
| 1023 | TRACE_EVENT(api_chswitch_done, | ||
| 1024 | TP_PROTO(struct ieee80211_sub_if_data *sdata, bool success), | ||
| 1025 | |||
| 1026 | TP_ARGS(sdata, success), | ||
| 1027 | |||
| 1028 | TP_STRUCT__entry( | ||
| 1029 | VIF_ENTRY | ||
| 1030 | __field(bool, success) | ||
| 1031 | ), | ||
| 1032 | |||
| 1033 | TP_fast_assign( | ||
| 1034 | VIF_ASSIGN; | ||
| 1035 | __entry->success = success; | ||
| 1036 | ), | ||
| 1037 | |||
| 1038 | TP_printk( | ||
| 1039 | VIF_PR_FMT " success=%d", | ||
| 1040 | VIF_PR_ARG, __entry->success | ||
| 1041 | ) | ||
| 1042 | ); | ||
| 1043 | |||
| 995 | /* | 1044 | /* |
| 996 | * Tracing for internal functions | 1045 | * Tracing for internal functions |
| 997 | * (which may also be called in response to driver calls) | 1046 | * (which may also be called in response to driver calls) |
