samples: bpf: Add BPF support for xdp_exception tracepoint
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 Aug 2021 00:19:54 +0000 (05:49 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:48:40 +0000 (14:48 -0700)
commit451588764e2f3e3ab197b23c7958f750707e2a24
tree11c70ba9f2093a55625d8d6b30329c0a2c67c6c1
parent1d930fd2cdbf5e156c32c73ea7f3d5b12bdc41d7
samples: bpf: Add BPF support for xdp_exception tracepoint

This would allow us to store stats for each XDP action, including their
per-CPU counts. Consolidating this here allows all redirect samples to
detect xdp_exception events.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210821002010.845777-7-memxor@gmail.com
samples/bpf/xdp_sample.bpf.c