Searched refs:btf_vmlinux (Results 1 – 7 of 7) sorted by relevance
/linux-6.14.4/tools/bpf/bpftool/ |
D | struct_ops.c | 21 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()
|
D | cgroup.c | 74 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()
|
D | map.c | 788 static struct btf *btf_vmlinux; variable 795 if (!btf_vmlinux) { in get_map_kv_btf() 796 btf_vmlinux = libbpf_find_kernel_btf(); in get_map_kv_btf() 797 if (!btf_vmlinux) { in get_map_kv_btf() 802 *btf = btf_vmlinux; in get_map_kv_btf() 818 if (btf != btf_vmlinux) in free_map_kv_btf() 958 btf__free(btf_vmlinux); in do_dump()
|
/linux-6.14.4/kernel/bpf/ |
D | bpf_struct_ops.c | 87 extern struct btf *btf_vmlinux; 105 common_value_type = btf_type_by_id(btf_vmlinux, in is_valid_value_type() 713 module_type = btf_type_by_id(btf_vmlinux, st_ops_ids[IDX_MODULE_ID]); in bpf_struct_ops_map_update_elem()
|
D | verifier.c | 348 struct btf *btf_vmlinux; variable 3032 return btf_vmlinux ?: ERR_PTR(-ENOENT); in find_kfunc_desc_btf() 3052 if (!btf_vmlinux) { in add_kfunc_call() 7120 if (!btf_vmlinux) { in check_ptr_to_map_access() 7131 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id); in check_ptr_to_map_access() 7132 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in check_ptr_to_map_access() 7154 mark_btf_ld_reg(env, &map_reg, 0, PTR_TO_BTF_ID, btf_vmlinux, *map->ops->map_btf_id, 0); in check_ptr_to_map_access() 7160 mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag); in check_ptr_to_map_access() 8917 btf_vmlinux, *arg_btf_id, in check_reg_type() 8921 btf_type_name(btf_vmlinux, *arg_btf_id)); in check_reg_type() [all …]
|
D | btf.c | 5839 extern struct btf *btf_vmlinux; 5884 return btf_type_by_id(btf_vmlinux, ctx_type->type); in find_canonical_prog_ctx_type() 5958 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_is_prog_ctx_type() 5983 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_is_prog_ctx_type() 6112 ctx_type = btf_type_by_id(btf_vmlinux, ctx_type->type); in btf_validate_prog_ctx_type() 6123 ctx_tname = btf_name_by_offset(btf_vmlinux, ctx_type->name_off); in btf_validate_prog_ctx_type() 6154 kctx_type = btf_type_by_id(btf_vmlinux, kctx_type_id); in get_kern_ctx_btf_id() 6680 info->btf = ctx_arg_info->btf ? : btf_vmlinux; in btf_ctx_access() 6736 info->btf = btf_vmlinux; in btf_ctx_access()
|
/linux-6.14.4/tools/lib/bpf/ |
D | libbpf.c | 706 struct btf *btf_vmlinux; member 1151 kern_btf = mod_btf ? mod_btf->btf : obj->btf_vmlinux; in bpf_map__init_kern_struct_ops() 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() 5697 btf = btf_get_from_fd(fd, obj->btf_vmlinux); in load_module_btfs() 5757 main_btf = obj->btf_vmlinux_override ?: obj->btf_vmlinux; in bpf_core_find_cands() 5779 btf__type_cnt(obj->btf_vmlinux), in bpf_core_find_cands() 8215 btf = obj->btf_vmlinux; in find_ksym_btf_id() [all …]
|