diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-04-04 14:51:48 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-04-04 14:54:47 -0700 |
commit | 7224a0737c46cb7a385dc75f1c2e1c8e783e8adb (patch) | |
tree | f5030cb3f1d70742988ea80625f702f1aead24cd /tools/bpf/bpftool/prog.c | |
parent | 4eeebce6ac4ad80ee8243bb847c98e0e55848d47 (diff) | |
parent | 7b53eaa656c34d5b521e245cbfc3aee2d7b89eac (diff) |
Merge branch 'bpf/bpftool: add program & link type names'
Milan Landaverde says:
====================
With the addition of the syscall prog type we should now
be able to see feature probe info for that prog type:
$ bpftool feature probe kernel
...
eBPF program_type syscall is available
...
eBPF helpers supported for program type syscall:
...
- bpf_sys_bpf
- bpf_sys_close
And for the link types, their names should aid in
the output.
Before:
$ bpftool link show
50: type 7 prog 5042
bpf_cookie 0
pids vfsstat(394433)
After:
$ bpftool link show
57: perf_event prog 5058
bpf_cookie 0
pids vfsstat(394725)
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
-rw-r--r-- | tools/bpf/bpftool/prog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index bc4e05542c2b..8643b37d4e43 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c @@ -68,6 +68,7 @@ const char * const prog_type_name[] = { [BPF_PROG_TYPE_EXT] = "ext", [BPF_PROG_TYPE_LSM] = "lsm", [BPF_PROG_TYPE_SK_LOOKUP] = "sk_lookup", + [BPF_PROG_TYPE_SYSCALL] = "syscall", }; const size_t prog_type_name_size = ARRAY_SIZE(prog_type_name); |