On 11/3/21 6:08 PM, Andrii Nakryiko wrote: > 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@xxxxxxxxxx> > --- Acked-by: Dave Marchevsky <davemarchevsky@xxxxxx> > tools/testing/selftests/bpf/Makefile | 33 +++++------ > tools/testing/selftests/bpf/test_stub.c | 44 --------------- > tools/testing/selftests/bpf/testing_helpers.c | 55 +++++++++++++++++++ > tools/testing/selftests/bpf/testing_helpers.h | 6 ++ > 4 files changed, 78 insertions(+), 60 deletions(-) > delete mode 100644 tools/testing/selftests/bpf/test_stub.c [...]