xdp: Remove unused events xdp_redirect_map and xdp_redirect_map_err
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 11 Jun 2025 19:56:15 +0000 (15:56 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Jun 2025 02:35:43 +0000 (19:35 -0700)
commita9a5f41b04dd137a353d4d1d6fc7d6e80aaad193
treee44e3e0f70ad97bb8b8471deca16b4ee6e463cda
parent7f12c33850482521c961c5c15a50ebe9b9a88d1e
xdp: Remove unused events xdp_redirect_map and xdp_redirect_map_err

Each TRACE_EVENT() defined can take up around 5K of text and meta data
regardless if they are used or not. New code is being developed that will
warn when a tracepoint is defined but not used.

The trace events xdp_redirect_map and xdp_redirect_map_err are defined but
not used, but there's also a comment that states these are kept around for
backward compatibility. Which is interesting because since they are not
used, any old BPF program that expects them to exist will get incorrect
data (no data) when they use them. It's worse than not working, it's
silently failing.

Remove them as they will soon cause warnings, or if they really need to
stick around, then code needs to be added to use them.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Toke Høiland-Jørgensen <toke@kernel.org>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Link: https://lore.kernel.org/r/20250611155615.0c2cf61c@batman.local.home
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/trace/events/xdp.h