H A D | btf.c | 252 struct btf { global() struct 254 typesbtf global() argument 259 hdrbtf global() argument 266 kfunc_set_tabbtf global() argument 267 dtor_kfunc_tabbtf global() argument 268 struct_meta_tabbtf global() argument 269 struct_ops_tabbtf global() argument 272 base_btfbtf global() argument 276 kernel_btfbtf global() argument 286 base_id_mapbtf global() argument 313 struct btf *btf; global() member 419 const struct btf *btf; global() member 529 btf_is_vmlinux(const struct btf * btf) btf_is_vmlinux() argument 534 btf_nr_types(const struct btf * btf) btf_nr_types() argument 546 btf_find_by_name_kind(const struct btf * btf,const char * name,u8 kind) btf_find_by_name_kind() argument 568 struct btf *btf; bpf_find_btf_id() local 611 btf_type_skip_modifiers(const struct btf * btf,u32 id,u32 * res_id) btf_type_skip_modifiers() argument 627 btf_type_resolve_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_ptr() argument 639 btf_type_resolve_func_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_func_ptr() argument 755 btf_name_offset_valid(const struct btf * btf,u32 offset) btf_name_offset_valid() argument 777 btf_str_by_offset(const struct btf * btf,u32 offset) btf_str_by_offset() argument 789 btf_name_valid_identifier(const struct btf * btf,u32 offset) btf_name_valid_identifier() argument 811 btf_name_valid_section(const struct btf * btf,u32 offset) btf_name_valid_section() argument 831 __btf_name_by_offset(const struct btf * btf,u32 offset) __btf_name_by_offset() argument 842 btf_name_by_offset(const struct btf * btf,u32 offset) btf_name_by_offset() argument 847 btf_type_by_id(const struct btf * btf,u32 type_id) btf_type_by_id() argument 886 btf_member_is_reg_int(const struct btf * btf,const struct btf_type * s,const struct btf_member * m,u32 expected_offset,u32 expected_size) btf_member_is_reg_int() argument 924 btf_type_skip_qualifiers(const struct btf * btf,u32 id) btf_type_skip_qualifiers() argument 1436 struct btf *btf = env->btf; __btf_verifier_log_type() local 1486 struct btf *btf = env->btf; btf_verifier_log_member() local 1564 const struct btf *btf = env->btf; btf_verifier_log_hdr() local 1586 struct btf *btf = env->btf; btf_add_type() local 1629 btf_alloc_id(struct btf * btf) btf_alloc_id() argument 1647 btf_free_id(struct btf * btf) btf_free_id() argument 1665 btf_free_kfunc_set_tab(struct btf * btf) btf_free_kfunc_set_tab() argument 1678 btf_free_dtor_kfunc_tab(struct btf * btf) btf_free_dtor_kfunc_tab() argument 1699 btf_free_struct_meta_tab(struct btf * btf) btf_free_struct_meta_tab() argument 1707 btf_free_struct_ops_tab(struct btf * btf) btf_free_struct_ops_tab() argument 1722 btf_free(struct btf * btf) btf_free() argument 1742 struct btf *btf = container_of(rcu, struct btf, rcu); btf_free_rcu() local 1747 btf_get_name(const struct btf * btf) btf_get_name() argument 1752 btf_get(struct btf * btf) btf_get() argument 1757 btf_put(struct btf * btf) btf_put() argument 1765 btf_base_btf(const struct btf * btf) btf_base_btf() argument 1770 btf_header(const struct btf * btf) btf_header() argument 1775 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument 1784 struct btf *btf = env->btf; env_resolve_init() local 1862 const struct btf *btf = env->btf; env_stack_push() local 1900 struct btf *btf = env->btf; env_stack_pop_resolved() local 1934 __btf_resolve_size(const struct btf * btf,const struct btf_type * type,u32 * type_size,const struct btf_type ** elem_type,u32 * elem_id,u32 * total_nelems,u32 * type_id) __btf_resolve_size() argument 2004 btf_resolve_size(const struct btf * btf,const struct btf_type * type,u32 * type_size) btf_resolve_size() argument 2010 btf_resolved_type_id(const struct btf * btf,u32 type_id) btf_resolved_type_id() argument 2019 btf_type_id_resolve(const struct btf * btf,u32 * type_id) btf_type_id_resolve() argument 2026 btf_resolved_type_size(const struct btf * btf,u32 type_id) btf_resolved_type_size() argument 2034 btf_type_id_size(const struct btf * btf,u32 * type_id,u32 * ret_size) btf_type_id_size() argument 2126 btf_df_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offsets,struct btf_show * show) btf_df_show() argument 2394 btf_int_bits_show(const struct btf * btf,const struct btf_type * t,void * data,u8 bits_offset,struct btf_show * show) btf_int_bits_show() argument 2413 btf_int_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_int_show() argument 2500 struct btf *btf = env->btf; btf_modifier_check_member() local 2525 struct btf *btf = env->btf; btf_modifier_check_kflag_member() local 2622 struct btf *btf = env->btf; btf_modifier_resolve() local 2664 struct btf *btf = env->btf; btf_var_resolve() local 2710 struct btf *btf = env->btf; btf_ptr_resolve() local 2761 btf_modifier_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_modifier_show() argument 2774 btf_var_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_var_show() argument 2783 btf_ptr_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_ptr_show() argument 2874 struct btf *btf = env->btf; btf_array_check_member() local 2954 struct btf *btf = env->btf; btf_array_resolve() local 3022 __btf_array_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) __btf_array_show() argument 3075 btf_array_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_array_show() argument 3149 struct btf *btf = env->btf; btf_struct_check_meta() local 3319 btf_find_struct(const struct btf * btf,const struct btf_type * t,u32 off,int sz,enum btf_field_type field_type,struct btf_field_info * info) btf_find_struct() argument 3332 btf_find_kptr(const struct btf * btf,const struct btf_type * t,u32 off,int sz,struct btf_field_info * info,u32 field_mask) btf_find_kptr() argument 3380 btf_find_next_decl_tag(const struct btf * btf,const struct btf_type * pt,int comp_idx,const char * tag_key,int last_id) btf_find_next_decl_tag() argument 3402 btf_find_decl_tag_value(const struct btf * btf,const struct btf_type * pt,int comp_idx,const char * tag_key) btf_find_decl_tag_value() argument 3426 btf_find_graph_root(const struct btf * btf,const struct btf_type * pt,const struct btf_type * t,int comp_idx,u32 off,int sz,struct btf_field_info * info,enum btf_field_type head_type) btf_find_graph_root() argument 3468 btf_get_field_type(const struct btf * btf,const struct btf_type * var_type,u32 field_mask,u32 * seen_mask,int * align,int * sz) btf_get_field_type() argument 3587 btf_find_nested_struct(const struct btf * btf,const struct btf_type * t,u32 off,u32 nelems,u32 field_mask,struct btf_field_info * info,int info_cnt,u32 level) btf_find_nested_struct() argument 3620 btf_find_field_one(const struct btf * btf,const struct btf_type * var,const struct btf_type * var_type,int var_idx,u32 off,u32 expected_size,u32 field_mask,u32 * seen_mask,struct btf_field_info * info,int info_cnt,u32 level) btf_find_field_one() argument 3716 btf_find_struct_field(const struct btf * btf,const struct btf_type * t,u32 field_mask,struct btf_field_info * info,int info_cnt,u32 level) btf_find_struct_field() argument 3746 btf_find_datasec_var(const struct btf * btf,const struct btf_type * t,u32 field_mask,struct btf_field_info * info,int info_cnt,u32 level) btf_find_datasec_var() argument 3770 btf_find_field(const struct btf * btf,const struct btf_type * t,u32 field_mask,struct btf_field_info * info,int info_cnt) btf_find_field() argument 3782 btf_parse_kptr(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_kptr() argument 3872 btf_parse_graph_root(const struct btf * btf,struct btf_field * field,struct btf_field_info * info,const char * node_type_name,size_t node_type_align) btf_parse_graph_root() argument 3916 btf_parse_list_head(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_list_head() argument 3923 btf_parse_rb_root(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_rb_root() argument 3942 btf_parse_fields(const struct btf * btf,const struct btf_type * t,u32 field_mask,u32 value_size) btf_parse_fields() argument 4070 btf_check_and_fixup_fields(const struct btf * btf,struct btf_record * rec) btf_check_and_fixup_fields() argument 4158 __btf_struct_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) __btf_struct_show() argument 4205 btf_struct_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_struct_show() argument 4313 struct btf *btf = env->btf; btf_enum_check_meta() local 4373 btf_enum_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_enum_show() argument 4421 struct btf *btf = env->btf; btf_enum64_check_meta() local 4476 btf_enum64_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_enum64_show() argument 4796 struct btf *btf = env->btf; btf_datasec_resolve() local 4838 btf_datasec_show(const struct btf * btf,const struct btf_type * t,u32 type_id,void * data,u8 bits_offset,struct btf_show * show) btf_datasec_show() argument 4990 struct btf *btf = env->btf; btf_decl_tag_resolve() local 5050 const struct btf *btf; btf_func_proto_check() local 5145 const struct btf *btf; btf_func_check() local 5234 struct btf *btf = env->btf; btf_check_all_metas() local 5263 struct btf *btf = env->btf; btf_resolve_valid() local 5335 struct btf *btf = env->btf; btf_check_all_types() local 5393 struct btf *btf = env->btf; btf_parse_str_sec() local 5440 const struct btf *btf; btf_check_sec_info() local 5491 struct btf *btf; btf_parse_hdr() local 5561 btf_parse_struct_metas(struct bpf_verifier_log * log,struct btf * btf) btf_parse_struct_metas() argument 5682 btf_find_struct_meta(const struct btf * btf,u32 btf_id) btf_find_struct_meta() argument 5694 btf_check_type_tags(struct btf_verifier_env * env,struct btf * btf,int start_id) btf_check_type_tags() argument 5761 struct btf *btf = NULL; btf_parse() local 5933 btf_is_prog_ctx_type(struct bpf_verifier_log * log,const struct btf * btf,const struct btf_type * t,enum bpf_prog_type prog_type,int arg) btf_is_prog_ctx_type() argument 6019 btf_validate_prog_ctx_type(struct bpf_verifier_log * log,const struct btf * btf,const struct btf_type * t,int arg,enum bpf_prog_type prog_type,enum bpf_attach_type attach_type) btf_validate_prog_ctx_type() argument 6154 btf_translate_to_vmlinux(struct bpf_verifier_log * log,struct btf * btf,const struct btf_type * t,enum bpf_prog_type prog_type,int arg) btf_translate_to_vmlinux() argument 6190 struct btf *btf = NULL; BTF_ID() local 6242 struct btf *btf; btf_parse_vmlinux() local 6271 btf_relocate_id(const struct btf * btf,__u32 id) btf_relocate_id() argument 6284 struct btf *btf = NULL, *vmlinux_btf, *base_btf = NULL; btf_parse_module() local 6386 is_int_ptr(struct btf * btf,const struct btf_type * t) is_int_ptr() argument 6394 get_ctx_arg_idx(struct btf * btf,const struct btf_type * func_proto,int off) get_ctx_arg_idx() argument 6438 btf_ctx_arg_offset(const struct btf * btf,const struct btf_type * func_proto,u32 arg_no) btf_ctx_arg_offset() argument 6660 struct btf *btf = bpf_prog_get_target_btf(prog); btf_ctx_access() local 6815 struct btf *btf = prog->aux->attach_btf; btf_ctx_access() local 6911 btf_struct_walk(struct bpf_verifier_log * log,const struct btf * btf,const struct btf_type * t,int off,int size,u32 * next_btf_id,enum bpf_type_flag * flag,const char ** field_name) btf_struct_walk() argument 7176 const struct btf *btf = reg->btf; btf_struct_access() local 7260 btf_struct_ids_match(struct bpf_verifier_log * log,const struct btf * btf,u32 id,int off,const struct btf * need_btf,u32 need_type_id,bool strict) btf_struct_ids_match() argument 7298 __get_type_size(struct btf * btf,u32 btf_id,const struct btf_type ** ret_type) __get_type_size() argument 7334 btf_distill_func_proto(struct bpf_verifier_log * log,struct btf * btf,const struct btf_type * func,const char * tname,struct btf_func_model * m) btf_distill_func_proto() argument 7546 btf_is_dynptr_ptr(const struct btf * btf,const struct btf_type * t) btf_is_dynptr_ptr() argument 7571 const struct btf *btf; global() member 7582 btf_get_ptr_to_btf_id(struct bpf_verifier_log * log,int arg_idx,const struct btf * btf,const struct btf_type * t) btf_get_ptr_to_btf_id() argument 7655 struct btf *btf = prog->aux->btf; btf_prepare_func_args() local 7859 btf_type_show(const struct btf * btf,u32 type_id,void * obj,struct btf_show * show) btf_type_show() argument 7877 btf_type_seq_show_flags(const struct btf * btf,u32 type_id,void * obj,struct seq_file * m,u64 flags) btf_type_seq_show_flags() argument 7891 btf_type_seq_show(const struct btf * btf,u32 type_id,void * obj,struct seq_file * m) btf_type_seq_show() argument 7927 btf_type_snprintf_show(const struct btf * btf,u32 type_id,void * obj,char * buf,int len,u64 flags) btf_type_snprintf_show() argument 7951 const struct btf *btf = filp->private_data; bpf_btf_show_fdinfo() local 7970 __btf_new_fd(struct btf * btf) __btf_new_fd() argument 7977 struct btf *btf; btf_new_fd() local 8005 struct btf *btf; btf_get_by_fd() local 8015 btf_get_info_by_fd(const struct btf * btf,const union bpf_attr * attr,union bpf_attr __user * uattr) btf_get_info_by_fd() argument 8077 struct btf *btf; btf_get_fd_by_id() local 8096 btf_obj_id(const struct btf * btf) btf_obj_id() argument 8101 btf_is_kernel(const struct btf * btf) btf_is_kernel() argument 8106 btf_is_module(const struct btf * btf) btf_is_module() argument 8119 struct btf *btf; global() member 8134 struct btf *btf; btf_module_notify() local 8249 btf_try_get_module(const struct btf * btf) btf_try_get_module() argument 8284 struct btf *btf = NULL; btf_get_module_btf() local 8322 struct btf *btf = NULL; BPF_CALL_4() local 8390 btf_check_iter_kfuncs(struct btf * btf,const char * func_name,const struct btf_type * func,u32 func_flags) btf_check_iter_kfuncs() argument 8456 btf_check_kfunc_protos(struct btf * btf,u32 func_id,u32 func_flags) btf_check_kfunc_protos() argument 8487 btf_populate_kfunc_set(struct btf * btf,enum btf_kfunc_hook hook,const struct btf_kfunc_id_set * kset) btf_populate_kfunc_set() argument 8598 __btf_kfunc_id_set_contains(const struct btf * btf,enum btf_kfunc_hook hook,u32 kfunc_btf_id,const struct bpf_prog * prog) __btf_kfunc_id_set_contains() argument 8679 btf_kfunc_id_set_contains(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_id_set_contains() argument 8695 btf_kfunc_is_modify_return(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_is_modify_return() argument 8704 struct btf *btf; __register_btf_kfunc_id_set() local 8753 btf_find_dtor_kfunc(struct btf * btf,u32 btf_id) btf_find_dtor_kfunc() argument 8770 btf_check_dtor_kfuncs(struct btf * btf,const struct btf_id_dtor_kfunc * dtors,u32 cnt) btf_check_dtor_kfuncs() argument 8812 struct btf *btf; register_btf_id_dtor_kfuncs() local 9043 __purge_cand_cache(struct btf * btf,struct bpf_cand_cache ** cache,int cache_size) __purge_cand_cache() argument 9075 purge_cand_cache(struct btf * btf) purge_cand_cache() argument 9302 struct btf *btf = reg->btf; btf_nested_type_is_trusted() local 9402 btf_add_struct_ops(struct btf * btf,struct bpf_struct_ops * st_ops,struct bpf_verifier_log * log) btf_add_struct_ops() argument 9446 bpf_struct_ops_find_value(struct btf * btf,u32 value_id) bpf_struct_ops_find_value() argument 9468 bpf_struct_ops_find(struct btf * btf,u32 type_id) bpf_struct_ops_find() argument 9492 struct btf *btf; __register_bpf_struct_ops() local 9520 btf_param_match_suffix(const struct btf * btf,const struct btf_param * arg,const char * suffix) btf_param_match_suffix() argument [all...] |