Skip to content

Commit 3803416

Browse files
mdaverdeanakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 4eeebce commit 3803416

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/bpf/bpftool/prog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const char * const prog_type_name[] = {
6868
[BPF_PROG_TYPE_EXT] = "ext",
6969
[BPF_PROG_TYPE_LSM] = "lsm",
7070
[BPF_PROG_TYPE_SK_LOOKUP] = "sk_lookup",
71+
[BPF_PROG_TYPE_SYSCALL] = "syscall",
7172
};
7273

7374
const size_t prog_type_name_size = ARRAY_SIZE(prog_type_name);

0 commit comments

Comments
 (0)