Searched refs:btf_record (Results 1 – 6 of 6) sorted by relevance
/linux/include/linux/ |
H A D | bpf.h | 225 struct btf_record *value_rec; 238 struct btf_record { struct 273 struct btf_record *record; 435 static inline bool btf_record_has_field(const struct btf_record *rec, enum btf_field_type type) in btf_record_has_field() 442 static inline void bpf_obj_init(const struct btf_record *rec, void *obj) in bpf_obj_init() 481 static inline void bpf_obj_memcpy(struct btf_record *rec, in bpf_obj_memcpy() 516 static inline void bpf_obj_swap_uptrs(const struct btf_record *rec, void *dst, void *src) in bpf_obj_swap_uptrs() 535 static inline void bpf_obj_memzero(struct btf_record *rec, void *dst, u32 size) in bpf_obj_memzero() 2288 struct btf_field *btf_record_find(const struct btf_record *rec, 2290 void btf_record_free(struct btf_record *rec); [all …]
|
H A D | btf.h | 131 struct btf_record *record; 224 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, 226 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec);
|
/linux/kernel/bpf/ |
H A D | syscall.c | 165 static void __bpf_obj_unpin_uptrs(struct btf_record *rec, u32 cnt, void *obj) in __bpf_obj_unpin_uptrs() 180 static void bpf_obj_unpin_uptrs(struct btf_record *rec, void *obj) in bpf_obj_unpin_uptrs() 188 static int bpf_obj_pin_uptrs(struct btf_record *rec, void *obj) in bpf_obj_pin_uptrs() 616 struct btf_field *btf_record_find(const struct btf_record *rec, u32 offset, in btf_record_find() 629 void btf_record_free(struct btf_record *rec) in btf_record_free() 670 struct btf_record *btf_record_dup(const struct btf_record *rec) in btf_record_dup() 673 struct btf_record *new_rec; in btf_record_dup() 678 size = offsetof(struct btf_record, fields[rec->cnt]); in btf_record_dup() 721 bool btf_record_equal(const struct btf_record *rec_a, const struct btf_record *rec_b) in btf_record_equal() 732 size = offsetof(struct btf_record, fields[rec_a->cnt]); in btf_record_equal() [all …]
|
H A D | helpers.c | 2149 void __bpf_obj_drop_impl(void *p, const struct btf_record *rec, bool percpu) in __bpf_obj_drop_impl() 2205 bool tail, struct btf_record *rec, u64 off) in __bpf_list_add() 2307 void *less, struct btf_record *rec, u64 off) in __bpf_rbtree_add()
|
H A D | btf.c | 3928 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, in btf_parse_fields() 3933 struct btf_record *rec; in btf_parse_fields() 3946 rec = kzalloc(offsetof(struct btf_record, fields[cnt]), GFP_KERNEL | __GFP_NOWARN); in btf_parse_fields() 4044 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec) in btf_check_and_fixup_fields() 5612 struct btf_record *record; in btf_parse_struct_metas() 7063 struct btf_record *rec; in btf_struct_access()
|
H A D | verifier.c | 410 static struct btf_record *reg_btf_record(const struct bpf_reg_state *reg) in reg_btf_record() 412 struct btf_record *rec = NULL; in reg_btf_record() 5710 static struct btf_record *kptr_pointee_btf_record(struct btf_field *kptr_field) in kptr_pointee_btf_record() 5733 struct btf_record *rec; in btf_ld_kptr_type() 5839 struct btf_record *rec; in check_map_access() 8019 struct btf_record *rec; in process_spin_lock() 8152 struct btf_record *rec; in process_kptr_func() 8956 struct btf_record *rec; in reg_find_field_offset() 12108 struct btf_record *rec = reg_btf_record(reg); in ref_set_non_owning() 12359 struct btf_record *rec; in __process_kf_arg_ptr_to_graph_root() [all …]
|