]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests
authorAndrii Nakryiko <andriin@fb.com>
Thu, 3 Sep 2020 20:35:40 +0000 (13:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Sep 2020 00:14:40 +0000 (17:14 -0700)
commitfab45be1d26e8c3cee62e09bcc39c149b175f848
treea2103758f982c28fe19134282041fd95ae5568de
parentd86687ae6b759a3ac3e2db63390cef6006144681
selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests

Add use of non-inlined subprogs to few bigger selftests to excercise libbpf's
bpf2bpf handling logic. Also split l4lb_all selftest into two sub-tests.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200903203542.15944-13-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c
tools/testing/selftests/bpf/prog_tests/l4lb_all.c
tools/testing/selftests/bpf/progs/pyperf.h
tools/testing/selftests/bpf/progs/pyperf_subprogs.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/strobemeta.h
tools/testing/selftests/bpf/progs/strobemeta_subprogs.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c