Home
last modified time | relevance | path

Searched defs:btf (Results 1 – 25 of 71) sorted by relevance

123

/linux/tools/lib/bpf/
H A Dbtf.c33 struct btf { struct
35 void *raw_data;
37 void *raw_data_swapped;
38 __u32 raw_size;
62 * and cached again if user calls btf__raw_data(), at which point argument
79 struct btf_header *hdr; argument
99 struct btf *base_btf; argument
121 /* whether base_btf should be freed in btf_free for this instance */ argument
122 bool owns_base;
125 bool raw_data_is_mmap;
[all …]
H A Drelo_core.h10 const struct btf *btf; member
30 const struct btf *btf; member
/linux/kernel/bpf/
H A Dbtf.c252 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...]
H A Dbpf_struct_ops.c43 struct btf *btf; member
89 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type() argument
159 find_stub_func_proto(const struct btf * btf,const char * st_op_name,const char * member_name) find_stub_func_proto() argument
203 prepare_arg_info(struct btf * btf,const char * st_ops_name,const char * member_name,const struct btf_type * func_proto,struct bpf_struct_ops_arg_info * arg_info) prepare_arg_info() argument
313 is_module_member(const struct btf * btf,u32 id) is_module_member() argument
328 bpf_struct_ops_desc_init(struct bpf_struct_ops_desc * st_ops_desc,struct btf * btf,struct bpf_verifier_log * log) bpf_struct_ops_desc_init() argument
523 check_zero_holes(const struct btf * btf,const struct btf_type * t,void * data) check_zero_holes() argument
992 count_func_ptrs(const struct btf * btf,const struct btf_type * t) count_func_ptrs() argument
1013 struct btf *btf; bpf_struct_ops_map_alloc() local
[all...]
H A Dlog.c386 const struct btf *btf; in verbose_linfo() local
430 static const char *btf_type_name(const struct btf *btf, u32 id) in btf_type_name()
509 const char *iter_type_str(const struct btf *btf, u32 btf_id) in iter_type_str()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_dump.c26 static int btf_dump_all_types(const struct btf *btf, void *ctx) in btf_dump_all_types() argument
51 struct btf *btf = NULL; in test_btf_dump_case() local
135 struct btf *btf = NULL; test_btf_dump_incremental() local
269 btf_dump_data(struct btf * btf,struct btf_dump * d,char * name,char * prefix,__u64 flags,void * ptr,size_t ptr_sz,char * str,const char * expected_val) btf_dump_data() argument
350 test_btf_dump_int_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_int_data() argument
408 test_btf_dump_float_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_float_data() argument
453 test_btf_dump_char_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_char_data() argument
475 test_btf_dump_typedef_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_typedef_data() argument
530 test_btf_dump_enum_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_enum_data() argument
566 test_btf_dump_struct_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_struct_data() argument
801 test_btf_dump_var_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_var_data() argument
812 test_btf_datasec(struct btf * btf,struct btf_dump * d,char * str,const char * name,const char * expected_val,void * data,size_t data_sz) test_btf_datasec() argument
840 struct btf *btf; test_btf_dump_datasec_data() local
863 struct btf *btf; test_btf_dump() local
[all...]
H A Dlibbpf_str.c23 struct btf *btf; in test_libbpf_bpf_attach_type_str() local
68 struct btf *btf; in test_libbpf_bpf_link_type_str() local
113 struct btf *btf; in test_libbpf_bpf_map_type_str() local
170 struct btf *btf; in test_libbpf_bpf_prog_type_str() local
H A Dctx_rewrite.c252 static int find_field_offset_aux(struct btf *btf, int btf_id, char *field_name, int off) in find_field_offset_aux()
291 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset()
490 static bool match_pattern(struct btf *btf, char *pattern, char *text, char *reg_map[][2]) in match_pattern()
640 static void match_program(struct btf *btf, in match_program()
705 static void run_one_testcase(struct btf *btf, struct test_case *test) in run_one_testcase()
800 struct btf *btf; in test_ctx_rewrite() local
H A Dlinked_list.c252 struct btf *btf; init_btf() local
278 struct btf *btf; list_and_rb_node_same_struct() local
330 struct btf *btf = NULL; test_btf() local
[all...]
H A Dbtf_write.c7 static void gen_btf(struct btf *btf) in gen_btf()
357 struct btf *btf; in test_btf_add() local
H A Dtest_global_funcs.c26 static void check_ctx_arg_type(const struct btf *btf, const struct btf_param *p) in check_ctx_arg_type()
47 struct btf *btf = NULL; in subtest_ctx_arg_rewrite() local
H A Dlibbpf_probes.c9 struct btf *btf; in test_libbpf_probe_prog_types() local
49 struct btf *btf; in test_libbpf_probe_map_types() local
H A Dtest_bpf_ma.c16 struct btf *btf; in do_bpf_ma_test() local
H A Dbtf_endian.c18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() local
H A Dbtf_field_iter.c43 struct btf *btf = NULL; in test_btf_field_iter() local
/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c34 struct btf { struct
36 struct btf_type **types; argument
37 struct btf_header hdr; argument
46 struct btf *btf; argument
59 static const char *get_name(struct btf *btf, long btf_id, const char *fallback) in get_name()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c81 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
88 int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id) in fprintf_btf_type_raw()
216 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump()
234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw()
257 const char *btf_type_c_dump(const struct btf *btf) in btf_type_c_dump()
H A Dbtf_helpers.h13 #define VALIDATE_RAW_BTF(btf, raw_types...) \ argument
/linux/tools/bpf/bpftool/
H A Dbtf.c107 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str() argument
119 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type() argument
435 dump_btf_raw(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt) dump_btf_raw() argument
504 struct btf *btf = ctx; cmp_kfuncs() local
512 dump_btf_kfuncs(struct btf_dump * d,const struct btf * btf) dump_btf_kfuncs() argument
589 btf_type_rank(const struct btf * btf,__u32 index,bool has_name) btf_type_rank() argument
629 btf_type_sort_name(const struct btf * btf,__u32 index,bool from_ref) btf_type_sort_name() argument
666 btf_name_hasher(__u64 hash,const struct btf * btf,__u32 name_off) btf_name_hasher() argument
674 btf_type_disambig_hash(const struct btf * btf,__u32 id,bool include_members) btf_type_disambig_hash() argument
745 sort_btf_c(const struct btf * btf) sort_btf_c() argument
771 dump_btf_c(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt,bool sort_dump) dump_btf_c() argument
884 struct btf *btf = NULL, *base = NULL; do_dump() local
[all...]
H A Dgen.c59 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) in resolve_func_ptr() argument
148 struct btf *btf, in codegen_datasec_def() argument
235 find_type_for_map(struct btf * btf,const char * map_ident) find_type_for_map() argument
277 struct btf *btf = bpf_object__btf(obj); codegen_datasecs() local
318 btf_is_ptr_to_func_proto(const struct btf * btf,const struct btf_type * v) btf_is_ptr_to_func_proto() argument
326 struct btf *btf = bpf_object__btf(obj); codegen_subskel_datasecs() local
499 struct btf *btf = bpf_object__btf(obj); codegen_asserts() local
963 walk_st_ops_shadow_vars(struct btf * btf,const char * ident,const struct btf_type * map_type,__u32 map_type_id) walk_st_ops_shadow_vars() argument
1078 gen_st_ops_shadow_type(const char * obj_name,struct btf * btf,const char * ident,const struct bpf_map * map) gen_st_ops_shadow_type() argument
1106 gen_st_ops_shadow(const char * obj_name,struct btf * btf,struct bpf_object * obj) gen_st_ops_shadow() argument
1140 gen_st_ops_shadow_init(struct btf * btf,struct bpf_object * obj) gen_st_ops_shadow_init() argument
1177 struct btf *btf; do_skeleton() local
1582 struct btf *btf; do_subskeleton() local
1940 btf_save_raw(const struct btf * btf,const char * path) btf_save_raw() argument
2107 struct btf *btf = info->src_btf; btfgen_record_field_relo() local
2170 struct btf *btf = info->src_btf; btfgen_mark_type_match() local
2353 struct btf *btf = NULL; btfgen_record_obj() local
[all...]
H A Dbtf_dumper.c211 is_str_array(const struct btf * btf,const struct btf_array * arr,const char * s) is_str_array() argument
619 __btf_dumper_type_only(const struct btf * btf,__u32 type_id,char * func_sig,int pos,int size) __btf_dumper_type_only() argument
710 btf_dump_func(const struct btf * btf,char * func_sig,const struct btf_type * func_proto,const struct btf_type * func,int pos,int size) btf_dump_func() argument
747 btf_dumper_type_only(const struct btf * btf,__u32 type_id,char * func_sig,int size) btf_dumper_type_only() argument
769 btf_dump_linfo_plain(const struct btf * btf,const struct bpf_line_info * linfo,const char * prefix,bool linum) btf_dump_linfo_plain() argument
801 btf_dump_linfo_json(const struct btf * btf,const struct bpf_line_info * linfo,bool linum) btf_dump_linfo_json() argument
874 btf_dump_linfo_dotlabel(const struct btf * btf,const struct bpf_line_info * linfo,bool linum) btf_dump_linfo_dotlabel() argument
[all...]
H A Dmap.c133 unsigned char *value, struct btf *btf) in print_entry_json() argument
743 struct bpf_map_info *map_info, struct btf *bt in dump_map_elem() argument
790 get_map_kv_btf(const struct bpf_map_info * info,struct btf ** btf) get_map_kv_btf() argument
816 free_map_kv_btf(struct btf * btf) free_map_kv_btf() argument
828 struct btf *btf = NULL; map_dump() local
1035 struct btf *btf; print_key_value() local
[all...]
H A Dxlated_dumper.c230 struct btf *btf = dd->btf; in dump_xlated_json() local
315 struct btf *btf = dd->btf; in dump_xlated_plain() local
383 struct btf *btf = dd->btf; dump_xlated_for_graph() local
[all...]
H A Dmain.h188 const struct btf *btf, in disasm_print_insn()
210 const struct btf *btf; member
/linux/kernel/trace/
H A Dtrace_probe.c323 static bool btf_type_is_char_ptr(struct btf *btf, const struct btf_type *type) in btf_type_is_char_ptr()
341 static bool btf_type_is_char_array(struct btf *btf, const struct btf_type *type) in btf_type_is_char_array()
364 struct btf *btf = ctx->btf; in check_prepare_btf_string_fetch() local
394 static const char *fetch_type_from_btf_type(struct btf *btf, in fetch_type_from_btf_type()
452 struct btf *btf; in query_btf_context() local
711 struct btf *btf = ctx->btf; in find_fetch_type_from_btf_type() local

123