Lines Matching defs:btf

244 struct btf {  struct
246 struct btf_type **types; argument
251 struct btf_header hdr; argument
258 struct btf_kfunc_set_tab *kfunc_set_tab; argument
259 struct btf_id_dtor_kfunc_tab *dtor_kfunc_tab; argument
260 struct btf_struct_metas *struct_meta_tab; argument
263 struct btf *base_btf; argument
267 bool kernel_btf; argument
303 struct btf *btf; member
409 const struct btf *btf; member
524 u32 btf_nr_types(const struct btf *btf) in btf_nr_types()
536 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind()
558 struct btf *btf; in bpf_find_btf_id() local
600 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers()
616 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr()
628 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr()
744 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
766 static const char *btf_str_by_offset(const struct btf *btf, u32 offset) in btf_str_by_offset()
778 static bool __btf_name_valid(const struct btf *btf, u32 offset) in __btf_name_valid()
799 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
804 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
809 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
820 const char *btf_name_by_offset(const struct btf *btf, u32 offset) in btf_name_by_offset()
825 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id()
864 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, in btf_member_is_reg_int()
902 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, in btf_type_skip_qualifiers()
1414 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1464 struct btf *btf = env->btf; in btf_verifier_log_member() local
1542 const struct btf *btf = env->btf; in btf_verifier_log_hdr() local
1564 struct btf *btf = env->btf; in btf_add_type() local
1607 static int btf_alloc_id(struct btf *btf) in btf_alloc_id()
1625 static void btf_free_id(struct btf *btf) in btf_free_id()
1643 static void btf_free_kfunc_set_tab(struct btf *btf) in btf_free_kfunc_set_tab()
1662 static void btf_free_dtor_kfunc_tab(struct btf *btf) in btf_free_dtor_kfunc_tab()
1683 static void btf_free_struct_meta_tab(struct btf *btf) in btf_free_struct_meta_tab()
1691 static void btf_free(struct btf *btf) in btf_free()
1705 struct btf *btf = container_of(rcu, struct btf, rcu); in btf_free_rcu() local
1710 void btf_get(struct btf *btf) in btf_get()
1715 void btf_put(struct btf *btf) in btf_put()
1725 struct btf *btf = env->btf; in env_resolve_init() local
1803 const struct btf *btf = env->btf; in env_stack_push() local
1841 struct btf *btf = env->btf; in env_stack_pop_resolved() local
1875 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, in __btf_resolve_size()
1945 btf_resolve_size(const struct btf *btf, const struct btf_type *type, in btf_resolve_size()
1951 static u32 btf_resolved_type_id(const struct btf *btf, u32 type_id) in btf_resolved_type_id()
1960 static const struct btf_type *btf_type_id_resolve(const struct btf *btf, in btf_type_id_resolve()
1967 static u32 btf_resolved_type_size(const struct btf *btf, u32 type_id) in btf_resolved_type_size()
1975 const struct btf_type *btf_type_id_size(const struct btf *btf, in btf_type_id_size()
2067 static void btf_df_show(const struct btf *btf, const struct btf_type *t, in btf_df_show()
2335 static void btf_int_bits_show(const struct btf *btf, in btf_int_bits_show()
2354 static void btf_int_show(const struct btf *btf, const struct btf_type *t, in btf_int_show()
2441 struct btf *btf = env->btf; in btf_modifier_check_member() local
2466 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2563 struct btf *btf = env->btf; in btf_modifier_resolve() local
2605 struct btf *btf = env->btf; in btf_var_resolve() local
2651 struct btf *btf = env->btf; in btf_ptr_resolve() local
2702 static void btf_modifier_show(const struct btf *btf, in btf_modifier_show()
2715 static void btf_var_show(const struct btf *btf, const struct btf_type *t, in btf_var_show()
2724 static void btf_ptr_show(const struct btf *btf, const struct btf_type *t, in btf_ptr_show()
2815 struct btf *btf = env->btf; in btf_array_check_member() local
2895 struct btf *btf = env->btf; in btf_array_resolve() local
2963 static void __btf_array_show(const struct btf *btf, const struct btf_type *t, in __btf_array_show()
3016 static void btf_array_show(const struct btf *btf, const struct btf_type *t, in btf_array_show()
3090 struct btf *btf = env->btf; in btf_struct_check_meta() local
3260 static int btf_find_struct(const struct btf *btf, const struct btf_type *t, in btf_find_struct()
3273 static int btf_find_kptr(const struct btf *btf, const struct btf_type *t, in btf_find_kptr()
3313 const char *btf_find_decl_tag_value(const struct btf *btf, const struct btf_type *pt, in btf_find_decl_tag_value()
3341 btf_find_graph_root(const struct btf *btf, const struct btf_type *pt, in btf_find_graph_root()
3426 static int btf_find_struct_field(const struct btf *btf, in btf_find_struct_field()
3495 static int btf_find_datasec_var(const struct btf *btf, const struct btf_type *t, in btf_find_datasec_var()
3562 static int btf_find_field(const struct btf *btf, const struct btf_type *t, in btf_find_field()
3573 static int btf_parse_kptr(const struct btf *btf, struct btf_field *field, in btf_parse_kptr()
3664 static int btf_parse_graph_root(const struct btf *btf, in btf_parse_graph_root()
3708 static int btf_parse_list_head(const struct btf *btf, struct btf_field *field, in btf_parse_list_head()
3715 static int btf_parse_rb_root(const struct btf *btf, struct btf_field *field, in btf_parse_rb_root()
3734 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, in btf_parse_fields()
3843 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec) in btf_check_and_fixup_fields()
3915 static void __btf_struct_show(const struct btf *btf, const struct btf_type *t, in __btf_struct_show()
3962 static void btf_struct_show(const struct btf *btf, const struct btf_type *t, in btf_struct_show()
4070 struct btf *btf = env->btf; in btf_enum_check_meta() local
4130 static void btf_enum_show(const struct btf *btf, const struct btf_type *t, in btf_enum_show()
4178 struct btf *btf = env->btf; in btf_enum64_check_meta() local
4233 static void btf_enum64_show(const struct btf *btf, const struct btf_type *t, in btf_enum64_show()
4553 struct btf *btf = env->btf; in btf_datasec_resolve() local
4595 static void btf_datasec_show(const struct btf *btf, in btf_datasec_show()
4752 struct btf *btf = env->btf; in btf_decl_tag_resolve() local
4812 const struct btf *btf; in btf_func_proto_check() local
4907 const struct btf *btf; in btf_func_check() local
4996 struct btf *btf = env->btf; in btf_check_all_metas() local
5025 struct btf *btf = env->btf; in btf_resolve_valid() local
5097 struct btf *btf = env->btf; in btf_check_all_types() local
5155 struct btf *btf = env->btf; in btf_parse_str_sec() local
5202 const struct btf *btf; in btf_check_sec_info() local
5253 struct btf *btf; in btf_parse_hdr() local
5323 btf_parse_struct_metas(struct bpf_verifier_log *log, struct btf *btf) in btf_parse_struct_metas()
5408 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta()
5420 struct btf *btf, int start_id) in btf_check_type_tags()
5487 struct btf *btf = NULL; in btf_parse() local
5651 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type()
5721 static int btf_validate_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_validate_prog_ctx_type()
5856 struct btf *btf, in btf_translate_to_vmlinux()
5893 struct btf *btf = NULL; in BTF_ID() local
5962 struct btf *btf = NULL, *base_btf; in btf_parse_module() local
6043 static bool is_int_ptr(struct btf *btf, const struct btf_type *t) in is_int_ptr()
6051 static u32 get_ctx_arg_idx(struct btf *btf, const struct btf_type *func_proto, in get_ctx_arg_idx()
6101 struct btf *btf = bpf_prog_get_target_btf(prog); in btf_ctx_access() local
6295 static int btf_struct_walk(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_walk()
6560 const struct btf *btf = reg->btf; in btf_struct_access() local
6644 const struct btf *btf, u32 id, int off, in btf_struct_ids_match()
6682 static int __get_type_size(struct btf *btf, u32 btf_id, in __get_type_size()
6718 struct btf *btf, in btf_distill_func_proto()
6930 static bool btf_is_dynptr_ptr(const struct btf *btf, const struct btf_type *t) in btf_is_dynptr_ptr()
6964 struct btf *btf = prog->aux->btf; in btf_prepare_func_args() local
7122 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_show()
7140 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, in btf_type_seq_show_flags()
7154 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_seq_show()
7190 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_snprintf_show()
7214 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() local
7233 static int __btf_new_fd(struct btf *btf) in __btf_new_fd()
7240 struct btf *btf; in btf_new_fd() local
7268 struct btf *btf; in btf_get_by_fd() local
7288 int btf_get_info_by_fd(const struct btf *btf, in btf_get_info_by_fd()
7350 struct btf *btf; in btf_get_fd_by_id() local
7369 u32 btf_obj_id(const struct btf *btf) in btf_obj_id()
7374 bool btf_is_kernel(const struct btf *btf) in btf_is_kernel()
7379 bool btf_is_module(const struct btf *btf) in btf_is_module()
7392 struct btf *btf; member
7405 const struct btf *btf = bin_attr->private; in btf_module_read() local
7418 struct btf *btf; in btf_module_notify() local
7532 struct module *btf_try_get_module(const struct btf *btf) in btf_try_get_module()
7567 struct btf *btf = NULL; in btf_get_module_btf() local
7594 struct btf *btf = NULL; in BPF_CALL_4() local
7706 static int btf_check_kfunc_protos(struct btf *btf, u32 func_id, u32 func_flags) in btf_check_kfunc_protos()
7737 static int btf_populate_kfunc_set(struct btf *btf, enum btf_kfunc_hook hook, in btf_populate_kfunc_set()
7851 static u32 *__btf_kfunc_id_set_contains(const struct btf *btf, in __btf_kfunc_id_set_contains()
7923 u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains()
7939 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id, in btf_kfunc_is_modify_return()
7948 struct btf *btf; in __register_btf_kfunc_id_set() local
7996 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc()
8013 static int btf_check_dtor_kfuncs(struct btf *btf, const struct btf_id_dtor_kfunc *dtors, u32 cnt) in btf_check_dtor_kfuncs()
8055 struct btf *btf; in register_btf_id_dtor_kfuncs() local
8191 const struct btf *btf; member
8301 static void __purge_cand_cache(struct btf *btf, struct bpf_cand_cache **cache, in __purge_cand_cache()
8333 static void purge_cand_cache(struct btf *btf) in purge_cand_cache()
8551 struct btf *btf = reg->btf; in btf_nested_type_is_trusted() local