]> 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)
commitbdb48bceb729158ba7456b2a41ebb03ded38f08f
treeb5ce79a9ae71c9711784c00b70b3d5aa85fcc2b6
parent9edd1bab2aaeb2588cebef2892dc499570662624
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: 2621888d1d92 ("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