]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c
authorMenglong Dong <menglong8.dong@gmail.com>
Thu, 4 Sep 2025 02:10:09 +0000 (10:10 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Sep 2025 16:00:25 +0000 (09:00 -0700)
commit8bad31edf5490a38dc26163502cd7005a033ee05
treef5a5610d4c626c3af861f9c752837ad9b05af5c5
parentc9110e6f7237f4a314e2b87b75a8a158b9877a7b
selftests/bpf: move get_ksyms and get_addrs to trace_helpers.c

We need to get all the kernel function that can be traced sometimes, so we
move the get_syms() and get_addrs() in kprobe_multi_test.c to
trace_helpers.c and rename it to bpf_get_ksyms() and bpf_get_addrs().

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20250904021011.14069-2-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
tools/testing/selftests/bpf/trace_helpers.c
tools/testing/selftests/bpf/trace_helpers.h