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)
commit1d930fd2cdbf5e156c32c73ea7f3d5b12bdc41d7
tree06ac3ca25541b0c90b439bb4cfa4548b957022d4
parent323140389405e5d5d2020b2e3e04863d12cf3e32
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