]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpftool: Add syscall prog type
authorMilan Landaverde <milan@mdaverde.com>
Thu, 31 Mar 2022 15:45:53 +0000 (11:45 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 4 Apr 2022 21:52:54 +0000 (14:52 -0700)
commit380341637ebb41f56031a0fd0779e85413a1da59
tree68b979b3342ab7158366a2638910ecb8e5eace73
parent4eeebce6ac4ad80ee8243bb847c98e0e55848d47
bpftool: Add syscall prog type

In addition to displaying the program type in bpftool prog show
this enables us to be able to query bpf_prog_type_syscall
availability through feature probe as well as see
which helpers are available in those programs (such as
bpf_sys_bpf and bpf_sys_close)

Signed-off-by: Milan Landaverde <milan@mdaverde.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220331154555.422506-2-milan@mdaverde.com
tools/bpf/bpftool/prog.c