diff options
author | 2022-08-13 08:09:36 +0800 | |
---|---|---|
committer | 2022-08-15 14:58:20 -0700 | |
commit | 1f235777c3a4ab115162fe7d45b82be534b9ae2e (patch) | |
tree | 196acb4b85b5a7cd2ba7f4e70e746b0f4e79f655 /tools/lib/bpf/libbpf.h | |
parent | selftests/bpf: Update CI kconfig (diff) | |
download | wireguard-linux-1f235777c3a4ab115162fe7d45b82be534b9ae2e.tar.xz wireguard-linux-1f235777c3a4ab115162fe7d45b82be534b9ae2e.zip |
libbpf: Making bpf_prog_load() ignore name if kernel doesn't support
Similar with commit 10b62d6a38f7 ("libbpf: Add names for auxiliary maps"),
let's make bpf_prog_load() also ignore name if kernel doesn't support
program name.
To achieve this, we need to call sys_bpf_prog_load() directly in
probe_kern_prog_name() to avoid circular dependency. sys_bpf_prog_load()
also need to be exported in the libbpf_internal.h file.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220813000936.6464-1-liuhangbin@gmail.com
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
0 files changed, 0 insertions, 0 deletions