]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/tcp_ao: tracing: Hide tcp_ao events under CONFIG_TCP_AO
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 12 Jun 2025 13:46:16 +0000 (09:46 -0400)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Jun 2025 21:58:28 +0000 (14:58 -0700)
Several of the tcp_ao events are only called when CONFIG_TCP_AO is
defined. As each event can take up to 5K regardless if they are used or
not, it's best not to define them when they are not used. Add #ifdef
around these events when they are not used.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250612094616.4222daf0@batman.local.home
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/trace/events/tcp.h

index 95f59c1a6f57abe9367793a45116bcdfaeb001b4..54e60c6009e3b4715a517c5ced8ab1692f90eafd 100644 (file)
@@ -692,6 +692,7 @@ DEFINE_EVENT(tcp_ao_event, tcp_ao_handshake_failure,
        TP_ARGS(sk, skb, keyid, rnext, maclen)
 );
 
+#ifdef CONFIG_TCP_AO
 DEFINE_EVENT(tcp_ao_event, tcp_ao_wrong_maclen,
        TP_PROTO(const struct sock *sk, const struct sk_buff *skb,
                 const __u8 keyid, const __u8 rnext, const __u8 maclen),
@@ -830,6 +831,7 @@ DEFINE_EVENT(tcp_ao_event_sne, tcp_ao_rcv_sne_update,
        TP_PROTO(const struct sock *sk, __u32 new_sne),
        TP_ARGS(sk, new_sne)
 );
+#endif /* CONFIG_TCP_AO */
 
 #endif /* _TRACE_TCP_H */