]> 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)
commit55745b9f006fd99c9052f99c8634148f16d7aa93
treef3bae93c6282543cd0bb93b0f2a3b003f0c5c196
parentee71a1875797875b02e82ab27ec7f9eb6ae82182
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