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

Configure Feed

Select the types of activity you want to include in your feed.

wifi: cfg80211: Remove unused tracepoints

Tracepoints that are defined take up around 5K each, even if they are not
used. If they are defined and not used, then they waste memory for unused
code. Soon unused tracepoints will cause warnings.

Remove the unused tracepoints of the cfg80211 subsystem. They are:

cfg80211_chandef_dfs_required
cfg80211_return_u32
cfg80211_return_uint
cfg80211_send_rx_auth

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://patch.msgid.link/20250828221759.131160ee@batman.local.home
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Steven Rostedt and committed by
Johannes Berg
58febb47 d23ad54d

-56
-56
net/wireless/trace.h
··· 3137 3137 TP_ARGS(netdev, macaddr) 3138 3138 ); 3139 3139 3140 - DECLARE_EVENT_CLASS(netdev_evt_only, 3141 - TP_PROTO(struct net_device *netdev), 3142 - TP_ARGS(netdev), 3143 - TP_STRUCT__entry( 3144 - NETDEV_ENTRY 3145 - ), 3146 - TP_fast_assign( 3147 - NETDEV_ASSIGN; 3148 - ), 3149 - TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG) 3150 - ); 3151 - 3152 - DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth, 3153 - TP_PROTO(struct net_device *netdev), 3154 - TP_ARGS(netdev) 3155 - ); 3156 - 3157 3140 TRACE_EVENT(cfg80211_send_rx_assoc, 3158 3141 TP_PROTO(struct net_device *netdev, 3159 3142 const struct cfg80211_rx_assoc_resp_data *data), ··· 3461 3478 TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", iftype=%d prohibited_flags=0x%x permitting_flags=0x%x", 3462 3479 WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype, 3463 3480 __entry->prohibited_flags, __entry->permitting_flags) 3464 - ); 3465 - 3466 - TRACE_EVENT(cfg80211_chandef_dfs_required, 3467 - TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), 3468 - TP_ARGS(wiphy, chandef), 3469 - TP_STRUCT__entry( 3470 - WIPHY_ENTRY 3471 - CHAN_DEF_ENTRY 3472 - ), 3473 - TP_fast_assign( 3474 - WIPHY_ASSIGN; 3475 - CHAN_DEF_ASSIGN(chandef); 3476 - ), 3477 - TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, 3478 - WIPHY_PR_ARG, CHAN_DEF_PR_ARG) 3479 3481 ); 3480 3482 3481 3483 TRACE_EVENT(cfg80211_ch_switch_notify, ··· 3828 3860 DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, 3829 3861 TP_PROTO(struct cfg80211_bss *pub), 3830 3862 TP_ARGS(pub) 3831 - ); 3832 - 3833 - TRACE_EVENT(cfg80211_return_uint, 3834 - TP_PROTO(unsigned int ret), 3835 - TP_ARGS(ret), 3836 - TP_STRUCT__entry( 3837 - __field(unsigned int, ret) 3838 - ), 3839 - TP_fast_assign( 3840 - __entry->ret = ret; 3841 - ), 3842 - TP_printk("ret: %d", __entry->ret) 3843 - ); 3844 - 3845 - TRACE_EVENT(cfg80211_return_u32, 3846 - TP_PROTO(u32 ret), 3847 - TP_ARGS(ret), 3848 - TP_STRUCT__entry( 3849 - __field(u32, ret) 3850 - ), 3851 - TP_fast_assign( 3852 - __entry->ret = ret; 3853 - ), 3854 - TP_printk("ret: %u", __entry->ret) 3855 3863 ); 3856 3864 3857 3865 TRACE_EVENT(cfg80211_report_wowlan_wakeup,