]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211: add basic tracing to drv_get_survey
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jun 2010 18:51:23 +0000 (14:51 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jun 2010 18:51:23 +0000 (14:51 -0400)
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/driver-ops.h
net/mac80211/driver-trace.h

index c33317320eeebc4a56cbe6ea706c3b1e9e865359..14123dce544bf960a57d6f06fdbda6bbcc83f88a 100644 (file)
@@ -375,9 +375,14 @@ static inline int drv_get_survey(struct ieee80211_local *local, int idx,
                                struct survey_info *survey)
 {
        int ret = -EOPNOTSUPP;
+
+       trace_drv_get_survey(local, idx, survey);
+
        if (local->ops->get_survey)
                ret = local->ops->get_survey(&local->hw, idx, survey);
-       /* trace_drv_get_survey(local, idx, survey, ret); */
+
+       trace_drv_return_int(local, ret);
+
        return ret;
 }
 
index 8da31caff9318705f9530ba3787c19507a484ce4..5d5d2a97466837b75b14961bc3b14a48bd5d488e 100644 (file)
@@ -761,6 +761,28 @@ TRACE_EVENT(drv_ampdu_action,
        )
 );
 
+TRACE_EVENT(drv_get_survey,
+       TP_PROTO(struct ieee80211_local *local, int idx,
+                struct survey_info *survey),
+
+       TP_ARGS(local, idx, survey),
+
+       TP_STRUCT__entry(
+               LOCAL_ENTRY
+               __field(int, idx)
+       ),
+
+       TP_fast_assign(
+               LOCAL_ASSIGN;
+               __entry->idx = idx;
+       ),
+
+       TP_printk(
+               LOCAL_PR_FMT " idx:%d",
+               LOCAL_PR_ARG, __entry->idx
+       )
+);
+
 TRACE_EVENT(drv_flush,
        TP_PROTO(struct ieee80211_local *local, bool drop),