]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add test for BPF trampoline
authorAlexei Starovoitov <ast@kernel.org>
Thu, 14 Nov 2019 18:57:09 +0000 (10:57 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Nov 2019 22:43:15 +0000 (23:43 +0100)
commita855eb43ca02215d9b77b67643f10a3ccd2e7c62
treec0879851d7812ff06cc4213f08f9b8176f54028c
parentd5e132478aad3bb8c46bedb351876e48dc9bf737
selftests/bpf: Add test for BPF trampoline

Add sanity test for BPF trampoline that checks kernel functions
with up to 6 arguments of different sizes.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20191114185720.1641606-10-ast@kernel.org
tools/lib/bpf/bpf_helpers.h
tools/testing/selftests/bpf/prog_tests/fentry_test.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fentry_test.c [new file with mode: 0644]