tools/bpftool: Add name mappings for SK_LOOKUP prog and attach type
authorJakub Sitnicki <jakub@cloudflare.com>
Fri, 17 Jul 2020 10:35:34 +0000 (12:35 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 18 Jul 2020 03:18:17 +0000 (20:18 -0700)
commit93a3545d812ae7cfe4426374e00a7d8f64ac02e0
tree9e72efeb489d50b2fa8bddd1f0316e5ef7495063
parent499dd29d90bb78d4ac4f0d6648e26f4a339829b1
tools/bpftool: Add name mappings for SK_LOOKUP prog and attach type

Make bpftool show human-friendly identifiers for newly introduced program
and attach type, BPF_PROG_TYPE_SK_LOOKUP and BPF_SK_LOOKUP, respectively.

Also, add the new prog type bash-completion, man page and help message.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200717103536.397595-14-jakub@cloudflare.com
tools/bpf/bpftool/Documentation/bpftool-prog.rst
tools/bpf/bpftool/bash-completion/bpftool
tools/bpf/bpftool/common.c
tools/bpf/bpftool/prog.c