selftests/bpf: Add a fexit/bpf2bpf test with target bpf prog no callees
authorYonghong Song <yhs@fb.com>
Thu, 5 Dec 2019 01:06:07 +0000 (17:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 5 Dec 2019 05:34:42 +0000 (21:34 -0800)
commit8f9081c92523328aa569d09051add79a6c0ae9ff
tree5cd0f621eb5b96126bf31cc8fec67a49d14e8e51
parente9eeec58c992c47b394e4f829e4f81b923b0a322
selftests/bpf: Add a fexit/bpf2bpf test with target bpf prog no callees

The existing fexit_bpf2bpf test covers the target progrm with callees.
This patch added a test for the target program without callees.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191205010607.177904-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
tools/testing/selftests/bpf/progs/fexit_bpf2bpf_simple.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_pkt_md_access.c