98bc0c26fdb8f2a12d90331270460d0b0f8a98b5
[openwrt/staging/stintel.git] /
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
4 wiphy_netdev_evt class
5
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.
10
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.
13
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>
17 ---
18
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)
23 );
24
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),
31 + TP_STRUCT__entry(
32 + WIPHY_ENTRY
33 + NETDEV_ENTRY
34 + ),
35 + TP_fast_assign(
36 + WIPHY_ASSIGN;
37 + NETDEV_ASSIGN;
38 + ),
39 + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
40 );
41
42 DECLARE_EVENT_CLASS(station_add_change,