selftests/bpf: add bpf_call test
authorAlexei Starovoitov <ast@fb.com>
Fri, 15 Dec 2017 01:55:11 +0000 (17:55 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 17 Dec 2017 19:34:36 +0000 (20:34 +0100)
commit3bc35c63cb70466c78d3972ceaf8205aa463a192
tree0ff4d6d6f950bdd224a919a02c6a2cbd7ad282dd
parent48cca7e44f9f8268fdcd4351e2f19ff2275119d1
selftests/bpf: add bpf_call test

strip always_inline from test_l4lb.c and compile it with -fno-inline
to let verifier go through 11 function with various function arguments
and return values

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_l4lb_noinline.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_progs.c