]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7b7d33db7db69f2dca1008da41e3e6d8f1a762f
tree11c70ba9f2093a55625d8d6b30329c0a2c67c6c1
parentf5ef0621a35aa085d88c4be66dbdbabd503bbfdf
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