Lines Matching refs:btf_id

261 	u32 btf_id;  member
868 verbose(env, "%s", kernel_type_name(reg->btf, reg->btf_id)); in print_verifier_state()
1732 struct btf *btf, u32 btf_id, in mark_btf_ld_reg() argument
1742 regs[regno].btf_id = btf_id; in mark_btf_ld_reg()
3689 const char *targ_name = kernel_type_name(off_desc->kptr.btf, off_desc->kptr.btf_id); in map_kptr_match_type()
3705 reg_name = kernel_type_name(reg->btf, reg->btf_id); in map_kptr_match_type()
3740 if (!btf_struct_ids_match(&env->log, reg->btf, reg->btf_id, reg->off, in map_kptr_match_type()
3741 off_desc->kptr.btf, off_desc->kptr.btf_id, in map_kptr_match_type()
3791 off_desc->kptr.btf_id, PTR_MAYBE_NULL | PTR_UNTRUSTED); in check_map_kptr_access()
3973 struct btf **btf, u32 *btf_id) in check_ctx_access() argument
3993 *btf_id = info.btf_id; in check_ctx_access()
4508 const struct btf_type *t = btf_type_by_id(reg->btf, reg->btf_id); in check_ptr_to_btf_access()
4511 u32 btf_id; in check_ptr_to_btf_access() local
4546 off, size, atype, &btf_id, &flag); in check_ptr_to_btf_access()
4554 atype, &btf_id, &flag); in check_ptr_to_btf_access()
4567 mark_btf_ld_reg(env, regs, value_regno, ret, reg->btf, btf_id, flag); in check_ptr_to_btf_access()
4583 u32 btf_id; in check_ptr_to_map_access() local
4618 ret = btf_struct_access(&env->log, btf_vmlinux, t, off, size, atype, &btf_id, &flag); in check_ptr_to_map_access()
4623 mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag); in check_ptr_to_map_access()
4822 u32 btf_id = 0; in check_mem_access() local
4835 &btf_id); in check_mem_access()
4858 regs[value_regno].btf_id = btf_id; in check_mem_access()
5639 u32 *btf_id; member
5670 .btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON],
5801 if (!compatible->btf_id) { in check_reg_type()
5805 arg_btf_id = compatible->btf_id; in check_reg_type()
5819 if (!btf_struct_ids_match(&env->log, reg->btf, reg->btf_id, reg->off, in check_reg_type()
5823 regno, kernel_type_name(reg->btf, reg->btf_id), in check_reg_type()
6050 if (!reg->btf_id) { in check_func_arg()
6055 meta->ret_btf_id = reg->btf_id; in check_func_arg()
6930 callee->regs[BPF_REG_2].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA], in set_find_vma_callback_state()
7543 regs[BPF_REG_0].btf_id = meta.ret_btf_id; in check_helper_call()
7556 ret_btf_id = meta.kptr_off_desc->kptr.btf_id; in check_helper_call()
7574 regs[BPF_REG_0].btf_id = ret_btf_id; in check_helper_call()
7771 regs[BPF_REG_0].btf_id = ptr_type_id; in check_kfunc_call()
10367 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()
12602 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
12622 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
14756 u32 btf_id, member_idx; in check_struct_ops_btf_id() local
14764 btf_id = prog->aux->attach_btf_id; in check_struct_ops_btf_id()
14765 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
14768 btf_id); in check_struct_ops_btf_id()
14829 static int check_non_sleepable_error_inject(u32 btf_id) in BTF_ID()
14831 return btf_id_set_contains(&btf_non_sleepable_error_inject, btf_id); in BTF_ID()
14837 u32 btf_id, in bpf_check_attach_target() argument
14849 if (!btf_id) { in bpf_check_attach_target()
14859 t = btf_type_by_id(btf, btf_id); in bpf_check_attach_target()
14861 bpf_log(log, "attach_btf_id %u is invalid\n", btf_id); in bpf_check_attach_target()
14866 bpf_log(log, "attach_btf_id %u doesn't have a name\n", btf_id); in bpf_check_attach_target()
14873 if (aux->func_info[i].type_id == btf_id) { in bpf_check_attach_target()
14944 btf_id); in bpf_check_attach_target()
14949 btf_id, tname); in bpf_check_attach_target()
14966 btf_id); in bpf_check_attach_target()
14987 btf_id); in bpf_check_attach_target()
15031 if (!check_non_sleepable_error_inject(btf_id) && in bpf_check_attach_target()
15039 if (bpf_lsm_is_sleepable_hook(btf_id)) in bpf_check_attach_target()
15085 u32 btf_id = prog->aux->attach_btf_id; in BTF_SET_START() local
15112 ret = bpf_check_attach_target(&env->log, prog, tgt_prog, btf_id, &tgt_info); in BTF_SET_START()
15148 btf_id_set_contains(&btf_id_deny, btf_id)) { in BTF_SET_START()
15152 key = bpf_trampoline_compute_key(tgt_prog, prog->aux->attach_btf, btf_id); in BTF_SET_START()