Lines Matching defs:btf
200 struct btf { struct
202 struct btf_type **types; argument
207 struct btf_header hdr; argument
216 struct btf *base_btf; argument
220 bool kernel_btf; argument
256 struct btf *btf; member
354 const struct btf *btf; member
474 u32 btf_nr_types(const struct btf *btf) in btf_nr_types()
486 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind()
506 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers()
522 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr()
534 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr()
643 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
666 static const char *btf_str_by_offset(const struct btf *btf, u32 offset) in btf_str_by_offset()
678 static bool __btf_name_valid(const struct btf *btf, u32 offset, bool dot_ok) in __btf_name_valid()
702 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
707 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
712 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
723 const char *btf_name_by_offset(const struct btf *btf, u32 offset) in btf_name_by_offset()
728 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id()
766 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, in btf_member_is_reg_int()
804 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, in btf_type_skip_qualifiers()
1315 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1359 struct btf *btf = env->btf; in btf_verifier_log_member() local
1430 const struct btf *btf = env->btf; in btf_verifier_log_hdr() local
1452 struct btf *btf = env->btf; in btf_add_type() local
1495 static int btf_alloc_id(struct btf *btf) in btf_alloc_id()
1513 static void btf_free_id(struct btf *btf) in btf_free_id()
1531 static void btf_free(struct btf *btf) in btf_free()
1542 struct btf *btf = container_of(rcu, struct btf, rcu); in btf_free_rcu() local
1547 void btf_get(struct btf *btf) in btf_get()
1552 void btf_put(struct btf *btf) in btf_put()
1562 struct btf *btf = env->btf; in env_resolve_init() local
1640 const struct btf *btf = env->btf; in env_stack_push() local
1678 struct btf *btf = env->btf; in env_stack_pop_resolved() local
1712 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, in __btf_resolve_size()
1780 btf_resolve_size(const struct btf *btf, const struct btf_type *type, in btf_resolve_size()
1786 static u32 btf_resolved_type_id(const struct btf *btf, u32 type_id) in btf_resolved_type_id()
1795 static const struct btf_type *btf_type_id_resolve(const struct btf *btf, in btf_type_id_resolve()
1802 static u32 btf_resolved_type_size(const struct btf *btf, u32 type_id) in btf_resolved_type_size()
1810 const struct btf_type *btf_type_id_size(const struct btf *btf, in btf_type_id_size()
1902 static void btf_df_show(const struct btf *btf, const struct btf_type *t, in btf_df_show()
2170 static void btf_int_bits_show(const struct btf *btf, in btf_int_bits_show()
2189 static void btf_int_show(const struct btf *btf, const struct btf_type *t, in btf_int_show()
2276 struct btf *btf = env->btf; in btf_modifier_check_member() local
2301 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2390 struct btf *btf = env->btf; in btf_modifier_resolve() local
2432 struct btf *btf = env->btf; in btf_var_resolve() local
2478 struct btf *btf = env->btf; in btf_ptr_resolve() local
2529 static void btf_modifier_show(const struct btf *btf, in btf_modifier_show()
2542 static void btf_var_show(const struct btf *btf, const struct btf_type *t, in btf_var_show()
2551 static void btf_ptr_show(const struct btf *btf, const struct btf_type *t, in btf_ptr_show()
2642 struct btf *btf = env->btf; in btf_array_check_member() local
2722 struct btf *btf = env->btf; in btf_array_resolve() local
2790 static void __btf_array_show(const struct btf *btf, const struct btf_type *t, in __btf_array_show()
2843 static void btf_array_show(const struct btf *btf, const struct btf_type *t, in btf_array_show()
2917 struct btf *btf = env->btf; in btf_struct_check_meta() local
3068 static int btf_find_struct_field(const struct btf *btf, const struct btf_type *t, in btf_find_struct_field()
3097 static int btf_find_datasec_var(const struct btf *btf, const struct btf_type *t, in btf_find_datasec_var()
3125 static int btf_find_field(const struct btf *btf, const struct btf_type *t, in btf_find_field()
3140 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t) in btf_find_spin_lock()
3147 int btf_find_timer(const struct btf *btf, const struct btf_type *t) in btf_find_timer()
3154 static void __btf_struct_show(const struct btf *btf, const struct btf_type *t, in __btf_struct_show()
3201 static void btf_struct_show(const struct btf *btf, const struct btf_type *t, in btf_struct_show()
3309 struct btf *btf = env->btf; in btf_enum_check_meta() local
3372 static void btf_enum_show(const struct btf *btf, const struct btf_type *t, in btf_enum_show()
3674 struct btf *btf = env->btf; in btf_datasec_resolve() local
3715 static void btf_datasec_show(const struct btf *btf, in btf_datasec_show()
3872 struct btf *btf = env->btf; in btf_decl_tag_resolve() local
3932 const struct btf *btf; in btf_func_proto_check() local
4021 const struct btf *btf; in btf_func_check() local
4108 struct btf *btf = env->btf; in btf_check_all_metas() local
4137 struct btf *btf = env->btf; in btf_resolve_valid() local
4209 struct btf *btf = env->btf; in btf_check_all_types() local
4273 struct btf *btf = env->btf; in btf_parse_str_sec() local
4320 const struct btf *btf; in btf_check_sec_info() local
4371 struct btf *btf; in btf_parse_hdr() local
4442 struct btf *btf = NULL; in btf_parse() local
4556 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type()
4624 static int btf_vmlinux_map_ids_init(const struct btf *btf, in btf_vmlinux_map_ids_init()
4649 struct btf *btf, in btf_translate_to_vmlinux()
4670 struct btf *btf = NULL; in BTF_ID() local
4740 struct btf *btf = NULL, *base_btf; in btf_parse_module() local
4817 static bool is_string_ptr(struct btf *btf, const struct btf_type *t) in is_string_ptr()
4836 struct btf *btf = bpf_prog_get_target_btf(prog); in btf_ctx_access() local
5014 static int btf_struct_walk(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_walk()
5240 int btf_struct_access(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_access()
5297 const struct btf *btf, u32 id, int off, in btf_struct_ids_match()
5328 static int __get_type_size(struct btf *btf, u32 btf_id, in __get_type_size()
5353 struct btf *btf, in btf_distill_func_proto()
5567 const struct btf *btf, u32 func_id, in btf_check_func_arg_match()
5710 struct btf *btf = prog->aux->btf; in btf_check_subprog_arg_match() local
5738 const struct btf *btf, u32 func_id, in btf_check_kfunc_arg_match()
5757 struct btf *btf = prog->aux->btf; in btf_prepare_func_args() local
5861 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_show()
5879 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, in btf_type_seq_show_flags()
5893 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_seq_show()
5929 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_snprintf_show()
5953 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() local
5972 static int __btf_new_fd(struct btf *btf) in __btf_new_fd()
5979 struct btf *btf; in btf_new_fd() local
6010 struct btf *btf; in btf_get_by_fd() local
6030 int btf_get_info_by_fd(const struct btf *btf, in btf_get_info_by_fd()
6092 struct btf *btf; in btf_get_fd_by_id() local
6111 u32 btf_obj_id(const struct btf *btf) in btf_obj_id()
6116 bool btf_is_kernel(const struct btf *btf) in btf_is_kernel()
6121 bool btf_is_module(const struct btf *btf) in btf_is_module()
6142 struct btf *btf; member
6154 const struct btf *btf = bin_attr->private; in btf_module_read() local
6165 struct btf *btf; in btf_module_notify() local
6261 struct module *btf_try_get_module(const struct btf *btf) in btf_try_get_module()
6285 struct btf *btf; in BPF_CALL_4() local