rxrpc: Remove unused rxrpc_drop_ack tracepoint
Subsystems (2)
PATCH 1/1 rxrpc: Remove unused rxrpc_drop_ack tracepoint
The only caller of trace_rxrpc_drop_ack() was removed by
commit 5e6ef4f1017c ("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint has had no users since, so remove its definition.
Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.
---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built net/rxrpc with CONFIG_AF_RXRPC=m.
include/trace/events/rxrpc.h | 29 ----------------------------- 1 file changed, 29 deletions(-)
include/trace/events/rxrpc.h +0 -29
@@ -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
Tracepoint project: starting rxrpc_drop_ack
Hello,
I am starting on the unused tracepoint rxrpc_drop_ack in include/trace/events/rxrpc.h. Its only caller was removed in commit 5e6ef4f1017c. I searched lore and found no recent patch removing it.
Temitope
Quoted 5 lines · Temitope obabi
The only caller of
trace_rxrpc_drop_ack()was removed by
commit5e6ef4f1017c("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint has had no users since, so remove its definition.Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.
It is not clear what "it" refers to. Tracepoints is plural, so it can't be that.
Also, a question for Steven, is the 5K just the code size or is the concern that data is allocated at runtime as well, even if the tracepoint is not used?
Quoted 3 lines
Signed-off-by Temitope obabi <[email protected]>---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built net/rxrpc withCONFIG_AF_RXRPC=m.
This seems to say that you used AI to find that there are no callers of the tracepoint. Was that really necessary?
julia
Quoted 49 lines
include/trace/events/rxrpc.h | 29 ----------------------------- 1 file changed, 29 deletions(-)include/trace/events/rxrpc.h +0
-30@@ -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, --2.53.0
Thanks for the feedback!
Quoted 76 lines · Julia Lawall
Quoted 5 lines · Temitope obabi
The only caller of
trace_rxrpc_drop_ack()was removed by
commit5e6ef4f1017c("rxrpc: Make the I/O thread take over the call and local processor work"). The tracepoint has had no users since, so remove its definition.Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.
It is not clear what "it" refers to. Tracepoints is plural, so it can't be that.
Also, a question for Steven, is the 5K just the code size or is the concern that data is allocated at runtime as well, even if the tracepoint is not used?
Quoted 3 lines
Signed-off-by Temitope obabi <[email protected]>---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built net/rxrpc withCONFIG_AF_RXRPC=m.This seems to say that you used AI to find that there are no callers of the tracepoint. Was that really necessary?
julia
Quoted 49 lines
include/trace/events/rxrpc.h | 29 ----------------------------- 1 file changed, 29 deletions(-)include/trace/events/rxrpc.h +0
-30@@ -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, --2.53.0
Steven Rostedt
maintainerQuoted 4 lines · On Mon, 2 Nov 2026 10:58:11 +0100 (CET) Julia Lawall <[email protected]>…
Quoted 2 lines · Temitope obabi
The only caller of
trace_rxrpc_drop_ack()was removed by
commit5e6ef4f1017c("rxrpc: Make the I/O thread take over the call and local processor work").
Note, this patch should probably contain a Fixes tag with the above. Also, line wrap the change log to at most 76 bytes. Naming a commit in the change log should still line wrap. Although, lines in a Fixes tag do not line wrap.
Quoted 10 lines
Quoted 3 lines
The tracepoint has had no users since, so remove its definition.
Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.
It is not clear what "it" refers to. Tracepoints is plural, so it can't be that.
Also, a question for Steven, is the 5K just the code size or is the concern that data is allocated at runtime as well, even if the tracepoint is not used?
It is a combination of code and data. It could be even more with allocated data for each tracepoint after boot. I just look at what gets placed in the text and data sections to get to the 5K. It's an approximate size, as each tracepoint has different amount of data they take up.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Temitope obabi <[email protected]>---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built net/rxrpc withCONFIG_AF_RXRPC=m.This seems to say that you used AI to find that there are no callers of the tracepoint. Was that really necessary?
Yeah. None of this work should require any use of AI. It's a learning process to know the kernel. AI would basically take away what you learn.
-- Steve