bpf: Add kernel test functions for fentry testing
authorAlexei Starovoitov <ast@kernel.org>
Thu, 14 Nov 2019 18:57:08 +0000 (10:57 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Nov 2019 22:43:01 +0000 (23:43 +0100)
commitfaeb2dce084aff92d466c6ce68481989b815435b
treef9ee80180d03b1ebfb48142df6290336516da5d9
parente41074d39d71aa62a6ec557af09cd42ca0928e05
bpf: Add kernel test functions for fentry testing

Add few kernel functions with various number of arguments,
their types and sizes for BPF trampoline testing to cover
different calling conventions.

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-9-ast@kernel.org
net/bpf/test_run.c