Skip to contentSkip to conversation

sunrpc: Remove unused rpc_socket_reset_connection tracepoint

PATCH In review Maria Sheikh 2 participants 2 messages Nov 8

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

PATCH 1/1 sunrpc: Remove unused rpc_socket_reset_connection tracepoint

Tracepoint definitions consume kernel memory even when they are not used. The rpc_socket_reset_connection tracepoint has had no callers since commit 4efdd92c9211 ("SUNRPC: Remove TCP client connection reset hack") removed the code that used it, but its definition was left behind.
Remove unused definition. This reduces the size of sunrpc.ko by 628 bytes.

Fixes 4efdd92c9211 ("SUNRPC: Remove TCP client connection reset hack")
---
 include/trace/events/sunrpc.h | 1 -
 1 file changed, 1 deletion(-)
include/trace/events/sunrpc.h +0 -1
index ff855197880d..a0d02d735a7c 100644
@@ -950,7 +950,6 @@ DECLARE_EVENT_CLASS(xs_socket_event_done,
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_state_change);
 DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_connect);
 DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_error);
-DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_reset_connection);
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_close);
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_shutdown);
 
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Maria Sheikh

Tracepoint definitions consume kernel memory even when they are not used. The rpc_socket_reset_connection tracepoint has had no callers since commit 4efdd92c9211 ("SUNRPC: Remove TCP client connection reset hack") removed the code that used it, but its definition was left behind.
Remove unused definition. This reduces the size of sunrpc.ko by 628 bytes.

Fixes 4efdd92c9211 ("SUNRPC: Remove TCP client connection reset hack")
---
 include/trace/events/sunrpc.h | 1 -
 1 file changed, 1 deletion(-)
include/trace/events/sunrpc.h +0 -0
index ff855197880d..a0d02d735a7c 100644

include/trace/events/sunrpc.h DECLARE_EVENT_CLASS(xs_socket_event_done, · line 955

Quoted 7 lines
include/trace/events/sunrpc.h +0 -1
@@ -950,7 +950,6 @@ DECLARE_EVENT_CLASS(xs_socket_event_done,
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_state_change);
 DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_connect);
 DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_error);
-DEFINE_RPC_SOCKET_EVENT_DONE(rpc_socket_reset_connection);
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_close);
 DEFINE_RPC_SOCKET_EVENT(rpc_socket_shutdown);