Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: trace: unlink rdev_end_cac trace event from wiphy_netdev_evt class

rdev_end_cac trace event is linked with wiphy_netdev_evt event class.
There is no option to pass link ID currently to wiphy_netdev_evt class.
A subsequent change would pass link ID to rdev_end_cac event and hence
it can no longer derive the event class from wiphy_netdev_evt.

Therefore, unlink rdev_end_cac event from wiphy_netdev_evt and define it's
own independent trace event. Link ID would be passed in subsequent change.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Link: https://patch.msgid.link/20240906064426.2101315-4-quic_adisi@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Aditya Kumar Singh and committed by
Johannes Berg
f4bb650c f403fed7

+12 -3
+12 -3
net/wireless/trace.h
··· 805 805 TP_ARGS(wiphy, netdev) 806 806 ); 807 807 808 - DEFINE_EVENT(wiphy_netdev_evt, rdev_end_cac, 809 - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 810 - TP_ARGS(wiphy, netdev) 808 + TRACE_EVENT(rdev_end_cac, 809 + TP_PROTO(struct wiphy *wiphy, struct net_device *netdev), 810 + TP_ARGS(wiphy, netdev), 811 + TP_STRUCT__entry( 812 + WIPHY_ENTRY 813 + NETDEV_ENTRY 814 + ), 815 + TP_fast_assign( 816 + WIPHY_ASSIGN; 817 + NETDEV_ASSIGN; 818 + ), 819 + TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) 811 820 ); 812 821 813 822 DECLARE_EVENT_CLASS(station_add_change,