OSDN Git Service

selftests/bpf: Test for syscall program type
authorAlexei Starovoitov <ast@kernel.org>
Fri, 14 May 2021 00:36:07 +0000 (17:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 18 May 2021 22:33:40 +0000 (00:33 +0200)
commit00899e7e8d9d30142ccff4cebd80effca58396b7
tree4c0346ffc204e2157bce30609dc985d9ba5ef482
parent5452fc9a17fc26816a683ab04cf1c29131ca27e4
selftests/bpf: Test for syscall program type

bpf_prog_type_syscall is a program that creates a bpf map,
updates it, and loads another bpf program using bpf_sys_bpf() helper.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210514003623.28033-6-alexei.starovoitov@gmail.com
tools/testing/selftests/bpf/prog_tests/syscall.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/syscall.c [new file with mode: 0644]