diff options
author | 2023-03-17 13:19:20 -0700 | |
---|---|---|
committer | 2023-03-17 15:46:02 -0700 | |
commit | 95fdf6e313a981b0729886f86916190cb418b04c (patch) | |
tree | dd3fb68a821169c52d13421de0ba528db0ce70ba /net/core | |
parent | libbpf: Introduce bpf_ksym_exists() macro. (diff) | |
download | wireguard-linux-95fdf6e313a981b0729886f86916190cb418b04c.tar.xz wireguard-linux-95fdf6e313a981b0729886f86916190cb418b04c.zip |
selftests/bpf: Add test for bpf_ksym_exists().
Add load and run time test for bpf_ksym_exists() and check that the verifier
performs dead code elimination for non-existing kfunc.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20230317201920.62030-5-alexei.starovoitov@gmail.com
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions