aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2021-05-13 17:36:11 -0700
committerDaniel Borkmann <[email protected]>2021-05-19 00:33:40 +0200
commit3d78417b60fba249cc555468cb72d96f5cde2964 (patch)
treec61b6a262c43b125b25c3601be7285f51df5a91f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent387544bfa291a22383d60b40f887360e2b931ec6 (diff)
bpf: Add bpf_btf_find_by_name_kind() helper.
Add new helper: long bpf_btf_find_by_name_kind(char *name, int name_sz, u32 kind, int flags) Description Find BTF type with given name and kind in vmlinux BTF or in module's BTFs. Return Returns btf_id and btf_obj_fd in lower and upper 32 bits. It will be used by loader program to find btf_id to attach the program to and to find btf_ids of ksyms. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions