]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84d63f9b0c82df32d549c85eefe00e8ff59871c6
treeb5ce79a9ae71c9711784c00b70b3d5aa85fcc2b6
parentcd440edfd5fc9590786c96968fb79c3eb9ca9a0c
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: 8e3522d1c61e ("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