Skip to content

Commit

Permalink
mac80211: add basic tracing to drv_get_survey
Browse files Browse the repository at this point in the history
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jun 29, 2010
1 parent ff3074a commit c466d4e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
7 changes: 6 additions & 1 deletion net/mac80211/driver-ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
22 changes: 22 additions & 0 deletions net/mac80211/driver-trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit c466d4e

Please sign in to comment.