OSDN Git Service

selftests/bpf: Fix kprobe_multi test.
authorAlexei Starovoitov <ast@kernel.org>
Tue, 22 Mar 2022 04:54:19 +0000 (21:54 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 22 Mar 2022 18:09:13 +0000 (11:09 -0700)
commit7f0059b58f0257d895fafd2f2e3afe3bbdf21e64
treef3bae93c6282543cd0bb93b0f2a3b003f0c5c196
parent4e8ca13440b4b84873da44871f8824a12381d16b
selftests/bpf: Fix kprobe_multi test.

When compiler emits endbr insn the function address could
be different than what bpf_get_func_ip() reports.
This is a short term workaround.
bpf_get_func_ip() will be fixed later.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/kprobe_multi.c