cfg80211: tracing: reuse wiphy_wdev_evt for rdev_get_txq_stats
authorJohannes Berg <johannes.berg@intel.com>
Thu, 20 Sep 2018 09:53:55 +0000 (11:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:30 +0000 (09:56 +0200)
A simple cleanup, reuse the event definition that we already have.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/trace.h

index 5e7eec84920093a28a709118850d693766b4a597..e51348e24ff50151491c69838585aae6d09a52e6 100644 (file)
@@ -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 */