Home
last modified time | relevance | path

Searched refs:btf_vmlinux (Results 1 – 4 of 4) sorted by relevance

/tools/bpf/bpftool/
A Dcgroup.c74 static struct btf *btf_vmlinux; variable
152 if (btf_vmlinux) { in show_bpf_prog()
157 info.attach_btf_id < btf__type_cnt(btf_vmlinux)) { in show_bpf_prog()
159 btf__type_by_id(btf_vmlinux, info.attach_btf_id); in show_bpf_prog()
161 btf__name_by_offset(btf_vmlinux, t->name_off); in show_bpf_prog()
372 btf_vmlinux = libbpf_find_kernel_btf(); in do_show()
436 btf_vmlinux = libbpf_find_kernel_btf(); in do_show_tree_fn()
A Dstruct_ops.c21 static struct btf *btf_vmlinux; variable
31 if (btf_vmlinux) in get_btf_vmlinux()
32 return btf_vmlinux; in get_btf_vmlinux()
34 btf_vmlinux = libbpf_find_kernel_btf(); in get_btf_vmlinux()
35 if (!btf_vmlinux) in get_btf_vmlinux()
38 return btf_vmlinux; in get_btf_vmlinux()
645 btf__free(btf_vmlinux); in do_struct_ops()
A Dmap.c791 static struct btf *btf_vmlinux; variable
798 if (!btf_vmlinux) { in get_map_kv_btf()
799 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf()
800 if (!btf_vmlinux) { in get_map_kv_btf()
805 *btf = btf_vmlinux; in get_map_kv_btf()
821 if (btf != btf_vmlinux) in free_map_kv_btf()
961 btf__free(btf_vmlinux); in do_dump()
/tools/lib/bpf/
A Dlibbpf.c714 struct btf *btf_vmlinux; member
3504 if (obj->btf_vmlinux || obj->gen_loader) in bpf_object__load_vmlinux_btf()
3510 obj->btf_vmlinux = btf__load_vmlinux_btf(); in bpf_object__load_vmlinux_btf()
3511 err = libbpf_get_error(obj->btf_vmlinux); in bpf_object__load_vmlinux_btf()
3514 obj->btf_vmlinux = NULL; in bpf_object__load_vmlinux_btf()
5791 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands()
8235 btf = obj->btf_vmlinux; in find_ksym_btf_id()
8593 btf__free(obj->btf_vmlinux); in bpf_object_post_load_cleanup()
8594 obj->btf_vmlinux = NULL; in bpf_object_post_load_cleanup()
9145 btf__free(obj->btf_vmlinux); in bpf_object__close()
[all …]

Completed in 33 milliseconds