diff options
author | 2021-03-24 18:52:14 -0700 | |
---|---|---|
committer | 2021-03-26 20:41:51 -0700 | |
commit | 774e132e83d0f10a7ebbfe7db1debdaed6013f83 (patch) | |
tree | 7221ed70d189d87b1c69071edb4402416060eb5c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | libbpf: Refactor bpf_object__resolve_ksyms_btf_id (diff) | |
download | wireguard-linux-774e132e83d0f10a7ebbfe7db1debdaed6013f83.tar.xz wireguard-linux-774e132e83d0f10a7ebbfe7db1debdaed6013f83.zip |
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/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions