selftests/bpf: Enforce returning 0 for fentry/fexit programs
authorYonghong Song <yhs@fb.com>
Thu, 14 May 2020 05:32:07 +0000 (22:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 14 May 2020 19:53:53 +0000 (12:53 -0700)
commit6d74f64b922b8394dccc52576659cb0dc0a1da7b
treeb5ce79a9ae71c9711784c00b70b3d5aa85fcc2b6
parente92888c72fbdc6f9d07b3b0604c012e81d7c0da7
selftests/bpf: Enforce returning 0 for fentry/fexit programs

There are a few fentry/fexit programs returning non-0.
The tests with these programs will break with the previous
patch which enfoced return-0 rules. Fix them properly.

Fixes: ac065870d928 ("selftests/bpf: Add BPF_PROG, BPF_KPROBE, and BPF_KRETPROBE macros")
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200514053207.1298479-1-yhs@fb.com
tools/testing/selftests/bpf/progs/test_overhead.c