• Home
  • Raw
  • Download

Lines Matching refs:btf

107 struct btf;
140 const char *btf_get_name(const struct btf *btf);
141 void btf_get(struct btf *btf);
142 void btf_put(struct btf *btf);
143 const struct btf_header *btf_header(const struct btf *btf);
145 struct btf *btf_get_by_fd(int fd);
146 int btf_get_info_by_fd(const struct btf *btf,
170 const struct btf_type *btf_type_id_size(const struct btf *btf,
191 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
193 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj,
209 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj,
213 u32 btf_obj_id(const struct btf *btf);
214 bool btf_is_kernel(const struct btf *btf);
215 bool btf_is_module(const struct btf *btf);
216 bool btf_is_vmlinux(const struct btf *btf);
217 struct module *btf_try_get_module(const struct btf *btf);
218 u32 btf_nr_types(const struct btf *btf);
219 struct btf *btf_base_btf(const struct btf *btf);
220 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s,
223 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t,
225 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec);
227 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind);
228 s32 bpf_find_btf_id(const char *name, u32 kind, struct btf **btf_p);
229 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf,
231 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf,
233 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf,
236 btf_resolve_size(const struct btf *btf, const struct btf_type *type,
516 bool btf_param_match_suffix(const struct btf *btf,
519 int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto,
527 const struct bpf_struct_ops_desc *bpf_struct_ops_find_value(struct btf *btf, u32 value_id);
528 const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id);
530 static inline const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id) in bpf_struct_ops_find() argument
559 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id);
560 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf);
561 int btf_relocate(struct btf *btf, const struct btf *base_btf, __u32 **map_ids);
566 const char *btf_name_by_offset(const struct btf *btf, u32 offset);
567 const char *btf_str_by_offset(const struct btf *btf, u32 offset);
568 struct btf *btf_parse_vmlinux(void);
569 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
570 u32 *btf_kfunc_id_set_contains(const struct btf *btf, u32 kfunc_btf_id,
572 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id,
577 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id);
580 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id);
582 bool btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf,
586 bool btf_types_are_same(const struct btf *btf1, u32 id1,
587 const struct btf *btf2, u32 id2);
588 int btf_check_iter_arg(struct btf *btf, const struct btf_type *func, int arg_idx);
590 static inline const struct btf_type *btf_type_by_id(const struct btf *btf, in btf_type_by_id() argument
596 static inline void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf() argument
600 static inline int btf_relocate(void *log, struct btf *btf, const struct btf *base_btf, in btf_relocate() argument
617 static inline const char *btf_name_by_offset(const struct btf *btf, in btf_name_by_offset() argument
622 static inline u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains() argument
634 static inline s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc() argument
643 static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta() argument
648 btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_is_prog_ctx_type() argument
658 static inline bool btf_types_are_same(const struct btf *btf1, u32 id1, in btf_types_are_same()
659 const struct btf *btf2, u32 id2) in btf_types_are_same()
663 static inline int btf_check_iter_arg(struct btf *btf, const struct btf_type *func, int arg_idx) in btf_check_iter_arg() argument
669 static inline bool btf_type_is_struct_ptr(struct btf *btf, const struct btf_type *t) in btf_type_is_struct_ptr() argument
674 t = btf_type_skip_modifiers(btf, t->type, NULL); in btf_type_is_struct_ptr()