diff options
| author | Jakub Sitnicki <[email protected]> | 2020-07-17 10:35:34 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-18 03:18:17 +0000 |
| commit | 93a3545d812ae7cfe4426374e00a7d8f64ac02e0 (patch) | |
| tree | 9e72efeb489d50b2fa8bddd1f0316e5ef7495063 /tools/bpf/bpftool/common.c | |
| parent | libbpf: Add support for SK_LOOKUP program type (diff) | |
| download | kernel-93a3545d812ae7cfe4426374e00a7d8f64ac02e0.tar.gz kernel-93a3545d812ae7cfe4426374e00a7d8f64ac02e0.zip | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/common.c')
| -rw-r--r-- | tools/bpf/bpftool/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/common.c b/tools/bpf/bpftool/common.c index 29f4e7611ae8..9b28c69dd8e4 100644 --- a/tools/bpf/bpftool/common.c +++ b/tools/bpf/bpftool/common.c @@ -64,6 +64,7 @@ const char * const attach_type_name[__MAX_BPF_ATTACH_TYPE] = { [BPF_TRACE_FEXIT] = "fexit", [BPF_MODIFY_RETURN] = "mod_ret", [BPF_LSM_MAC] = "lsm_mac", + [BPF_SK_LOOKUP] = "sk_lookup", }; void p_err(const char *fmt, ...) |
