xdp: tracing: Hide some xdp events under CONFIG_BPF_SYSCALL
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 12 Jun 2025 22:20:23 +0000 (18:20 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Jun 2025 02:36:53 +0000 (19:36 -0700)
commit16f3c7ad887c1f8fd698ab568b5851cadb65b5a8
tree52b5d7836f1205f047844a95d28c484eb550f927
parenta9a5f41b04dd137a353d4d1d6fc7d6e80aaad193
xdp: tracing: Hide some xdp events under CONFIG_BPF_SYSCALL

The events xdp_cpumap_kthread, xdp_cpumap_enqueue and xdp_devmap_xmit are
only called when CONFIG_BPF_SYSCALL 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.

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20250612182023.78397b76@batman.local.home
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/trace/events/xdp.h