diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-06-29 14:51:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-29 14:51:23 -0400 |
commit | c466d4efb86bb5aa327d6e43f62781a9faabfdae (patch) | |
tree | 16b2727b93adcc34b5b638975f00b4501b3062b2 /net/mac80211/driver-trace.h | |
parent | ff3074a4dd6c0963e6a7eaac48175a62f589c143 (diff) |
mac80211: add basic tracing to drv_get_survey
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-trace.h')
-rw-r--r-- | net/mac80211/driver-trace.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index 8da31caff931..5d5d2a974668 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
@@ -761,6 +761,28 @@ TRACE_EVENT(drv_ampdu_action, | |||
761 | ) | 761 | ) |
762 | ); | 762 | ); |
763 | 763 | ||
764 | TRACE_EVENT(drv_get_survey, | ||
765 | TP_PROTO(struct ieee80211_local *local, int idx, | ||
766 | struct survey_info *survey), | ||
767 | |||
768 | TP_ARGS(local, idx, survey), | ||
769 | |||
770 | TP_STRUCT__entry( | ||
771 | LOCAL_ENTRY | ||
772 | __field(int, idx) | ||
773 | ), | ||
774 | |||
775 | TP_fast_assign( | ||
776 | LOCAL_ASSIGN; | ||
777 | __entry->idx = idx; | ||
778 | ), | ||
779 | |||
780 | TP_printk( | ||
781 | LOCAL_PR_FMT " idx:%d", | ||
782 | LOCAL_PR_ARG, __entry->idx | ||
783 | ) | ||
784 | ); | ||
785 | |||
764 | TRACE_EVENT(drv_flush, | 786 | TRACE_EVENT(drv_flush, |
765 | TP_PROTO(struct ieee80211_local *local, bool drop), | 787 | TP_PROTO(struct ieee80211_local *local, bool drop), |
766 | 788 | ||