Lines Matching refs:field

334 		struct btf_field *field;  member
337 struct btf_field *field; member
5964 static bool rcu_safe_kptr(const struct btf_field *field) in rcu_safe_kptr() argument
5966 const struct btf_field_kptr *kptr = &field->kptr; in rcu_safe_kptr()
5968 return field->type == BPF_KPTR_PERCPU || in rcu_safe_kptr()
5969 (field->type == BPF_KPTR_REF && rcu_protected_object(kptr->btf, kptr->btf_id)); in rcu_safe_kptr()
5996 struct btf_field *field) in mark_uptr_ld_reg() argument
6001 t = btf_type_by_id(field->kptr.btf, field->kptr.btf_id); in mark_uptr_ld_reg()
6096 struct btf_field *field = &rec->fields[i]; in check_map_access() local
6097 u32 p = field->offset; in check_map_access()
6103 if (reg->smin_value + off < p + field->size && in check_map_access()
6105 switch (field->type) { in check_map_access()
6112 btf_field_type_name(field->type)); in check_map_access()
6117 btf_field_type_name(field->type)); in check_map_access()
6122 btf_field_type_name(field->type), in check_map_access()
6128 btf_field_type_name(field->type)); in check_map_access()
6134 btf_field_type_name(field->type)); in check_map_access()
9383 struct btf_field *field; in reg_find_field_offset() local
9390 field = btf_record_find(rec, off, fields); in reg_find_field_offset()
9391 if (!field) in reg_find_field_offset()
9394 return field; in reg_find_field_offset()
10912 struct btf_field *field; in set_rbtree_add_callback_state() local
10914 field = reg_find_field_offset(&caller->regs[BPF_REG_1], caller->regs[BPF_REG_1].off, in set_rbtree_add_callback_state()
10916 if (!field || !field->graph_root.value_btf_id) in set_rbtree_add_callback_state()
10919 mark_reg_graph_node(callee->regs, BPF_REG_1, &field->graph_root); in set_rbtree_add_callback_state()
10921 mark_reg_graph_node(callee->regs, BPF_REG_2, &field->graph_root); in set_rbtree_add_callback_state()
12841 struct btf_field *field; in __process_kf_arg_ptr_to_graph_root() local
12863 field = btf_record_find(rec, head_off, head_field_type); in __process_kf_arg_ptr_to_graph_root()
12864 if (!field) { in __process_kf_arg_ptr_to_graph_root()
12880 *head_field = field; in __process_kf_arg_ptr_to_graph_root()
12889 &meta->arg_list_head.field); in process_kf_arg_ptr_to_list_head()
12897 &meta->arg_rbtree_root.field); in process_kf_arg_ptr_to_rbtree_root()
12910 struct btf_field *field; in __process_kf_arg_ptr_to_graph_node() local
12930 field = reg_find_field_offset(reg, node_off, node_field_type); in __process_kf_arg_ptr_to_graph_node()
12931 if (!field) { in __process_kf_arg_ptr_to_graph_node()
12936 field = *node_field; in __process_kf_arg_ptr_to_graph_node()
12938 et = btf_type_by_id(field->graph_root.btf, field->graph_root.value_btf_id); in __process_kf_arg_ptr_to_graph_node()
12940 if (!btf_struct_ids_match(&env->log, reg->btf, reg->btf_id, 0, field->graph_root.btf, in __process_kf_arg_ptr_to_graph_node()
12941 field->graph_root.value_btf_id, true)) { in __process_kf_arg_ptr_to_graph_node()
12946 field->graph_root.node_offset, in __process_kf_arg_ptr_to_graph_node()
12947 btf_name_by_offset(field->graph_root.btf, et->name_off), in __process_kf_arg_ptr_to_graph_node()
12954 if (node_off != field->graph_root.node_offset) { in __process_kf_arg_ptr_to_graph_node()
12957 field->graph_root.node_offset, in __process_kf_arg_ptr_to_graph_node()
12958 btf_name_by_offset(field->graph_root.btf, et->name_off)); in __process_kf_arg_ptr_to_graph_node()
12971 &meta->arg_list_head.field); in process_kf_arg_ptr_to_list_node()
12980 &meta->arg_rbtree_root.field); in process_kf_arg_ptr_to_rbtree_node()
13669 struct btf_field *field = meta->arg_list_head.field; in check_special_kfunc() local
13671 mark_reg_graph_node(regs, BPF_REG_0, &field->graph_root); in check_special_kfunc()
13673 struct btf_field *field = meta->arg_rbtree_root.field; in check_special_kfunc() local
13675 mark_reg_graph_node(regs, BPF_REG_0, &field->graph_root); in check_special_kfunc()