Lines Matching refs:btf
111 struct btf;
144 const char *btf_get_name(const struct btf *btf);
145 void btf_get(struct btf *btf);
146 void btf_put(struct btf *btf);
147 const struct btf_header *btf_header(const struct btf *btf);
149 struct btf *btf_get_by_fd(int fd);
150 int btf_get_info_by_fd(const struct btf *btf,
174 const struct btf_type *btf_type_id_size(const struct btf *btf,
195 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
197 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj,
213 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj,
217 u32 btf_obj_id(const struct btf *btf);
218 bool btf_is_kernel(const struct btf *btf);
219 bool btf_is_module(const struct btf *btf);
220 bool btf_is_vmlinux(const struct btf *btf);
221 struct module *btf_try_get_module(const struct btf *btf);
222 u32 btf_nr_types(const struct btf *btf);
223 struct btf *btf_base_btf(const struct btf *btf);
224 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
227 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t,
229 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec);
231 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind);
232 s32 bpf_find_btf_id(const char *name, u32 kind, struct btf **btf_p);
233 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
235 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
237 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
240 btf_resolve_size(const struct btf *btf, const struct btf_type *type,
520 bool btf_param_match_suffix(const struct btf *btf,
523 int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto,
531 const struct bpf_struct_ops_desc *bpf_struct_ops_find_value(struct btf *btf, u32 value_id);
532 const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id);
534 static inline const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id) in bpf_struct_ops_find() argument
563 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id);
564 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf);
565 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **map_ids);
570 const char *btf_name_by_offset(const struct btf *btf, u32 offset);
571 const char *btf_str_by_offset(const struct btf *btf, u32 offset);
572 struct btf *btf_parse_vmlinux(void);
573 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
574 u32 *btf_kfunc_id_set_contains(const struct btf *btf, u32 kfunc_btf_id,
576 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,
581 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id);
584 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id);
586 bool btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf,
590 bool btf_types_are_same(const struct btf *btf1, u32 id1,
591 const struct btf *btf2, u32 id2);
592 int btf_check_iter_arg(struct btf *btf, const struct btf_type *func, int arg_idx);
594 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr() argument
599 t = btf_type_skip_modifiers(btf, t->type, NULL); in btf_type_is_struct_ptr()
604 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() argument
610 static inline void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf() argument
614 static inline int btf_relocate(void *log, struct btf *btf, const struct btf *base_btf, in btf_relocate() argument
631 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() argument
636 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() argument
648 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() argument
657 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() argument
662 btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_is_prog_ctx_type() argument
672 static inline bool btf_types_are_same(const struct btf *btf1, u32 id1, in btf_types_are_same()
673 const struct btf *btf2, u32 id2) in btf_types_are_same()
677 static inline int btf_check_iter_arg(struct btf *btf, const struct btf_type *func, int arg_idx) in btf_check_iter_arg() argument