mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
bpftool: Stop using deprecated bpf_load_program()
Switch to bpf_prog_load() instead. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211103220845.2676888-7-andrii@kernel.org
This commit is contained in:
parent
bcc40fc002
commit
a3c7c7e805
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ static bool probe_bpf_syscall(const char *define_prefix)
|
|||
{
|
||||
bool res;
|
||||
|
||||
bpf_load_program(BPF_PROG_TYPE_UNSPEC, NULL, 0, NULL, 0, NULL, 0);
|
||||
bpf_prog_load(BPF_PROG_TYPE_UNSPEC, NULL, NULL, NULL, 0, NULL);
|
||||
res = (errno != ENOSYS);
|
||||
|
||||
print_bool_feature("have_bpf_syscall",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue