selftests/bpf: Add {load,search}_kallsyms_custom_local()
authorYonghong Song <yonghong.song@linux.dev>
Tue, 26 Mar 2024 04:15:13 +0000 (21:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:31:41 +0000 (18:31 -0700)
commitd1f02581059e42d8daf944aae2a296254cc7a5d5
treef922a82d4fd55aca85b68c3b69c53468a05221a3
parent9475dacb75e0b5efae086dc904f4d27c31f15157
selftests/bpf: Add {load,search}_kallsyms_custom_local()

These two functions allow selftests to do loading/searching
kallsyms based on their specific compare functions.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240326041513.1199440-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