Lines Matching refs:btf

95 struct btf;
128 void btf_get(struct btf *btf);
129 void btf_put(struct btf *btf);
131 struct btf *btf_get_by_fd(int fd);
132 int btf_get_info_by_fd(const struct btf *btf,
156 const struct btf_type *btf_type_id_size(const struct btf *btf,
177 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
179 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj,
195 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj,
199 u32 btf_obj_id(const struct btf *btf);
200 bool btf_is_kernel(const struct btf *btf);
201 bool btf_is_module(const struct btf *btf);
202 struct module *btf_try_get_module(const struct btf *btf);
203 u32 btf_nr_types(const struct btf *btf);
204 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
207 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t,
209 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec);
211 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind);
212 s32 bpf_find_btf_id(const char *name, u32 kind, struct btf **btf_p);
213 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
215 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
217 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
220 btf_resolve_size(const struct btf *btf, const struct btf_type *type,
488 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id);
489 const char *btf_name_by_offset(const struct btf *btf, u32 offset);
490 struct btf *btf_parse_vmlinux(void);
491 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
492 u32 *btf_kfunc_id_set_contains(const struct btf *btf, u32 kfunc_btf_id,
494 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,
499 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id);
502 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id);
504 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf,
508 bool btf_types_are_same(const struct btf *btf1, u32 id1,
509 const struct btf *btf2, u32 id2);
511 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() argument
516 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() argument
521 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() argument
533 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() argument
542 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() argument
547 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type() argument
557 static inline bool btf_types_are_same(const struct btf *btf1, u32 id1, in btf_types_are_same()
558 const struct btf *btf2, u32 id2) in btf_types_are_same()
564 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr() argument
569 t = btf_type_skip_modifiers(btf, t->type, NULL); in btf_type_is_struct_ptr()