lkml.org 
[lkml]   [2022]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH bpf-next 0/3] bpf/bpftool: add program & link type names
Date
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)

Milan Landaverde (3):
bpf/bpftool: add syscall prog type
bpf/bpftool: add missing link types
bpf/bpftool: handle libbpf_probe_prog_type errors

tools/bpf/bpftool/feature.c | 2 +-
tools/bpf/bpftool/link.c | 2 ++
tools/bpf/bpftool/prog.c | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)

--
2.32.0

\
 
 \ /
  Last update: 2022-03-31 17:48    [W:0.090 / U:1.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site