Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/tcp_ao: tracing: Hide tcp_ao events under CONFIG_TCP_AO

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>

authored by

Steven Rostedt and committed by
Jakub Kicinski
3cfbde04 8909f5f4

+2
+2
include/trace/events/tcp.h
··· 692 692 TP_ARGS(sk, skb, keyid, rnext, maclen) 693 693 ); 694 694 695 + #ifdef CONFIG_TCP_AO 695 696 DEFINE_EVENT(tcp_ao_event, tcp_ao_wrong_maclen, 696 697 TP_PROTO(const struct sock *sk, const struct sk_buff *skb, 697 698 const __u8 keyid, const __u8 rnext, const __u8 maclen), ··· 831 830 TP_PROTO(const struct sock *sk, __u32 new_sne), 832 831 TP_ARGS(sk, new_sne) 833 832 ); 833 + #endif /* CONFIG_TCP_AO */ 834 834 835 835 #endif /* _TRACE_TCP_H */ 836 836