Lines Matching refs:btf

92 struct btf;
124 void btf_get(struct btf *btf);
125 void btf_put(struct btf *btf);
127 struct btf *btf_get_by_fd(int fd);
128 int btf_get_info_by_fd(const struct btf *btf,
152 const struct btf_type *btf_type_id_size(const struct btf *btf,
173 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
175 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj,
191 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj,
195 u32 btf_obj_id(const struct btf *btf);
196 bool btf_is_kernel(const struct btf *btf);
197 bool btf_is_module(const struct btf *btf);
198 struct module *btf_try_get_module(const struct btf *btf);
199 u32 btf_nr_types(const struct btf *btf);
200 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
203 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t);
204 int btf_find_timer(const struct btf *btf, const struct btf_type *t);
205 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t,
207 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec);
210 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind);
211 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
213 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
215 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
218 btf_resolve_size(const struct btf *btf, const struct btf_type *type,
487 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id);
488 const char *btf_name_by_offset(const struct btf *btf, u32 offset);
489 struct btf *btf_parse_vmlinux(void);
490 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
491 u32 *btf_kfunc_id_set_contains(const struct btf *btf,
494 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id);
498 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id);
501 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id);
503 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf,
507 bool btf_types_are_same(const struct btf *btf1, u32 id1,
508 const struct btf *btf2, u32 id2);
510 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() argument
515 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() argument
520 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() argument
531 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() argument
540 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() argument
545 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type() argument
555 static inline bool btf_types_are_same(const struct btf *btf1, u32 id1, in btf_types_are_same()
556 const struct btf *btf2, u32 id2) in btf_types_are_same()
562 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr() argument
567 t = btf_type_skip_modifiers(btf, t->type, NULL); in btf_type_is_struct_ptr()