Home
last modified time | relevance | path

Searched refs:btf_field (Results 1 – 5 of 5) sorted by relevance

/linux/include/linux/
H A Dbpf.h247 struct btf_field { struct
266 struct btf_field fields[]; argument
450 static inline void bpf_obj_init_field(const struct btf_field *field, void *addr) in bpf_obj_init_field()
567 const struct btf_field *field; in bpf_obj_swap_uptrs()
613 void bpf_list_head_free(const struct btf_field *field, void *list_head,
615 void bpf_rb_root_free(const struct btf_field *field, void *rb_root,
2432 struct btf_field *btf_record_find(const struct btf_record *rec,
/linux/kernel/bpf/
H A Dsyscall.c172 const struct btf_field *field; in __bpf_obj_unpin_uptrs()
195 const struct btf_field *field; in bpf_obj_pin_uptrs()
644 const struct btf_field *f1 = a, *f2 = b; in btf_field_cmp()
653 struct btf_field *btf_record_find(const struct btf_record *rec, u32 offset, in btf_record_find()
656 struct btf_field *field; in btf_record_find()
711 const struct btf_field *fields; in btf_record_dup()
814 const struct btf_field *fields; in bpf_obj_free_fields()
822 const struct btf_field *field = &fields[i]; in bpf_obj_free_fields()
H A Dbtf.c3785 static int btf_parse_kptr(const struct btf *btf, struct btf_field *field, in btf_parse_kptr()
3876 struct btf_field *field, in btf_parse_graph_root()
3919 static int btf_parse_list_head(const struct btf *btf, struct btf_field *field, in btf_parse_list_head()
3926 static int btf_parse_rb_root(const struct btf *btf, struct btf_field *field, in btf_parse_rb_root()
3935 const struct btf_field *a = (const struct btf_field *)_a; in btf_field_cmp()
3936 const struct btf_field *b = (const struct btf_field *)_b; in btf_field_cmp()
4069 sort_r(rec->fields, rec->cnt, sizeof(struct btf_field), btf_field_cmp, in btf_parse_fields()
7199 struct btf_field *field = &rec->fields[i]; in btf_struct_access()
H A Dverifier.c295 struct btf_field *kptr_field;
334 struct btf_field *field;
337 struct btf_field *field;
5752 struct btf_field *kptr_field, in map_kptr_match_type()
5867 static struct btf_record *kptr_pointee_btf_record(struct btf_field *kptr_field) in kptr_pointee_btf_record()
5880 static bool rcu_safe_kptr(const struct btf_field *field) in rcu_safe_kptr()
5888 static u32 btf_ld_kptr_type(struct bpf_verifier_env *env, struct btf_field *kptr_field) in btf_ld_kptr_type()
5912 struct btf_field *field) in mark_uptr_ld_reg()
5929 struct btf_field *kptr_field) in check_map_kptr_access()
6012 struct btf_field *field = &rec->fields[i]; in check_map_access()
[all …]
H A Dhelpers.c2112 void bpf_list_head_free(const struct btf_field *field, void *list_head, in bpf_list_head_free()
2159 void bpf_rb_root_free(const struct btf_field *field, void *rb_root, in bpf_rb_root_free()