]> git.baikalelectronics.ru Git - kernel.git/commit
selftest/bpf: Fix kprobe_multi bench test
authorJiri Olsa <jolsa@kernel.org>
Wed, 15 Jun 2022 11:21:18 +0000 (13:21 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:42:21 +0000 (19:42 -0700)
commit92f940a2484fcdff1713461529d884b2cf86700e
tree32129d3eaa5e78b73c681d7947d382e786bac013
parentede25e3f799c3d6c0d1494e9abe01c1237c35826
selftest/bpf: Fix kprobe_multi bench test

With [1] the available_filter_functions file contains records
starting with __ftrace_invalid_address___ and marking disabled
entries.

We need to filter them out for the bench test to pass only
resolvable symbols to kernel.

[1] commit 002912db22d2 ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function")

Fixes: 002912db22d2 ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220615112118.497303-5-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c