]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2745cf1a9e6284e060209e7eb8326fbe9a12ecc
tree4c0346ffc204e2157bce30609dc985d9ba5ef482
parent23810f8aa24eb2ff938790868ee76945bfa99b4f
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]