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)
commit11d1e2eefffe86339b3b0b773bd31ef3b88faf7d
treec0879851d7812ff06cc4213f08f9b8176f54028c
parentfaeb2dce084aff92d466c6ce68481989b815435b
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]