OSDN Git Service

selftests/bpf: Use non-autoloaded programs in few tests
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 19 Apr 2022 00:24:51 +0000 (17:24 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Apr 2022 20:48:20 +0000 (13:48 -0700)
commit0d7fefebea552771b17682a12330ea47e369a5df
tree534a13d97e1dcd5ff32b64e221984193555926a8
parenta3820c48111247f4ec2ca2949597f8fa57d2c424
selftests/bpf: Use non-autoloaded programs in few tests

Take advantage of new libbpf feature for declarative non-autoloaded BPF
program SEC() definitions in few test that test single program at a time
out of many available programs within the single BPF object.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220419002452.632125-2-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/helper_restricted.c
tools/testing/selftests/bpf/prog_tests/reference_tracking.c
tools/testing/selftests/bpf/prog_tests/test_strncmp.c
tools/testing/selftests/bpf/progs/strncmp_test.c
tools/testing/selftests/bpf/progs/test_helper_restricted.c
tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c