]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cdd0ac4f7a0a70ed6f9746c6585f36db4e39a98
treef3bae93c6282543cd0bb93b0f2a3b003f0c5c196
parente1b40611c23a006cd1f3b699ccdd1ac4eb9499f1
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