Lines Matching refs:btf_vmlinux

267 struct btf *btf_vmlinux;  variable
1676 if (!btf_vmlinux) { in add_kfunc_call()
1710 func = btf_type_by_id(btf_vmlinux, func_id); in add_kfunc_call()
1716 func_proto = btf_type_by_id(btf_vmlinux, func->type); in add_kfunc_call()
1723 func_name = btf_name_by_offset(btf_vmlinux, func->name_off); in add_kfunc_call()
1734 err = btf_distill_func_proto(&env->log, btf_vmlinux, in add_kfunc_call()
2159 func = btf_type_by_id(btf_vmlinux, insn->imm); in disasm_kfunc_name()
2160 return btf_name_by_offset(btf_vmlinux, func->name_off); in disasm_kfunc_name()
3983 if (!btf_vmlinux) { in check_ptr_to_map_access()
3994 t = btf_type_by_id(btf_vmlinux, *map->ops->map_btf_id); in check_ptr_to_map_access()
3995 tname = btf_name_by_offset(btf_vmlinux, t->name_off); in check_ptr_to_map_access()
4015 ret = btf_struct_access(&env->log, btf_vmlinux, t, off, size, atype, &btf_id); in check_ptr_to_map_access()
4020 mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id); in check_ptr_to_map_access()
4970 btf_vmlinux, *arg_btf_id)) { in check_reg_type()
4973 kernel_type_name(btf_vmlinux, *arg_btf_id)); in check_reg_type()
6393 regs[BPF_REG_0].btf = btf_vmlinux; in check_helper_call()
6492 func = btf_type_by_id(btf_vmlinux, func_id); in check_kfunc_call()
6493 func_name = btf_name_by_offset(btf_vmlinux, func->name_off); in check_kfunc_call()
6494 func_proto = btf_type_by_id(btf_vmlinux, func->type); in check_kfunc_call()
6504 err = btf_check_kfunc_arg_match(env, btf_vmlinux, func_id, regs); in check_kfunc_call()
6512 t = btf_type_skip_modifiers(btf_vmlinux, func_proto->type, NULL); in check_kfunc_call()
6517 ptr_type = btf_type_skip_modifiers(btf_vmlinux, t->type, in check_kfunc_call()
6520 ptr_type_name = btf_name_by_offset(btf_vmlinux, in check_kfunc_call()
6528 regs[BPF_REG_0].btf = btf_vmlinux; in check_kfunc_call()
6539 t = btf_type_skip_modifiers(btf_vmlinux, args[i].type, NULL); in check_kfunc_call()
11207 i = btf_nr_types(btf_vmlinux); in find_btf_percpu_datasec()
11249 if (!btf_vmlinux) { in check_pseudo_btf_id()
11253 btf = btf_vmlinux; in check_pseudo_btf_id()
13279 mname = btf_name_by_offset(btf_vmlinux, member->name_off); in check_struct_ops_btf_id()
13280 func_proto = btf_type_resolve_func_ptr(btf_vmlinux, member->type, in check_struct_ops_btf_id()
13660 if (!btf_vmlinux && IS_ENABLED(CONFIG_DEBUG_INFO_BTF)) { in bpf_get_btf_vmlinux()
13662 if (!btf_vmlinux) in bpf_get_btf_vmlinux()
13663 btf_vmlinux = btf_parse_vmlinux(); in bpf_get_btf_vmlinux()
13666 return btf_vmlinux; in bpf_get_btf_vmlinux()
13723 if (IS_ERR(btf_vmlinux)) { in bpf_check()
13726 ret = PTR_ERR(btf_vmlinux); in bpf_check()