selftests/bpf: Refactor trace helper func load_kallsyms_local()
authorYonghong Song <yonghong.song@linux.dev>
Tue, 26 Mar 2024 04:15:08 +0000 (21:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:31:41 +0000 (18:31 -0700)
commit9475dacb75e0b5efae086dc904f4d27c31f15157
tree134bb369d3b7db7ce1d8b226a2fdee42a09d21b3
parentd1320649346c36c5ba7b579533bf518960ef71e1
selftests/bpf: Refactor trace helper func load_kallsyms_local()

Refactor trace helper function load_kallsyms_local() such that
it invokes a common function with a compare function as input.
The common function will be used later for other local functions.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240326041508.1199239-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/trace_helpers.c
tools/testing/selftests/bpf/trace_helpers.h