1 From: Aditya Kumar Singh <quic_adisi@quicinc.com>
2 Date: Fri, 6 Sep 2024 12:14:21 +0530
3 Subject: [PATCH] wifi: trace: unlink rdev_end_cac trace event from
6 rdev_end_cac trace event is linked with wiphy_netdev_evt event class.
7 There is no option to pass link ID currently to wiphy_netdev_evt class.
8 A subsequent change would pass link ID to rdev_end_cac event and hence
9 it can no longer derive the event class from wiphy_netdev_evt.
11 Therefore, unlink rdev_end_cac event from wiphy_netdev_evt and define it's
12 own independent trace event. Link ID would be passed in subsequent change.
14 Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
15 Link: https://patch.msgid.link/20240906064426.2101315-4-quic_adisi@quicinc.com
16 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
19 --- a/net/wireless/trace.h
20 +++ b/net/wireless/trace.h
21 @@ -805,9 +805,18 @@ DEFINE_EVENT(wiphy_netdev_evt, rdev_flus
22 TP_ARGS(wiphy, netdev)
25 -DEFINE_EVENT(wiphy_netdev_evt, rdev_end_cac,
26 - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
27 - TP_ARGS(wiphy, netdev)
28 +TRACE_EVENT(rdev_end_cac,
29 + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
30 + TP_ARGS(wiphy, netdev),
39 + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
42 DECLARE_EVENT_CLASS(station_add_change,