summaryrefslogtreecommitdiff
path: root/net/wireless/trace.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-09-20 12:53:55 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-10-02 10:56:30 +0300
commit7057f2496cc63193d8c7795779b640461b70d998 (patch)
treeb75d4070d17469c1434ce2691481c77be14393b8 /net/wireless/trace.h
parentefdfce7270de85a8706d1ea051bef3a7486809ff (diff)
downloadlinux-7057f2496cc63193d8c7795779b640461b70d998.tar.xz
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 <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r--net/wireless/trace.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h
index 5e7eec849200..e51348e24ff5 100644
--- a/net/wireless/trace.h
+++ b/net/wireless/trace.h
@@ -3246,18 +3246,9 @@ TRACE_EVENT(rdev_set_multicast_to_unicast,
BOOL_TO_STR(__entry->enabled))
);
-TRACE_EVENT(rdev_get_txq_stats,
+DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats,
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
- TP_ARGS(wiphy, wdev),
- TP_STRUCT__entry(
- WIPHY_ENTRY
- WDEV_ENTRY
- ),
- TP_fast_assign(
- WIPHY_ASSIGN;
- WDEV_ASSIGN;
- ),
- TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
+ TP_ARGS(wiphy, wdev)
);
#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */