diff options
author | Martin KaFai Lau <kafai@fb.com> | 2021-03-24 18:52:14 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-03-26 20:41:51 -0700 |
commit | 774e132e83d0f10a7ebbfe7db1debdaed6013f83 (patch) | |
tree | 7221ed70d189d87b1c69071edb4402416060eb5c /tools/testing/selftests/bpf/progs/kfunc_call_test_subprog.c | |
parent | 933d1aa32409ef4209c8065ee4ede68236659cd2 (diff) | |
download | linux-774e132e83d0f10a7ebbfe7db1debdaed6013f83.tar.bz2 |
libbpf: Refactor codes for finding btf id of a kernel symbol
This patch refactors code, that finds kernel btf_id by kind
and symbol name, to a new function find_ksym_btf_id().
It also adds a new helper __btf_kind_str() to return
a string by the numeric kind value.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210325015214.1547069-1-kafai@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/kfunc_call_test_subprog.c')
0 files changed, 0 insertions, 0 deletions