]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Add redirect tracepoint statistics support
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 Aug 2021 00:19:53 +0000 (05:49 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:48:40 +0000 (14:48 -0700)
commit342eb1c761f4b00c6d0110027a04f763d9988f40
tree06ac3ca25541b0c90b439bb4cfa4548b957022d4
parentc476b4d996811576e2b4c23b6ab397bce2506d15
samples: bpf: Add redirect tracepoint statistics support

This implements per-errno reporting (for the ones we explicitly
recognize), adds some help output, and implements the stats retrieval
and printing functions.

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-6-memxor@gmail.com
samples/bpf/xdp_sample_user.c
samples/bpf/xdp_sample_user.h