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
353 const struct btf *btf; member
462 u32 btf_nr_types(const struct btf *btf) in btf_nr_types()
474 s32 btf_find_by_name_kind(const struct btf *btf, const char *name, u8 kind) in btf_find_by_name_kind()
494 const struct btf_type *btf_type_skip_modifiers(const struct btf *btf, in btf_type_skip_modifiers()
510 const struct btf_type *btf_type_resolve_ptr(const struct btf *btf, in btf_type_resolve_ptr()
522 const struct btf_type *btf_type_resolve_func_ptr(const struct btf *btf, in btf_type_resolve_func_ptr()
624 static bool btf_name_offset_valid(const struct btf *btf, u32 offset) in btf_name_offset_valid()
647 static const char *btf_str_by_offset(const struct btf *btf, u32 offset) in btf_str_by_offset()
659 static bool __btf_name_valid(const struct btf *btf, u32 offset, bool dot_ok) in __btf_name_valid()
683 static bool btf_name_valid_identifier(const struct btf *btf, u32 offset) in btf_name_valid_identifier()
688 static bool btf_name_valid_section(const struct btf *btf, u32 offset) in btf_name_valid_section()
693 static const char *__btf_name_by_offset(const struct btf *btf, u32 offset) in __btf_name_by_offset()
704 const char *btf_name_by_offset(const struct btf *btf, u32 offset) in btf_name_by_offset()
709 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id()
747 bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, in btf_member_is_reg_int()
785 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, in btf_type_skip_qualifiers()
1296 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1340 struct btf *btf = env->btf; in btf_verifier_log_member() local
1411 const struct btf *btf = env->btf; in btf_verifier_log_hdr() local
1433 struct btf *btf = env->btf; in btf_add_type() local
1476 static int btf_alloc_id(struct btf *btf) in btf_alloc_id()
1494 static void btf_free_id(struct btf *btf) in btf_free_id()
1512 static void btf_free(struct btf *btf) in btf_free()
1523 struct btf *btf = container_of(rcu, struct btf, rcu); in btf_free_rcu() local
1528 void btf_get(struct btf *btf) in btf_get()
1533 void btf_put(struct btf *btf) in btf_put()
1543 struct btf *btf = env->btf; in env_resolve_init() local
1621 const struct btf *btf = env->btf; in env_stack_push() local
1659 struct btf *btf = env->btf; in env_stack_pop_resolved() local
1693 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, in __btf_resolve_size()
1761 btf_resolve_size(const struct btf *btf, const struct btf_type *type, in btf_resolve_size()
1767 static u32 btf_resolved_type_id(const struct btf *btf, u32 type_id) in btf_resolved_type_id()
1776 static const struct btf_type *btf_type_id_resolve(const struct btf *btf, in btf_type_id_resolve()
1783 static u32 btf_resolved_type_size(const struct btf *btf, u32 type_id) in btf_resolved_type_size()
1791 const struct btf_type *btf_type_id_size(const struct btf *btf, in btf_type_id_size()
1883 static void btf_df_show(const struct btf *btf, const struct btf_type *t, in btf_df_show()
2151 static void btf_int_bits_show(const struct btf *btf, in btf_int_bits_show()
2170 static void btf_int_show(const struct btf *btf, const struct btf_type *t, in btf_int_show()
2257 struct btf *btf = env->btf; in btf_modifier_check_member() local
2282 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2371 struct btf *btf = env->btf; in btf_modifier_resolve() local
2413 struct btf *btf = env->btf; in btf_var_resolve() local
2459 struct btf *btf = env->btf; in btf_ptr_resolve() local
2510 static void btf_modifier_show(const struct btf *btf, in btf_modifier_show()
2523 static void btf_var_show(const struct btf *btf, const struct btf_type *t, in btf_var_show()
2532 static void btf_ptr_show(const struct btf *btf, const struct btf_type *t, in btf_ptr_show()
2623 struct btf *btf = env->btf; in btf_array_check_member() local
2703 struct btf *btf = env->btf; in btf_array_resolve() local
2771 static void __btf_array_show(const struct btf *btf, const struct btf_type *t, in __btf_array_show()
2824 static void btf_array_show(const struct btf *btf, const struct btf_type *t, in btf_array_show()
2898 struct btf *btf = env->btf; in btf_struct_check_meta() local
3049 static int btf_find_struct_field(const struct btf *btf, const struct btf_type *t, in btf_find_struct_field()
3078 static int btf_find_datasec_var(const struct btf *btf, const struct btf_type *t, in btf_find_datasec_var()
3106 static int btf_find_field(const struct btf *btf, const struct btf_type *t, in btf_find_field()
3121 int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t) in btf_find_spin_lock()
3128 int btf_find_timer(const struct btf *btf, const struct btf_type *t) in btf_find_timer()
3135 static void __btf_struct_show(const struct btf *btf, const struct btf_type *t, in __btf_struct_show()
3182 static void btf_struct_show(const struct btf *btf, const struct btf_type *t, in btf_struct_show()
3290 struct btf *btf = env->btf; in btf_enum_check_meta() local
3353 static void btf_enum_show(const struct btf *btf, const struct btf_type *t, in btf_enum_show()
3655 struct btf *btf = env->btf; in btf_datasec_resolve() local
3696 static void btf_datasec_show(const struct btf *btf, in btf_datasec_show()
3809 const struct btf *btf; in btf_func_proto_check() local
3898 const struct btf *btf; in btf_func_check() local
3984 struct btf *btf = env->btf; in btf_check_all_metas() local
4013 struct btf *btf = env->btf; in btf_resolve_valid() local
4081 struct btf *btf = env->btf; in btf_check_all_types() local
4145 struct btf *btf = env->btf; in btf_parse_str_sec() local
4192 const struct btf *btf; in btf_check_sec_info() local
4243 struct btf *btf; in btf_parse_hdr() local
4314 struct btf *btf = NULL; in btf_parse() local
4428 btf_get_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, in btf_get_prog_ctx_type()
4496 static int btf_vmlinux_map_ids_init(const struct btf *btf, in btf_vmlinux_map_ids_init()
4521 struct btf *btf, in btf_translate_to_vmlinux()
4542 struct btf *btf = NULL; in BTF_ID() local
4612 struct btf *btf = NULL, *base_btf; in btf_parse_module() local
4689 static bool is_string_ptr(struct btf *btf, const struct btf_type *t) in is_string_ptr()
4708 struct btf *btf = bpf_prog_get_target_btf(prog); in btf_ctx_access() local
4886 static int btf_struct_walk(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_walk()
5112 int btf_struct_access(struct bpf_verifier_log *log, const struct btf *btf, in btf_struct_access()
5169 const struct btf *btf, u32 id, int off, in btf_struct_ids_match()
5200 static int __get_type_size(struct btf *btf, u32 btf_id, in __get_type_size()
5225 struct btf *btf, in btf_distill_func_proto()
5439 const struct btf *btf, u32 func_id, in btf_check_func_arg_match()
5582 struct btf *btf = prog->aux->btf; in btf_check_subprog_arg_match() local
5610 const struct btf *btf, u32 func_id, in btf_check_kfunc_arg_match()
5629 struct btf *btf = prog->aux->btf; in btf_prepare_func_args() local
5733 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_show()
5751 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, in btf_type_seq_show_flags()
5765 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_seq_show()
5801 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, in btf_type_snprintf_show()
5825 const struct btf *btf = filp->private_data; in bpf_btf_show_fdinfo() local
5844 static int __btf_new_fd(struct btf *btf) in __btf_new_fd()
5851 struct btf *btf; in btf_new_fd() local
5882 struct btf *btf; in btf_get_by_fd() local
5902 int btf_get_info_by_fd(const struct btf *btf, in btf_get_info_by_fd()
5964 struct btf *btf; in btf_get_fd_by_id() local
5983 u32 btf_obj_id(const struct btf *btf) in btf_obj_id()
5988 bool btf_is_kernel(const struct btf *btf) in btf_is_kernel()
5993 bool btf_is_module(const struct btf *btf) in btf_is_module()
6014 struct btf *btf; member
6026 const struct btf *btf = bin_attr->private; in btf_module_read() local
6037 struct btf *btf; in btf_module_notify() local
6133 struct module *btf_try_get_module(const struct btf *btf) in btf_try_get_module()
6157 struct btf *btf; in BPF_CALL_4() local