tracing: Removed unused tracepoints for v6.18
Subsystems (5)
cover tracing: Removed unused tracepoints for v6.18
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
unused-tracepoints/for-next
Head SHA1: 7b4321deeaabdc97f39da7fcdd6e61767e1cd29c
Steven Rostedt (4):
cdns2: Remove unused tracepoints
cdns3: Remove unused tracepoints
cdnsp: Remove unused tracepoints
cfg80211: Remove unused tracepoints
----
drivers/usb/cdns3/cdns3-trace.h | 61 -------------------------- drivers/usb/cdns3/cdnsp-trace.h | 25 ----------- drivers/usb/gadget/udc/cdns2/cdns2-trace.h | 69 ------------------------------ net/wireless/trace.h | 56 ------------------------ 4 files changed, 211 deletions(-)
PATCH 1/4 cdns2: Remove unused tracepoints
From: Steven Rostedt <[email protected]>
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 cdns2 subsystem. They are:
cdns2_ep0_enqueuecdns2_ep0_set_configcdns2_ep_queuecdns2_iso_out_ep_disablecdns2_lpmcdns2_mapped_requestcdns2_map_requestcdns2_may_wakeup
--- drivers/usb/gadget/udc/cdns2/cdns2-trace.h | 69 ---------------------- 1 file changed, 69 deletions(-)
drivers/usb/gadget/udc/cdns2/cdns2-trace.h +0 -69
@@ -47,16 +47,6 @@ DEFINE_EVENT(cdns2_log_enable_disable, cdns2_pullup,TP_ARGS (set) ); -DEFINE_EVENT (cdns2_log_enable_disable, cdns2_lpm, - TP_PROTO(int set), -TP_ARGS (set) -); - -DEFINE_EVENT (cdns2_log_enable_disable, cdns2_may_wakeup, - TP_PROTO(int set), -TP_ARGS (set) -); - DECLARE_EVENT_CLASS(cdns2_log_simple, TP_PROTO(char *msg), TP_ARGS(msg),
@@ -79,11 +69,6 @@ DEFINE_EVENT(cdns2_log_simple, cdns2_ep0_status_stage,TP_ARGS (msg) ); -DEFINE_EVENT (cdns2_log_simple, cdns2_ep0_set_config, -TP_PROTO (char *msg), -TP_ARGS (msg) -); -DEFINE_EVENT (cdns2_log_simple, cdns2_ep0_setup,TP_PROTO (char *msg), TP_ARGS(msg)
@@ -340,11 +325,6 @@ DEFINE_EVENT(cdns2_log_request, cdns2_free_request,TP_ARGS (preq) ); -DEFINE_EVENT (cdns2_log_request, cdns2_ep_queue, - TP_PROTO(struct cdns2_request *preq), -TP_ARGS (preq) -); -DEFINE_EVENT (cdns2_log_request, cdns2_request_dequeue, TP_PROTO(struct cdns2_request *preq), TP_ARGS(preq)
@@ -355,50 +335,6 @@ DEFINE_EVENT(cdns2_log_request, cdns2_request_giveback,TP_ARGS (preq) ); -TRACE_EVENT (cdns2_ep0_enqueue, - TP_PROTO(struct cdns2_device *dev_priv, struct usb_request *request), -TP_ARGS (dev_priv, request), -TP_STRUCT__entry ( - __field(int, dir) -__field (int, length) - ), -TP_fast_assign ( - __entry->dir = dev_priv->eps[0].dir; - __entry->length = request->length; - ), -TP_printk ("Queue to ep0%s length: %u" , __entry->dir ?"in" :"out" , - __entry->length) -); - -DECLARE_EVENT_CLASS (cdns2_log_map_request, - TP_PROTO(struct cdns2_request *priv_req), -TP_ARGS (priv_req), -TP_STRUCT__entry ( - __string(name, priv_req->pep->name) - __field(struct usb_request *, req) - __field(void *, buf) -__field (dma_addr_t, dma) - ), -TP_fast_assign ( - __assign_str(name); - __entry->req = &priv_req->request; - __entry->buf = priv_req->request.buf; - __entry->dma = priv_req->request.dma; - ), -TP_printk ("%s: req: %p, req buf %p, dma %p" , -__get_str (name), __entry->req, __entry->buf, &__entry->dma - ) -); - -DEFINE_EVENT (cdns2_log_map_request, cdns2_map_request, - TP_PROTO(struct cdns2_request *req), -TP_ARGS (req) -); -DEFINE_EVENT (cdns2_log_map_request, cdns2_mapped_request, - TP_PROTO(struct cdns2_request *req), -TP_ARGS (req) -); - DECLARE_EVENT_CLASS(cdns2_log_trb, TP_PROTO(struct cdns2_endpoint *pep, struct cdns2_trb *trb), TP_ARGS(pep, trb),
@@ -507,11 +443,6 @@ DEFINE_EVENT(cdns2_log_ep, cdns2_gadget_ep_disable,TP_ARGS (pep) ); -DEFINE_EVENT (cdns2_log_ep, cdns2_iso_out_ep_disable, - TP_PROTO(struct cdns2_endpoint *pep), -TP_ARGS (pep) -); -DEFINE_EVENT (cdns2_log_ep, cdns2_ep_busy_try_halt_again, TP_PROTO(struct cdns2_endpoint *pep), TP_ARGS(pep)
Signature · 1 line
2.50.1
PATCH 2/4 cdns3: Remove unused tracepoints
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
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 cdns3 subsystem. They are:cdns3_mapped_requestcdns3_map_requestcdns3_stream_transfer_split cdns3_stream_transfer_split_next_part
--- drivers/usb/cdns3/cdns3-trace.h | 61 --------------------------------- 1 file changed, 61 deletions(-)
drivers/usb/cdns3/cdns3-trace.h +0 -61
@@ -283,39 +283,6 @@ TRACE_EVENT(cdns3_ep0_queue, __entry->length) ); -DECLARE_EVENT_CLASS (cdns3_stream_split_transfer_len, - TP_PROTO(struct cdns3_request *req), -TP_ARGS (req), -TP_STRUCT__entry ( - __string(name, req->priv_ep->name) - __field(struct cdns3_request *, req) - __field(unsigned int, length) - __field(unsigned int, actual) - __field(unsigned int, stream_id) - ), -TP_fast_assign ( - __assign_str(name); - __entry->req = req; - __entry->actual = req->request.length; - __entry->length = req->request.actual; - __entry->stream_id = req->request.stream_id; - ), -TP_printk ("%s: req: %p,request length: %u actual length: %u SID: %u" , -__get_str (name), __entry->req, __entry->length, - __entry->actual, __entry->stream_id) -); - -DEFINE_EVENT (cdns3_stream_split_transfer_len, cdns3_stream_transfer_split, - TP_PROTO(struct cdns3_request *req), -TP_ARGS (req) -); - -DEFINE_EVENT (cdns3_stream_split_transfer_len, - cdns3_stream_transfer_split_next_part, - TP_PROTO(struct cdns3_request *req), -TP_ARGS (req) -); - DECLARE_EVENT_CLASS(cdns3_log_aligned_request, TP_PROTO(struct cdns3_request *priv_req), TP_ARGS(priv_req),
@@ -354,34 +321,6 @@ DEFINE_EVENT(cdns3_log_aligned_request, cdns3_prepare_aligned_request,TP_ARGS (req) ); -DECLARE_EVENT_CLASS (cdns3_log_map_request, - TP_PROTO(struct cdns3_request *priv_req), -TP_ARGS (priv_req), -TP_STRUCT__entry ( - __string(name, priv_req->priv_ep->name) - __field(struct usb_request *, req) - __field(void *, buf) -__field (dma_addr_t, dma) - ), -TP_fast_assign ( - __assign_str(name); - __entry->req = &priv_req->request; - __entry->buf = priv_req->request.buf; - __entry->dma = priv_req->request.dma; - ), -TP_printk ("%s: req: %p, req buf %p, dma %p" , -__get_str (name), __entry->req, __entry->buf, &__entry->dma - ) -); -DEFINE_EVENT (cdns3_log_map_request, cdns3_map_request, - TP_PROTO(struct cdns3_request *req), -TP_ARGS (req) -); -DEFINE_EVENT (cdns3_log_map_request, cdns3_mapped_request, - TP_PROTO(struct cdns3_request *req), -TP_ARGS (req) -); - DECLARE_EVENT_CLASS(cdns3_log_trb, TP_PROTO(struct cdns3_endpoint *priv_ep, struct cdns3_trb *trb), TP_ARGS(priv_ep, trb),
Signature · 1 line
2.50.1
PATCH 3/4 cdnsp: Remove unused tracepoints
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
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 cdnsp subsystem. They are:
cdnsp_defered_eventcdnsp_ep0_haltedcdnsp_free_priv_devicecdnsp_handle_cmd_flush_ep
--- drivers/usb/cdns3/cdnsp-trace.h | 25 ------------------------- 1 file changed, 25 deletions(-)
drivers/usb/cdns3/cdnsp-trace.h +0 -25
@@ -178,11 +178,6 @@ DEFINE_EVENT(cdnsp_log_simple, cdnsp_ep0_set_config,TP_ARGS (msg) ); -DEFINE_EVENT (cdnsp_log_simple, cdnsp_ep0_halted, -TP_PROTO (char *msg), -TP_ARGS (msg) -); -DEFINE_EVENT (cdnsp_log_simple, cdnsp_ep_halt,TP_PROTO (char *msg), TP_ARGS(msg)
@@ -399,11 +394,6 @@ DEFINE_EVENT(cdnsp_log_trb, cdnsp_cmd_timeout,TP_ARGS (ring, trb) ); -DEFINE_EVENT (cdnsp_log_trb, cdnsp_defered_event, - TP_PROTO(struct cdnsp_ring *ring, struct cdnsp_generic_trb *trb), -TP_ARGS (ring, trb) -); - DECLARE_EVENT_CLASS(cdnsp_log_pdev, TP_PROTO(struct cdnsp_device *pdev), TP_ARGS(pdev),
@@ -433,16 +423,6 @@ DEFINE_EVENT(cdnsp_log_pdev, cdnsp_alloc_priv_device,TP_ARGS (vdev) ); -DEFINE_EVENT (cdnsp_log_pdev, cdnsp_free_priv_device, - TP_PROTO(struct cdnsp_device *vdev), -TP_ARGS (vdev) -); - -DEFINE_EVENT (cdnsp_log_pdev, cdnsp_setup_device, - TP_PROTO(struct cdnsp_device *vdev), -TP_ARGS (vdev) -); -DEFINE_EVENT (cdnsp_log_pdev, cdnsp_setup_addressable_priv_device, TP_PROTO(struct cdnsp_device *vdev), TP_ARGS(vdev)
@@ -575,11 +555,6 @@ DEFINE_EVENT(cdnsp_log_ep_ctx, cdnsp_handle_cmd_stop_ep,TP_ARGS (ctx) ); -DEFINE_EVENT (cdnsp_log_ep_ctx, cdnsp_handle_cmd_flush_ep, - TP_PROTO(struct cdnsp_ep_ctx *ctx), -TP_ARGS (ctx) -); -DEFINE_EVENT (cdnsp_log_ep_ctx, cdnsp_handle_cmd_set_deq_ep, TP_PROTO(struct cdnsp_ep_ctx *ctx), TP_ARGS(ctx)
Signature · 1 line
2.50.1
PATCH 4/4 cfg80211: Remove unused tracepoints
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
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_requiredcfg80211_return_u32cfg80211_return_uintcfg80211_send_rx_auth
--- net/wireless/trace.h | 56 -------------------------------------------- 1 file changed, 56 deletions(-)
net/wireless/trace.h +0 -56
@@ -3137,23 +3137,6 @@ DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate,TP_ARGS (netdev, macaddr) ); -DECLARE_EVENT_CLASS (netdev_evt_only, - TP_PROTO(struct net_device *netdev), -TP_ARGS (netdev), -TP_STRUCT__entry ( -NETDEV_ENTRY - ), -TP_fast_assign ( - NETDEV_ASSIGN; - ), -TP_printk (NETDEV_PR_FMT ,NETDEV_PR_ARG ) -); - -DEFINE_EVENT (netdev_evt_only, cfg80211_send_rx_auth, - TP_PROTO(struct net_device *netdev), -TP_ARGS (netdev) -); - TRACE_EVENT(cfg80211_send_rx_assoc, TP_PROTO(struct net_device *netdev, const struct cfg80211_rx_assoc_resp_data *data),
@@ -3480,21 +3463,6 @@ TRACE_EVENT(cfg80211_reg_can_beacon, __entry->prohibited_flags, __entry->permitting_flags) ); -TRACE_EVENT (cfg80211_chandef_dfs_required, - TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef), -TP_ARGS (wiphy, chandef), -TP_STRUCT__entry ( - WIPHY_ENTRY -CHAN_DEF_ENTRY - ), -TP_fast_assign ( - WIPHY_ASSIGN; - CHAN_DEF_ASSIGN(chandef); - ), -TP_printk (WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT , -WIPHY_PR_ARG ,CHAN_DEF_PR_ARG ) -); - TRACE_EVENT(cfg80211_ch_switch_notify, TP_PROTO(struct net_device *netdev, struct cfg80211_chan_def *chandef,
@@ -3862,30 +3830,6 @@ DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss,TP_ARGS (pub) ); -TRACE_EVENT (cfg80211_return_uint, - TP_PROTO(unsigned int ret), -TP_ARGS (ret), -TP_STRUCT__entry ( - __field(unsigned int, ret) - ), -TP_fast_assign ( - __entry->ret = ret; - ), -TP_printk ("ret: %d" , __entry->ret) -); - -TRACE_EVENT (cfg80211_return_u32, - TP_PROTO(u32 ret), -TP_ARGS (ret), -TP_STRUCT__entry ( -__field (u32, ret) - ), -TP_fast_assign ( - __entry->ret = ret; - ), -TP_printk ("ret: %u" , __entry->ret) -); - TRACE_EVENT(cfg80211_report_wowlan_wakeup, TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, struct cfg80211_wowlan_wakeup *wakeup),
Signature · 1 line
2.50.1
Johannes Berg
maintainerRe: [for-next][PATCH 4/4] cfg80211: Remove unused tracepoints
Quoted 6 lines · Steven Rostedt
From: Steven Rostedt <[email protected]>
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.
Quoted 6 lines
Remove the unused tracepoints of the cfg80211 subsystem. They are:
cfg80211_chandef_dfs_requiredcfg80211_return_u32cfg80211_return_uintcfg80211_send_rx_auth
This is in net-next [1], should go to Linus's tree whenever that is pulled [2].
[2] https://lore.kernel.org/lkml/[email protected]/
johannes
Re: [for-next][PATCH 4/4] cfg80211: Remove unused tracepoints
Quoted 14 lines · On Wed, 01 Oct 2025 16:49:29 +0200 Johannes Berg <[email protected]>…
Quoted 6 lines · Steven Rostedt
From: Steven Rostedt <[email protected]>
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.
Quoted 6 lines
Remove the unused tracepoints of the cfg80211 subsystem. They are:
cfg80211_chandef_dfs_requiredcfg80211_return_u32cfg80211_return_uintcfg80211_send_rx_auth
Quoted 7 lines
This is in net-next [1], should go to Linus's tree whenever that is pulled [2].
Thanks,
I didn't see any notification it went into net-next. I'll drop it.
-- Steve