#undef TRACE_SYSTEM
#define TRACE_SYSTEM xdp

#if !defined(_TRACE_XDP_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_XDP_H

#include <linux/netdevice.h>
#include <linux/filter.h>
#include <linux/tracepoint.h>

#define __XDP_ACT_MAP(FN)	\
	FN(ABORTED)		\
	FN(DROP)		\
	FN(PASS)		\
	FN(TX)

#define __XDP_ACT_TP_FN(x)	\
	TRACE_DEFINE_ENUM(XDP_##x);
#define __XDP_ACT_SYM_FN(x)	\
	{ XDP_##x, #x },
#define __XDP_ACT_SYM_TAB	\
	__XDP_ACT_MAP(__XDP_ACT_SYM_FN) { -1, 0 }
__XDP_ACT_MAP(__XDP_ACT_TP_FN)

TRACE_EVENT(xdp_exception,

	TP_PROTO(const struct net_device *dev,
		 const struct bpf_prog *xdp, u32 act),

	TP_ARGS(dev, xdp, act),

	TP_STRUCT__entry(
		__string(name, dev->name)
		__array(u8, prog_tag, 8)
		__field(u32, act)
	),

	TP_fast_assign(
		BUILD_BUG_ON(sizeof(__entry->prog_tag) != sizeof(xdp->tag));
		memcpy(__entry->prog_tag, xdp->tag, sizeof(xdp->tag));
		__assign_str(name, dev->name);
		__entry->act = act;
	),

	TP_printk("prog=%s device=%s action=%s",
		  __print_hex_str(__entry->prog_tag, 8),
		  __get_str(name),
		  __print_symbolic(__entry->act, __XDP_ACT_SYM_TAB))
);

#endif /* _TRACE_XDP_H */

#include <trace/define_trace.h>
n>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/ui/gtk'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/ui/gtk?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/ui/gtk?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/ui/gtk?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/ui/gtk'>
<input type='hidden' name='id' value='fdace6c224e9fc0e81337b6fee3cfd136824c983'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/ui?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>ui</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/ui/gtk?id=fdace6c224e9fc0e81337b6fee3cfd136824c983'>gtk</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/ui/gtk?id=fdace6c224e9fc0e81337b6fee3cfd136824c983&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>