]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd447b91b76844de6e891d581121d236a2bb19419
tree534a13d97e1dcd5ff32b64e221984193555926a8
parentc0ac52d50fac9affa7d01dd07acb882f29cd2c36
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