]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Merge test_stub.c into testing_helpers.c
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 3 Nov 2021 22:08:43 +0000 (15:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 7 Nov 2021 16:34:23 +0000 (08:34 -0800)
commit182c0787c7db5688eb9f56e2cb7ae15979158893
tree2cfbb16f24c178803a18a3533a91050512b701c5
parent5b1962a5ba9ea533f21992e5b479fa28cd7c52a4
selftests/bpf: Merge test_stub.c into testing_helpers.c

Move testing prog and object load wrappers (bpf_prog_test_load and
bpf_test_load_program) into testing_helpers.{c,h} and get rid of
otherwise useless test_stub.c. Make testing_helpers.c available to
non-test_progs binaries as well.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/bpf/20211103220845.2676888-11-andrii@kernel.org
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_stub.c [deleted file]
tools/testing/selftests/bpf/testing_helpers.c
tools/testing/selftests/bpf/testing_helpers.h