Commit 315ec399 authored by Jesper Dangaard Brouer's avatar Jesper Dangaard Brouer Committed by David S. Miller

xdp: get tracepoints xdp_exception and xdp_redirect in sync

Remove the net_device string name from the xdp_exception tracepoint,
like the xdp_redirect tracepoint.

Align the TP_STRUCT to have common entries between these two
tracepoint.
Signed-off-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8735855
...@@ -31,22 +31,22 @@ TRACE_EVENT(xdp_exception, ...@@ -31,22 +31,22 @@ TRACE_EVENT(xdp_exception,
TP_ARGS(dev, xdp, act), TP_ARGS(dev, xdp, act),
TP_STRUCT__entry( TP_STRUCT__entry(
__string(name, dev->name)
__array(u8, prog_tag, 8) __array(u8, prog_tag, 8)
__field(u32, act) __field(u32, act)
__field(int, ifindex)
), ),
TP_fast_assign( TP_fast_assign(
BUILD_BUG_ON(sizeof(__entry->prog_tag) != sizeof(xdp->tag)); BUILD_BUG_ON(sizeof(__entry->prog_tag) != sizeof(xdp->tag));
memcpy(__entry->prog_tag, xdp->tag, sizeof(xdp->tag)); memcpy(__entry->prog_tag, xdp->tag, sizeof(xdp->tag));
__assign_str(name, dev->name);
__entry->act = act; __entry->act = act;
__entry->ifindex = dev->ifindex;
), ),
TP_printk("prog=%s device=%s action=%s", TP_printk("prog=%s action=%s ifindex=%d",
__print_hex_str(__entry->prog_tag, 8), __print_hex_str(__entry->prog_tag, 8),
__get_str(name), __print_symbolic(__entry->act, __XDP_ACT_SYM_TAB),
__print_symbolic(__entry->act, __XDP_ACT_SYM_TAB)) __entry->ifindex)
); );
TRACE_EVENT(xdp_redirect, TRACE_EVENT(xdp_redirect,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment