]> 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)
commitf1e87f6cb018bd397476a42191b713df88fb65bd
tree32129d3eaa5e78b73c681d7947d382e786bac013
parent82effd7f546c9694477a051be22fe6d2eceb9f0f
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 1cb02fcf5bb2 ("ftrace: Add FTRACE_MCOUNT_MAX_OFFSET to avoid adding weak function")

Fixes: 1cb02fcf5bb2 ("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