Skip to content

Commit 7057f24

Browse files
committed
cfg80211: tracing: reuse wiphy_wdev_evt for rdev_get_txq_stats
A simple cleanup, reuse the event definition that we already have. Signed-off-by: Johannes Berg <[email protected]>
1 parent efdfce7 commit 7057f24

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

net/wireless/trace.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,18 +3246,9 @@ TRACE_EVENT(rdev_set_multicast_to_unicast,
32463246
BOOL_TO_STR(__entry->enabled))
32473247
);
32483248

3249-
TRACE_EVENT(rdev_get_txq_stats,
3249+
DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats,
32503250
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
3251-
TP_ARGS(wiphy, wdev),
3252-
TP_STRUCT__entry(
3253-
WIPHY_ENTRY
3254-
WDEV_ENTRY
3255-
),
3256-
TP_fast_assign(
3257-
WIPHY_ASSIGN;
3258-
WDEV_ASSIGN;
3259-
),
3260-
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
3251+
TP_ARGS(wiphy, wdev)
32613252
);
32623253
#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
32633254

0 commit comments

Comments
 (0)