Home
last modified time | relevance | path

Searched refs:prog_btf (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/bpf/bpftool/
Dcommon.c339 struct btf *prog_btf = NULL; in get_prog_full_name() local
357 prog_btf = btf__load_from_kernel_by_id(info.btf_id); in get_prog_full_name()
358 if (!prog_btf) in get_prog_full_name()
361 func_type = btf__type_by_id(prog_btf, finfo.type_id); in get_prog_full_name()
365 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in get_prog_full_name()
370 if (prog_btf) in get_prog_full_name()
371 btf__free(prog_btf); in get_prog_full_name()
Dbtf_dumper.c40 struct btf *prog_btf = NULL; in dump_prog_id_as_func_ptr() local
77 prog_btf = btf__load_from_kernel_by_id(info.btf_id); in dump_prog_id_as_func_ptr()
78 if (libbpf_get_error(prog_btf)) in dump_prog_id_as_func_ptr()
80 func_type = btf__type_by_id(prog_btf, finfo.type_id); in dump_prog_id_as_func_ptr()
84 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in dump_prog_id_as_func_ptr()
101 btf__free(prog_btf); in dump_prog_id_as_func_ptr()