Lines Matching defs:btf

253 struct btf {  struct
255 struct btf_type **types; argument
260 struct btf_header hdr; argument
267 struct btf_kfunc_set_tab *kfunc_set_tab; argument
268 struct btf_id_dtor_kfunc_tab *dtor_kfunc_tab; argument
269 struct btf_struct_metas *struct_meta_tab; argument
270 struct btf_struct_ops_tab *struct_ops_tab; argument
273 struct btf *base_btf; argument
277 bool kernel_btf; argument
287 const struct btf_type *t; argument
314 struct btf *btf; member
420 const struct btf *btf; member
530 bool btf_is_vmlinux(const struct btf *btf) in btf_is_vmlinux()
535 u32 btf_nr_types(const struct btf *btf) in btf_nr_types()
547 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind()
569 struct btf *btf; in bpf_find_btf_id() local
612 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers()
628 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr()
640 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr()
756 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
778 const char *btf_str_by_offset(const struct btf *btf, u32 offset) in btf_str_by_offset()
790 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
812 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
832 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
843 const char *btf_name_by_offset(const struct btf *btf, u32 offset) in btf_name_by_offset()
848 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id()
904 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, in btf_member_is_reg_int()
942 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, in btf_type_skip_qualifiers()
1454 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1504 struct btf *btf = env->btf; in btf_verifier_log_member() local
1582 const struct btf *btf = env->btf; in btf_verifier_log_hdr() local
1604 struct btf *btf = env->btf; in btf_add_type() local
1647 static int btf_alloc_id(struct btf *btf) in btf_alloc_id()
1665 static void btf_free_id(struct btf *btf) in btf_free_id()
1683 static void btf_free_kfunc_set_tab(struct btf *btf) in btf_free_kfunc_set_tab()
1696 static void btf_free_dtor_kfunc_tab(struct btf *btf) in btf_free_dtor_kfunc_tab()
1717 static void btf_free_struct_meta_tab(struct btf *btf) in btf_free_struct_meta_tab()
1725 static void btf_free_struct_ops_tab(struct btf *btf) in btf_free_struct_ops_tab()
1740 static void btf_free(struct btf *btf) in btf_free()
1760 struct btf *btf = container_of(rcu, struct btf, rcu); in btf_free_rcu() local
1765 const char *btf_get_name(const struct btf *btf) in btf_get_name()
1770 void btf_get(struct btf *btf) in btf_get()
1775 void btf_put(struct btf *btf) in btf_put()
1783 struct btf *btf_base_btf(const struct btf *btf) in btf_base_btf()
1788 const struct btf_header *btf_header(const struct btf *btf) in btf_header()
1793 void btf_set_base_btf(struct btf *btf, const struct btf *base_btf) in btf_set_base_btf()
1802 struct btf *btf = env->btf; in env_resolve_init() local
1880 const struct btf *btf = env->btf; in env_stack_push() local
1918 struct btf *btf = env->btf; in env_stack_pop_resolved() local
1952 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, in __btf_resolve_size()
2022 btf_resolve_size(const struct btf *btf, const struct btf_type *type, in btf_resolve_size()
2028 static u32 btf_resolved_type_id(const struct btf *btf, u32 type_id) in btf_resolved_type_id()
2037 static const struct btf_type *btf_type_id_resolve(const struct btf *btf, in btf_type_id_resolve()
2044 static u32 btf_resolved_type_size(const struct btf *btf, u32 type_id) in btf_resolved_type_size()
2052 const struct btf_type *btf_type_id_size(const struct btf *btf, in btf_type_id_size()
2144 static void btf_df_show(const struct btf *btf, const struct btf_type *t, in btf_df_show()
2412 static void btf_int_bits_show(const struct btf *btf, in btf_int_bits_show()
2431 static void btf_int_show(const struct btf *btf, const struct btf_type *t, in btf_int_show()
2518 struct btf *btf = env->btf; in btf_modifier_check_member() local
2543 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2640 struct btf *btf = env->btf; in btf_modifier_resolve() local
2682 struct btf *btf = env->btf; in btf_var_resolve() local
2728 struct btf *btf = env->btf; in btf_ptr_resolve() local
2779 static void btf_modifier_show(const struct btf *btf, in btf_modifier_show()
2792 static void btf_var_show(const struct btf *btf, const struct btf_type *t, in btf_var_show()
2801 static void btf_ptr_show(const struct btf *btf, const struct btf_type *t, in btf_ptr_show()
2892 struct btf *btf = env->btf; in btf_array_check_member() local
2972 struct btf *btf = env->btf; in btf_array_resolve() local
3040 static void __btf_array_show(const struct btf *btf, const struct btf_type *t, in __btf_array_show()
3093 static void btf_array_show(const struct btf *btf, const struct btf_type *t, in btf_array_show()
3167 struct btf *btf = env->btf; in btf_struct_check_meta() local
3337 static int btf_find_struct(const struct btf *btf, const struct btf_type *t, in btf_find_struct()
3350 static int btf_find_kptr(const struct btf *btf, const struct btf_type *t, in btf_find_kptr()
3398 int btf_find_next_decl_tag(const struct btf *btf, const struct btf_type *pt, in btf_find_next_decl_tag()
3420 const char *btf_find_decl_tag_value(const struct btf *btf, const struct btf_type *pt, in btf_find_decl_tag_value()
3444 btf_find_graph_root(const struct btf *btf, const struct btf_type *pt, in btf_find_graph_root()
3487 static int btf_get_field_type(const struct btf *btf, const struct btf_type *var_type, in btf_get_field_type()
3606 static int btf_find_nested_struct(const struct btf *btf, const struct btf_type *t, in btf_find_nested_struct()
3639 static int btf_find_field_one(const struct btf *btf, in btf_find_field_one()
3735 static int btf_find_struct_field(const struct btf *btf, in btf_find_struct_field()
3765 static int btf_find_datasec_var(const struct btf *btf, const struct btf_type *t, in btf_find_datasec_var()
3789 static int btf_find_field(const struct btf *btf, const struct btf_type *t, in btf_find_field()
3801 static int btf_parse_kptr(const struct btf *btf, struct btf_field *field, in btf_parse_kptr()
3891 static int btf_parse_graph_root(const struct btf *btf, in btf_parse_graph_root()
3935 static int btf_parse_list_head(const struct btf *btf, struct btf_field *field, in btf_parse_list_head()
3942 static int btf_parse_rb_root(const struct btf *btf, struct btf_field *field, in btf_parse_rb_root()
3961 struct btf_record *btf_parse_fields(const struct btf *btf, const struct btf_type *t, in btf_parse_fields()
4089 int btf_check_and_fixup_fields(const struct btf *btf, struct btf_record *rec) in btf_check_and_fixup_fields()
4177 static void __btf_struct_show(const struct btf *btf, const struct btf_type *t, in __btf_struct_show()
4224 static void btf_struct_show(const struct btf *btf, const struct btf_type *t, in btf_struct_show()
4332 struct btf *btf = env->btf; in btf_enum_check_meta() local
4392 static void btf_enum_show(const struct btf *btf, const struct btf_type *t, in btf_enum_show()
4440 struct btf *btf = env->btf; in btf_enum64_check_meta() local
4495 static void btf_enum64_show(const struct btf *btf, const struct btf_type *t, in btf_enum64_show()
4815 struct btf *btf = env->btf; in btf_datasec_resolve() local
4857 static void btf_datasec_show(const struct btf *btf, in btf_datasec_show()
5009 struct btf *btf = env->btf; in btf_decl_tag_resolve() local
5069 const struct btf *btf; in btf_func_proto_check() local
5164 const struct btf *btf; in btf_func_check() local
5253 struct btf *btf = env->btf; in btf_check_all_metas() local
5282 struct btf *btf = env->btf; in btf_resolve_valid() local
5354 struct btf *btf = env->btf; in btf_check_all_types() local
5412 struct btf *btf = env->btf; in btf_parse_str_sec() local
5459 const struct btf *btf; in btf_check_sec_info() local
5510 struct btf *btf; in btf_parse_hdr() local
5580 btf_parse_struct_metas(struct bpf_verifier_log *log, struct btf *btf) in btf_parse_struct_metas()
5701 struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf, u32 btf_id) in btf_find_struct_meta()
5713 struct btf *btf, int start_id) in btf_check_type_tags()
5780 struct btf *btf = NULL; in btf_parse() local
5952 bool btf_is_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_is_prog_ctx_type()
6038 static int btf_validate_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_validate_prog_ctx_type()
6173 struct btf *btf, in btf_translate_to_vmlinux()
6208 struct btf *btf = NULL; in BTF_ID_LIST_SINGLE() local
6260 struct btf *btf; in btf_parse_vmlinux() local
6289 static __u32 btf_relocate_id(const struct btf *btf, __u32 id) in btf_relocate_id()
6302 struct btf *btf = NULL, *vmlinux_btf, *base_btf = NULL; in btf_parse_module() local
6404 static bool is_void_or_int_ptr(struct btf *btf, const struct btf_type *t) in is_void_or_int_ptr()
6411 u32 btf_ctx_arg_idx(struct btf *btf, const struct btf_type *func_proto, in btf_ctx_arg_idx()
6455 int btf_ctx_arg_offset(const struct btf *btf, const struct btf_type *func_proto, in btf_ctx_arg_offset()
6678 struct btf *btf = bpf_prog_get_target_btf(prog); in btf_ctx_access() local
6830 struct btf *btf = prog->aux->attach_btf; in btf_ctx_access() local
6927 static int btf_struct_walk(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_walk()
7194 const struct btf *btf = reg->btf; in btf_struct_access() local
7281 const struct btf *btf, u32 id, int off, in btf_struct_ids_match()
7319 static int __get_type_size(struct btf *btf, u32 btf_id, in __get_type_size()
7355 struct btf *btf, in btf_distill_func_proto()
7567 static bool btf_is_dynptr_ptr(const struct btf *btf, const struct btf_type *t) in btf_is_dynptr_ptr()
7592 const struct btf *btf; member
7603 const struct btf *btf, const struct btf_type *t) in btf_get_ptr_to_btf_id()
7677 struct btf *btf = prog->aux->btf; in btf_prepare_func_args() local
7915 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_show()
7933 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, in btf_type_seq_show_flags()
7947 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_seq_show()
7983 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_snprintf_show()
8007 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() local
8026 static int __btf_new_fd(struct btf *btf) in __btf_new_fd()
8033 struct btf *btf; in btf_new_fd() local
8061 struct btf *btf; in btf_get_by_fd() local
8071 int btf_get_info_by_fd(const struct btf *btf, in btf_get_info_by_fd()
8133 struct btf *btf; in btf_get_fd_by_id() local
8152 u32 btf_obj_id(const struct btf *btf) in btf_obj_id()
8157 bool btf_is_kernel(const struct btf *btf) in btf_is_kernel()
8162 bool btf_is_module(const struct btf *btf) in btf_is_module()
8175 struct btf *btf; member
8190 struct btf *btf; in btf_module_notify() local
8305 struct module *btf_try_get_module(const struct btf *btf) in btf_try_get_module()
8340 struct btf *btf = NULL; in btf_get_module_btf() local
8378 struct btf *btf = NULL; in BPF_CALL_4() local
8446 static int btf_check_iter_kfuncs(struct btf *btf, const char *func_name, in btf_check_iter_kfuncs()
8512 static int btf_check_kfunc_protos(struct btf *btf, u32 func_id, u32 func_flags) in btf_check_kfunc_protos()
8543 static int btf_populate_kfunc_set(struct btf *btf, enum btf_kfunc_hook hook, in btf_populate_kfunc_set()
8654 static u32 *__btf_kfunc_id_set_contains(const struct btf *btf, in __btf_kfunc_id_set_contains()
8735 u32 *btf_kfunc_id_set_contains(const struct btf *btf, in btf_kfunc_id_set_contains()
8751 u32 *btf_kfunc_is_modify_return(const struct btf *btf, u32 kfunc_btf_id, in btf_kfunc_is_modify_return()
8760 struct btf *btf; in __register_btf_kfunc_id_set() local
8809 s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id) in btf_find_dtor_kfunc()
8826 static int btf_check_dtor_kfuncs(struct btf *btf, const struct btf_id_dtor_kfunc *dtors, u32 cnt) in btf_check_dtor_kfuncs()
8868 struct btf *btf; in register_btf_id_dtor_kfuncs() local
9099 static void __purge_cand_cache(struct btf *btf, struct bpf_cand_cache **cache, in __purge_cand_cache()
9131 static void purge_cand_cache(struct btf *btf) in purge_cand_cache()
9358 struct btf *btf = reg->btf; in btf_nested_type_is_trusted() local
9458 btf_add_struct_ops(struct btf *btf, struct bpf_struct_ops *st_ops, in btf_add_struct_ops()
9500 bpf_struct_ops_find_value(struct btf *btf, u32 value_id) in bpf_struct_ops_find_value()
9522 bpf_struct_ops_find(struct btf *btf, u32 type_id) in bpf_struct_ops_find()
9546 struct btf *btf; in __register_bpf_struct_ops() local
9574 bool btf_param_match_suffix(const struct btf *btf, in btf_param_match_suffix()