Skip to contentSkip to conversation

rxrpc: Remove unused rxrpc_drop_ack tracepoint

PATCH Superseded Temitope obabi 3 participants 3 messages Nov 2 – Nov 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rxrpc: Remove unused rxrpc_drop_ack tracepoint

The only call to trace_rxrpc_drop_ack(), in rxrpc_send_ACK(), was removed by commit 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint is no longer reached by any caller.

Removing this tracepoint avoids keeping unused tracing code and makes the code easier to maintain. Each defined tracepoint also takes up around 5K of code and data, even when it is never used.

Fixes 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work")

---
Changes in v3:
- Added a Fixes tag.
- Wrapped the commit message at 76 characters.
- Clarified that the 5K refers to both code and data.

 include/trace/events/rxrpc.h | 29 -----------------------------
 1 file changed, 29 deletions(-)
include/trace/events/rxrpc.h +0 -29
index 56dc9b614071..ec145da21ca8 100644
@@ -1837,35 +1837,6 @@ TRACE_EVENT(rxrpc_send_ack,
 		      __entry->serial)
 	    );
 
-TRACE_EVENT(rxrpc_drop_ack,
-	    TP_PROTO(struct rxrpc_call *call, enum rxrpc_propose_ack_trace why,
-		     u8 ack_reason, rxrpc_serial_t serial, bool nobuf),
-
-	    TP_ARGS(call, why, ack_reason, serial, nobuf),
-
-	    TP_STRUCT__entry(
-		    __field(unsigned int,			call)
-		    __field(enum rxrpc_propose_ack_trace,	why)
-		    __field(rxrpc_serial_t,			serial)
-		    __field(u8,					ack_reason)
-		    __field(bool,				nobuf)
-			     ),
-
-	    TP_fast_assign(
-		    __entry->call	= call->debug_id;
-		    __entry->why	= why;
-		    __entry->serial	= serial;
-		    __entry->ack_reason	= ack_reason;
-		    __entry->nobuf	= nobuf;
-			   ),
-
-	    TP_printk("c=%08x %s %s r=%08x nbf=%u",
-		      __entry->call,
-		      __print_symbolic(__entry->why, rxrpc_propose_ack_traces),
-		      __print_symbolic(__entry->ack_reason, rxrpc_ack_names),
-		      __entry->serial, __entry->nobuf)
-	    );
-
 TRACE_EVENT(rxrpc_retransmit,
 	    TP_PROTO(struct rxrpc_call *call,
 		     struct rxrpc_send_data_req *req,
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 10 lines · On Mon, 2 Nov 2026 20:38:46 +0200 Temitope obabi <[email protected]>…

The only call to trace_rxrpc_drop_ack(), in rxrpc_send_ACK(), was removed by commit 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint is no longer reached by any caller.

Removing this tracepoint avoids keeping unused tracing code and makes the code easier to maintain. Each defined tracepoint also takes up around 5K of code and data, even when it is never used.

Fixes 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work")

LGTM.

-- Steve

#2 lore raw
Quoted 7 lines · Steven Rostedt
Quoted 4 lines · On Mon, 2 Nov 2026 20:38:46 +0200 Temitope obabi <[email protected]>…

The only call to trace_rxrpc_drop_ack(), in rxrpc_send_ACK(), was removed by commit 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint is no longer reached by any caller.

Quoted 8 lines
Quoted 6 lines

Removing this tracepoint avoids keeping unused tracing code and makes the code easier to maintain. Each defined tracepoint also takes up around 5K of code and data, even when it is never used.

Fixes 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work")

LGTM.

Temitope, this means that you are now free to resubmit the patch to the maintainers that you find with get_maintainer. There is no guarantee that the patch will be accepted by the end of the application period, but it should be accepted eventually.

julia