]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitf87c1930ac2951d7fb3bacb523c24046c81015ed
tree2cfbb16f24c178803a18a3533a91050512b701c5
parentd8e86407e5fc6c3da1e336f89bd3e9bbc1c0cf60
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