• Home
  • Raw
  • Download

Lines Matching refs:btf_id

261 	u32 btf_id;  member
877 verbose(env, "%s", kernel_type_name(reg->btf, reg->btf_id)); in print_verifier_state()
1746 struct btf *btf, u32 btf_id, in mark_btf_ld_reg() argument
1756 regs[regno].btf_id = btf_id; in mark_btf_ld_reg()
3929 const char *targ_name = kernel_type_name(off_desc->kptr.btf, off_desc->kptr.btf_id); in map_kptr_match_type()
3945 reg_name = kernel_type_name(reg->btf, reg->btf_id); in map_kptr_match_type()
3980 if (!btf_struct_ids_match(&env->log, reg->btf, reg->btf_id, reg->off, in map_kptr_match_type()
3981 off_desc->kptr.btf, off_desc->kptr.btf_id, in map_kptr_match_type()
4031 off_desc->kptr.btf_id, PTR_MAYBE_NULL | PTR_UNTRUSTED); in check_map_kptr_access()
4213 struct btf **btf, u32 *btf_id) in check_ctx_access() argument
4233 *btf_id = info.btf_id; in check_ctx_access()
4767 const struct btf_type *t = btf_type_by_id(reg->btf, reg->btf_id); in check_ptr_to_btf_access()
4770 u32 btf_id; in check_ptr_to_btf_access() local
4805 off, size, atype, &btf_id, &flag); in check_ptr_to_btf_access()
4813 atype, &btf_id, &flag); in check_ptr_to_btf_access()
4826 mark_btf_ld_reg(env, regs, value_regno, ret, reg->btf, btf_id, flag); in check_ptr_to_btf_access()
4842 u32 btf_id; in check_ptr_to_map_access() local
4877 ret = btf_struct_access(&env->log, btf_vmlinux, t, off, size, atype, &btf_id, &flag); in check_ptr_to_map_access()
4882 mark_btf_ld_reg(env, regs, value_regno, ret, btf_vmlinux, btf_id, flag); in check_ptr_to_map_access()
5075 u32 btf_id = 0; in check_mem_access() local
5088 &btf_id); in check_mem_access()
5111 regs[value_regno].btf_id = btf_id; in check_mem_access()
5893 u32 *btf_id; member
5924 .btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMON],
6055 if (!compatible->btf_id) { in check_reg_type()
6059 arg_btf_id = compatible->btf_id; in check_reg_type()
6073 if (!btf_struct_ids_match(&env->log, reg->btf, reg->btf_id, reg->off, in check_reg_type()
6077 regno, kernel_type_name(reg->btf, reg->btf_id), in check_reg_type()
6304 if (!reg->btf_id) { in check_func_arg()
6309 meta->ret_btf_id = reg->btf_id; in check_func_arg()
7198 callee->regs[BPF_REG_2].btf_id = btf_tracing_ids[BTF_TRACING_TYPE_VMA], in set_find_vma_callback_state()
7819 regs[BPF_REG_0].btf_id = meta.ret_btf_id; in check_helper_call()
7832 ret_btf_id = meta.kptr_off_desc->kptr.btf_id; in check_helper_call()
7850 regs[BPF_REG_0].btf_id = ret_btf_id; in check_helper_call()
8047 regs[BPF_REG_0].btf_id = ptr_type_id; in check_kfunc_call()
10657 dst_reg->btf_id = aux->btf_var.btf_id; in check_ld_imm()
12900 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
12920 aux->btf_var.btf_id = type; in check_pseudo_btf_id()
15063 u32 btf_id, member_idx; in check_struct_ops_btf_id() local
15071 btf_id = prog->aux->attach_btf_id; in check_struct_ops_btf_id()
15072 st_ops = bpf_struct_ops_find(btf_id); in check_struct_ops_btf_id()
15075 btf_id); in check_struct_ops_btf_id()
15136 static int check_non_sleepable_error_inject(u32 btf_id) in BTF_ID()
15138 return btf_id_set_contains(&btf_non_sleepable_error_inject, btf_id); in BTF_ID()
15144 u32 btf_id, in bpf_check_attach_target() argument
15156 if (!btf_id) { in bpf_check_attach_target()
15166 t = btf_type_by_id(btf, btf_id); in bpf_check_attach_target()
15168 bpf_log(log, "attach_btf_id %u is invalid\n", btf_id); in bpf_check_attach_target()
15173 bpf_log(log, "attach_btf_id %u doesn't have a name\n", btf_id); in bpf_check_attach_target()
15180 if (aux->func_info[i].type_id == btf_id) { in bpf_check_attach_target()
15251 btf_id); in bpf_check_attach_target()
15256 btf_id, tname); in bpf_check_attach_target()
15273 btf_id); in bpf_check_attach_target()
15294 btf_id); in bpf_check_attach_target()
15338 if (!check_non_sleepable_error_inject(btf_id) && in bpf_check_attach_target()
15346 if (bpf_lsm_is_sleepable_hook(btf_id)) in bpf_check_attach_target()
15396 u32 btf_id = prog->aux->attach_btf_id; in BTF_SET_START() local
15423 ret = bpf_check_attach_target(&env->log, prog, tgt_prog, btf_id, &tgt_info); in BTF_SET_START()
15459 btf_id_set_contains(&btf_id_deny, btf_id)) { in BTF_SET_START()
15463 key = bpf_trampoline_compute_key(tgt_prog, prog->aux->attach_btf, btf_id); in BTF_SET_START()