Lines Matching refs:btf
222 struct btf *btf; member
789 obj->btf = btf__new(data->d_buf, data->d_size, in bpf_object__elf_collect()
791 if (IS_ERR(obj->btf)) { in bpf_object__elf_collect()
793 BTF_ELF_SEC, PTR_ERR(obj->btf)); in bpf_object__elf_collect()
794 obj->btf = NULL; in bpf_object__elf_collect()
986 static int bpf_map_find_btf_info(struct bpf_map *map, const struct btf *btf) in bpf_map_find_btf_info() argument
1003 container_id = btf__find_by_name(btf, container_name); in bpf_map_find_btf_info()
1010 container_type = btf__type_by_id(btf, container_id); in bpf_map_find_btf_info()
1027 key_size = btf__resolve_size(btf, key->type); in bpf_map_find_btf_info()
1040 value_size = btf__resolve_size(btf, value->type); in bpf_map_find_btf_info()
1135 if (obj->btf && !bpf_map_find_btf_info(map, obj->btf)) { in bpf_object__create_maps()
1136 create_attr.btf_fd = btf__fd(obj->btf); in bpf_object__create_maps()
1847 btf__free(obj->btf); in bpf_object__close()
1901 return obj->btf ? btf__fd(obj->btf) : -1; in bpf_object__btf_fd()