Lines Matching refs:desc_btf
2024 struct btf *desc_btf; in add_kfunc_call() local
2075 desc_btf = find_kfunc_desc_btf(env, offset); in add_kfunc_call()
2076 if (IS_ERR(desc_btf)) { in add_kfunc_call()
2078 return PTR_ERR(desc_btf); in add_kfunc_call()
2089 func = btf_type_by_id(desc_btf, func_id); in add_kfunc_call()
2095 func_proto = btf_type_by_id(desc_btf, func->type); in add_kfunc_call()
2102 func_name = btf_name_by_offset(desc_btf, func->name_off); in add_kfunc_call()
2122 err = btf_distill_func_proto(&env->log, desc_btf, in add_kfunc_call()
2539 struct btf *desc_btf; in disasm_kfunc_name() local
2544 desc_btf = find_kfunc_desc_btf(data, insn->off); in disasm_kfunc_name()
2545 if (IS_ERR(desc_btf)) in disasm_kfunc_name()
2548 func = btf_type_by_id(desc_btf, insn->imm); in disasm_kfunc_name()
2549 return btf_name_by_offset(desc_btf, func->name_off); in disasm_kfunc_name()
7680 struct btf *desc_btf; in check_kfunc_call() local
7688 desc_btf = find_kfunc_desc_btf(env, insn->off); in check_kfunc_call()
7689 if (IS_ERR(desc_btf)) in check_kfunc_call()
7690 return PTR_ERR(desc_btf); in check_kfunc_call()
7693 func = btf_type_by_id(desc_btf, func_id); in check_kfunc_call()
7694 func_name = btf_name_by_offset(desc_btf, func->name_off); in check_kfunc_call()
7695 func_proto = btf_type_by_id(desc_btf, func->type); in check_kfunc_call()
7697 kfunc_flags = btf_kfunc_id_set_contains(desc_btf, resolve_prog_type(env->prog), func_id); in check_kfunc_call()
7713 err = btf_check_kfunc_arg_match(env, desc_btf, func_id, regs, &meta); in check_kfunc_call()
7732 t = btf_type_skip_modifiers(desc_btf, func_proto->type, NULL); in check_kfunc_call()
7734 if (acq && !btf_type_is_struct_ptr(desc_btf, t)) { in check_kfunc_call()
7743 ptr_type = btf_type_skip_modifiers(desc_btf, t->type, in check_kfunc_call()
7747 ptr_type_name = btf_name_by_offset(desc_btf, in check_kfunc_call()
7769 regs[BPF_REG_0].btf = desc_btf; in check_kfunc_call()
7794 t = btf_type_skip_modifiers(desc_btf, args[i].type, NULL); in check_kfunc_call()