selftests/bpf: Add selftest for multi-prog sections and bpf-to-bpf calls
authorAndrii Nakryiko <andriin@fb.com>
Thu, 3 Sep 2020 20:35:35 +0000 (13:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Sep 2020 00:14:40 +0000 (17:14 -0700)
commita08c02f8d4ae50527b9f26a7147686ed55c93782
treedc9b1b070ee620af3f648f543e568e865545ce89
parent7e06aad52929d17610f28acd40dd10ed62295f85
selftests/bpf: Add selftest for multi-prog sections and bpf-to-bpf calls

Add a selftest excercising bpf-to-bpf subprogram calls, as well as multiple
entry-point BPF programs per section. Also make sure that BPF CO-RE works for
such set ups both for sub-programs and for multi-entry sections.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200903203542.15944-8-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/subprogs.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_subprogs.c [new file with mode: 0644]