Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203310
b: refs/heads/master
c: c466d4e
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Jun 29, 2010
1 parent 8632fc0 commit 9f32676
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff3074a4dd6c0963e6a7eaac48175a62f589c143
refs/heads/master: c466d4efb86bb5aa327d6e43f62781a9faabfdae
7 changes: 6 additions & 1 deletion trunk/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 trunk/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 9f32676

Please sign in to comment.