Lines Matching defs:btf

199 struct btf {  struct
201 struct btf_type **types; argument
206 struct btf_header hdr; argument
221 const struct btf_type *t; argument
248 struct btf *btf; member
344 const struct btf *btf; member
453 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind()
472 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers()
488 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr()
500 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr()
601 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
618 static bool __btf_name_valid(const struct btf *btf, u32 offset, bool dot_ok) in __btf_name_valid()
642 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
647 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
652 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
662 const char *btf_name_by_offset(const struct btf *btf, u32 offset) in btf_name_by_offset()
670 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id()
705 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, in btf_member_is_reg_int()
743 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, in btf_type_skip_qualifiers()
1255 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1299 struct btf *btf = env->btf; in btf_verifier_log_member() local
1370 const struct btf *btf = env->btf; in btf_verifier_log_hdr() local
1392 struct btf *btf = env->btf; in btf_add_type() local
1434 static int btf_alloc_id(struct btf *btf) in btf_alloc_id()
1452 static void btf_free_id(struct btf *btf) in btf_free_id()
1470 static void btf_free(struct btf *btf) in btf_free()
1481 struct btf *btf = container_of(rcu, struct btf, rcu); in btf_free_rcu() local
1486 void btf_put(struct btf *btf) in btf_put()
1496 struct btf *btf = env->btf; in env_resolve_init() local
1607 struct btf *btf = env->btf; in env_stack_pop_resolved() local
1640 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, in __btf_resolve_size()
1707 btf_resolve_size(const struct btf *btf, const struct btf_type *type, in btf_resolve_size()
1714 static const struct btf_type *btf_type_id_resolve(const struct btf *btf, in btf_type_id_resolve()
1721 const struct btf_type *btf_type_id_size(const struct btf *btf, in btf_type_id_size()
1813 static void btf_df_show(const struct btf *btf, const struct btf_type *t, in btf_df_show()
2081 static void btf_int_bits_show(const struct btf *btf, in btf_int_bits_show()
2100 static void btf_int_show(const struct btf *btf, const struct btf_type *t, in btf_int_show()
2187 struct btf *btf = env->btf; in btf_modifier_check_member() local
2212 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2301 struct btf *btf = env->btf; in btf_modifier_resolve() local
2343 struct btf *btf = env->btf; in btf_var_resolve() local
2389 struct btf *btf = env->btf; in btf_ptr_resolve() local
2440 static void btf_modifier_show(const struct btf *btf, in btf_modifier_show()
2453 static void btf_var_show(const struct btf *btf, const struct btf_type *t, in btf_var_show()
2462 static void btf_ptr_show(const struct btf *btf, const struct btf_type *t, in btf_ptr_show()
2553 struct btf *btf = env->btf; in btf_array_check_member() local
2633 struct btf *btf = env->btf; in btf_array_resolve() local
2701 static void __btf_array_show(const struct btf *btf, const struct btf_type *t, in __btf_array_show()
2754 static void btf_array_show(const struct btf *btf, const struct btf_type *t, in btf_array_show()
2828 struct btf *btf = env->btf; in btf_struct_check_meta() local
2983 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t) in btf_find_spin_lock()
3016 static void __btf_struct_show(const struct btf *btf, const struct btf_type *t, in __btf_struct_show()
3063 static void btf_struct_show(const struct btf *btf, const struct btf_type *t, in btf_struct_show()
3171 struct btf *btf = env->btf; in btf_enum_check_meta() local
3234 static void btf_enum_show(const struct btf *btf, const struct btf_type *t, in btf_enum_show()
3541 struct btf *btf = env->btf; in btf_datasec_resolve() local
3582 static void btf_datasec_show(const struct btf *btf, in btf_datasec_show()
3620 const struct btf *btf; in btf_func_proto_check() local
3709 const struct btf *btf; in btf_func_check() local
3794 struct btf *btf = env->btf; in btf_check_all_metas() local
3823 struct btf *btf = env->btf; in btf_resolve_valid() local
3891 struct btf *btf = env->btf; in btf_check_all_types() local
3953 struct btf *btf = env->btf; in btf_parse_str_sec() local
3995 const struct btf *btf; in btf_check_sec_info() local
4046 struct btf *btf; in btf_parse_hdr() local
4117 struct btf *btf = NULL; in btf_parse() local
4231 btf_get_prog_ctx_type(struct bpf_verifier_log *log, struct btf *btf, in btf_get_prog_ctx_type()
4301 static int btf_vmlinux_map_ids_init(const struct btf *btf, in btf_vmlinux_map_ids_init()
4326 struct btf *btf, in btf_translate_to_vmlinux()
4347 struct btf *btf = NULL; in BTF_ID() local
4415 static bool is_string_ptr(struct btf *btf, const struct btf_type *t) in is_string_ptr()
4434 struct btf *btf = bpf_prog_get_target_btf(prog); in btf_ctx_access() local
4900 static int __get_type_size(struct btf *btf, u32 btf_id, in __get_type_size()
4925 struct btf *btf, in btf_distill_func_proto()
5130 struct btf *btf = prog->aux->btf; in btf_check_func_arg_match() local
5228 struct btf *btf = prog->aux->btf; in btf_prepare_func_args() local
5313 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_show()
5331 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, in btf_type_seq_show_flags()
5345 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_seq_show()
5381 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_snprintf_show()
5405 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() local
5424 static int __btf_new_fd(struct btf *btf) in __btf_new_fd()
5431 struct btf *btf; in btf_new_fd() local
5462 struct btf *btf; in btf_get_by_fd() local
5482 int btf_get_info_by_fd(const struct btf *btf, in btf_get_info_by_fd()
5516 struct btf *btf; in btf_get_fd_by_id() local
5535 u32 btf_id(const struct btf *btf) in btf_id()