Home
last modified time | relevance | path

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

1234

/linux/tools/lib/bpf/
H A Dbtf.c31 struct btf { struct
97 struct btf *base_btf; argument
195 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem() argument
201 static int btf_add_type_idx_entry(struct btf *bt argument
33 raw_databtf global() argument
35 raw_data_swappedbtf global() argument
36 raw_sizebtf global() argument
60 swapped_endianbtf global() argument
77 hdrbtf global() argument
119 strs_dedupedbtf global() argument
120 owns_basebtf global() argument
123 fdbtf global() argument
126 ptr_szbtf global() argument
223 btf_parse_hdr(struct btf * btf) btf_parse_hdr() argument
272 btf_parse_str_sec(struct btf * btf) btf_parse_str_sec() argument
416 btf_parse_type_sec(struct btf * btf) btf_parse_type_sec() argument
454 btf_validate_str(const struct btf * btf,__u32 str_off,const char * what,__u32 type_id) btf_validate_str() argument
467 btf_validate_id(const struct btf * btf,__u32 id,__u32 ctx_id) btf_validate_id() argument
480 btf_validate_type(const struct btf * btf,const struct btf_type * t,__u32 id) btf_validate_type() argument
598 btf_sanity_check(const struct btf * btf) btf_sanity_check() argument
613 btf__type_cnt(const struct btf * btf) btf__type_cnt() argument
618 btf__base_btf(const struct btf * btf) btf__base_btf() argument
624 btf_type_by_id(const struct btf * btf,__u32 type_id) btf_type_by_id() argument
633 btf__type_by_id(const struct btf * btf,__u32 type_id) btf__type_by_id() argument
640 determine_ptr_size(const struct btf * btf) determine_ptr_size() argument
684 btf_ptr_sz(const struct btf * btf) btf_ptr_sz() argument
699 btf__pointer_size(const struct btf * btf) btf__pointer_size() argument
714 btf__set_pointer_size(struct btf * btf,size_t ptr_sz) btf__set_pointer_size() argument
733 btf__endianness(const struct btf * btf) btf__endianness() argument
741 btf__set_endianness(struct btf * btf,enum btf_endianness endian) btf__set_endianness() argument
766 btf__resolve_size(const struct btf * btf,__u32 type_id) btf__resolve_size() argument
821 btf__align_of(const struct btf * btf,__u32 id) btf__align_of() argument
876 btf__resolve_type(const struct btf * btf,__u32 type_id) btf__resolve_type() argument
896 btf__find_by_name(const struct btf * btf,const char * type_name) btf__find_by_name() argument
914 btf_find_by_name_kind(const struct btf * btf,int start_id,const char * type_name,__u32 kind) btf_find_by_name_kind() argument
936 btf__find_by_name_kind_own(const struct btf * btf,const char * type_name,__u32 kind) btf__find_by_name_kind_own() argument
942 btf__find_by_name_kind(const struct btf * btf,const char * type_name,__u32 kind) btf__find_by_name_kind() argument
948 btf_is_modifiable(const struct btf * btf) btf_is_modifiable() argument
953 btf__free(struct btf * btf) btf__free() argument
982 struct btf *btf; btf_new_empty() local
1033 struct btf *btf; btf_new() local
1169 struct btf *btf = NULL; btf_parse_elf() local
1277 struct btf *btf = NULL; btf_parse_raw() local
1350 struct btf *btf; btf_parse() local
1377 btf_load_into_kernel(struct btf * btf,char * log_buf,size_t log_sz,__u32 log_level,int token_fd) btf_load_into_kernel() argument
1458 btf__load_into_kernel(struct btf * btf) btf__load_into_kernel() argument
1463 btf__fd(const struct btf * btf) btf__fd() argument
1468 btf__set_fd(struct btf * btf,int fd) btf__set_fd() argument
1473 btf_strs_data(const struct btf * btf) btf_strs_data() argument
1478 btf_get_raw_data(const struct btf * btf,__u32 * size,bool swap_endian) btf_get_raw_data() argument
1530 struct btf *btf = (struct btf *)btf_ro; btf__raw_data() local
1550 btf__str_by_offset(const struct btf * btf,__u32 offset) btf__str_by_offset() argument
1560 btf__name_by_offset(const struct btf * btf,__u32 offset) btf__name_by_offset() argument
1570 struct btf *btf; btf_get_from_fd() local
1621 struct btf *btf; btf__load_from_kernel_by_id_split() local
1639 btf_invalidate_raw_data(struct btf * btf) btf_invalidate_raw_data() argument
1655 btf_ensure_modifiable(struct btf * btf) btf_ensure_modifiable() argument
1715 btf__find_str(struct btf * btf,const char * s) btf__find_str() argument
1741 btf__add_str(struct btf * btf,const char * s) btf__add_str() argument
1763 btf_add_type_mem(struct btf * btf,size_t add_sz) btf_add_type_mem() argument
1774 btf_commit_type(struct btf * btf,int data_sz) btf_commit_type() argument
1859 btf__add_type(struct btf * btf,const struct btf * src_btf,const struct btf_type * src_type) btf__add_type() argument
1869 btf__add_btf(struct btf * btf,const struct btf * src_btf) btf__add_btf() argument
1997 btf__add_int(struct btf * btf,const char * name,size_t byte_sz,int encoding) btf__add_int() argument
2045 btf__add_float(struct btf * btf,const char * name,size_t byte_sz) btf__add_float() argument
2090 btf_add_ref_kind(struct btf * btf,int kind,const char * name,int ref_type_id) btf_add_ref_kind() argument
2126 btf__add_ptr(struct btf * btf,int ref_type_id) btf__add_ptr() argument
2140 btf__add_array(struct btf * btf,int index_type_id,int elem_type_id,__u32 nr_elems) btf__add_array() argument
2170 btf_add_composite(struct btf * btf,int kind,const char * name,__u32 bytes_sz) btf_add_composite() argument
2211 btf__add_struct(struct btf * btf,const char * name,__u32 byte_sz) btf__add_struct() argument
2229 btf__add_union(struct btf * btf,const char * name,__u32 byte_sz) btf__add_union() argument
2234 btf_last_type(struct btf * btf) btf_last_type() argument
2249 btf__add_field(struct btf * btf,const char * name,int type_id,__u32 bit_offset,__u32 bit_size) btf__add_field() argument
2304 btf_add_enum_common(struct btf * btf,const char * name,__u32 byte_sz,bool is_signed,__u8 kind) btf_add_enum_common() argument
2349 btf__add_enum(struct btf * btf,const char * name,__u32 byte_sz) btf__add_enum() argument
2366 btf__add_enum_value(struct btf * btf,const char * name,__s64 value) btf__add_enum_value() argument
2428 btf__add_enum64(struct btf * btf,const char * name,__u32 byte_sz,bool is_signed) btf__add_enum64() argument
2443 btf__add_enum64_value(struct btf * btf,const char * name,__u64 value) btf__add_enum64_value() argument
2495 btf__add_fwd(struct btf * btf,const char * name,enum btf_fwd_kind fwd_kind) btf__add_fwd() argument
2531 btf__add_typedef(struct btf * btf,const char * name,int ref_type_id) btf__add_typedef() argument
2546 btf__add_volatile(struct btf * btf,int ref_type_id) btf__add_volatile() argument
2558 btf__add_const(struct btf * btf,int ref_type_id) btf__add_const() argument
2570 btf__add_restrict(struct btf * btf,int ref_type_id) btf__add_restrict() argument
2583 btf__add_type_tag(struct btf * btf,const char * value,int ref_type_id) btf__add_type_tag() argument
2599 btf__add_func(struct btf * btf,const char * name,enum btf_func_linkage linkage,int proto_type_id) btf__add_func() argument
2631 btf__add_func_proto(struct btf * btf,int ret_type_id) btf__add_func_proto() argument
2665 btf__add_func_param(struct btf * btf,const char * name,int type_id) btf__add_func_param() argument
2718 btf__add_var(struct btf * btf,const char * name,int linkage,int type_id) btf__add_var() argument
2768 btf__add_datasec(struct btf * btf,const char * name,__u32 byte_sz) btf__add_datasec() argument
2807 btf__add_datasec_var_info(struct btf * btf,int var_type_id,__u32 offset,__u32 byte_sz) btf__add_datasec_var_info() argument
2855 btf__add_decl_tag(struct btf * btf,const char * value,int ref_type_id,int component_idx) btf__add_decl_tag() argument
3283 btf__dedup(struct btf * btf,const struct btf_dedup_opts * opts) btf__dedup() argument
3353 struct btf *btf; global() member
3459 btf_dedup_new(struct btf * btf,const struct btf_dedup_opts * opts) btf_dedup_new() argument
5047 struct btf *btf; btf__load_vmlinux_btf() local
5477 btf_header(const struct btf * btf) btf_header() argument
5482 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument
5489 btf__relocate(struct btf * btf,const struct btf * base_btf) btf__relocate() argument
[all...]
H A Drelo_core.h10 const struct btf *btf; member
30 const struct btf *btf; member
H A Drelo_core.c22 skip_mods_and_typedefs(const struct btf *btf, u32 id, u32 *res_id) in skip_mods_and_typedefs()
27 static const char *btf__name_by_offset(const struct btf *btf, u32 offset) in btf__name_by_offset()
32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) in btf__resolve_size()
71 static bool is_flex_arr(const struct btf *btf, in is_flex_arr()
263 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf, in bpf_core_parse_spec()
/linux/kernel/bpf/
H A Dbtf.c252 struct btf { struct
272 struct btf *base_btf; argument
313 struct btf *btf; member
419 const struct btf *btf; member
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
276 kernel_btfbtf global() argument
286 base_id_mapbtf global() argument
534 btf_is_vmlinux(const struct btf * btf) btf_is_vmlinux() argument
539 btf_nr_types(const struct btf * btf) btf_nr_types() argument
551 btf_find_by_name_kind(const struct btf * btf,const char * name,u8 kind) btf_find_by_name_kind() argument
573 struct btf *btf; bpf_find_btf_id() local
615 btf_type_skip_modifiers(const struct btf * btf,u32 id,u32 * res_id) btf_type_skip_modifiers() argument
631 btf_type_resolve_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_ptr() argument
643 btf_type_resolve_func_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_func_ptr() argument
759 btf_name_offset_valid(const struct btf * btf,u32 offset) btf_name_offset_valid() argument
781 btf_str_by_offset(const struct btf * btf,u32 offset) btf_str_by_offset() argument
793 __btf_name_valid(const struct btf * btf,u32 offset) __btf_name_valid() argument
814 btf_name_valid_identifier(const struct btf * btf,u32 offset) btf_name_valid_identifier() argument
820 btf_name_valid_section(const struct btf * btf,u32 offset) btf_name_valid_section() argument
838 __btf_name_by_offset(const struct btf * btf,u32 offset) __btf_name_by_offset() argument
849 btf_name_by_offset(const struct btf * btf,u32 offset) btf_name_by_offset() argument
854 btf_type_by_id(const struct btf * btf,u32 type_id) btf_type_by_id() argument
893 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
931 btf_type_skip_qualifiers(const struct btf * btf,u32 id) btf_type_skip_qualifiers() argument
1443 struct btf *btf = env->btf; __btf_verifier_log_type() local
1493 struct btf *btf = env->btf; btf_verifier_log_member() local
1571 const struct btf *btf = env->btf; btf_verifier_log_hdr() local
1593 struct btf *btf = env->btf; btf_add_type() local
1636 btf_alloc_id(struct btf * btf) btf_alloc_id() argument
1654 btf_free_id(struct btf * btf) btf_free_id() argument
1672 btf_free_kfunc_set_tab(struct btf * btf) btf_free_kfunc_set_tab() argument
1685 btf_free_dtor_kfunc_tab(struct btf * btf) btf_free_dtor_kfunc_tab() argument
1706 btf_free_struct_meta_tab(struct btf * btf) btf_free_struct_meta_tab() argument
1714 btf_free_struct_ops_tab(struct btf * btf) btf_free_struct_ops_tab() argument
1729 btf_free(struct btf * btf) btf_free() argument
1749 struct btf *btf = container_of(rcu, struct btf, rcu); btf_free_rcu() local
1754 btf_get_name(const struct btf * btf) btf_get_name() argument
1759 btf_get(struct btf * btf) btf_get() argument
1764 btf_put(struct btf * btf) btf_put() argument
1772 btf_base_btf(const struct btf * btf) btf_base_btf() argument
1777 btf_header(const struct btf * btf) btf_header() argument
1782 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument
1791 struct btf *btf = env->btf; env_resolve_init() local
1869 const struct btf *btf = env->btf; env_stack_push() local
1907 struct btf *btf = env->btf; env_stack_pop_resolved() local
1941 __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
2011 btf_resolve_size(const struct btf * btf,const struct btf_type * type,u32 * type_size) btf_resolve_size() argument
2017 btf_resolved_type_id(const struct btf * btf,u32 type_id) btf_resolved_type_id() argument
2026 btf_type_id_resolve(const struct btf * btf,u32 * type_id) btf_type_id_resolve() argument
2033 btf_resolved_type_size(const struct btf * btf,u32 type_id) btf_resolved_type_size() argument
2041 btf_type_id_size(const struct btf * btf,u32 * type_id,u32 * ret_size) btf_type_id_size() argument
2133 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
2401 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
2420 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
2507 struct btf *btf = env->btf; btf_modifier_check_member() local
2532 struct btf *btf = env->btf; btf_modifier_check_kflag_member() local
2629 struct btf *btf = env->btf; btf_modifier_resolve() local
2671 struct btf *btf = env->btf; btf_var_resolve() local
2717 struct btf *btf = env->btf; btf_ptr_resolve() local
2768 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
2781 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
2790 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
2881 struct btf *btf = env->btf; btf_array_check_member() local
2961 struct btf *btf = env->btf; btf_array_resolve() local
3029 __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
3082 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
3156 struct btf *btf = env->btf; btf_struct_check_meta() local
3326 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
3339 btf_find_kptr(const struct btf * btf,const struct btf_type * t,u32 off,int sz,struct btf_field_info * info) btf_find_kptr() argument
3379 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
3401 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
3425 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
3467 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
3570 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
3603 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
3697 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
3727 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
3751 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
3762 btf_parse_kptr(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_kptr() argument
3853 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
3897 btf_parse_list_head(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_list_head() argument
3904 btf_parse_rb_root(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_rb_root() argument
3923 btf_parse_fields(const struct btf * btf,const struct btf_type * t,u32 field_mask,u32 value_size) btf_parse_fields() argument
4038 btf_check_and_fixup_fields(const struct btf * btf,struct btf_record * rec) btf_check_and_fixup_fields() argument
4110 __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
4157 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
4265 struct btf *btf = env->btf; btf_enum_check_meta() local
4325 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
4373 struct btf *btf = env->btf; btf_enum64_check_meta() local
4428 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
4748 struct btf *btf = env->btf; btf_datasec_resolve() local
4790 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
4947 struct btf *btf = env->btf; btf_decl_tag_resolve() local
5007 const struct btf *btf; btf_func_proto_check() local
5102 const struct btf *btf; btf_func_check() local
5191 struct btf *btf = env->btf; btf_check_all_metas() local
5220 struct btf *btf = env->btf; btf_resolve_valid() local
5292 struct btf *btf = env->btf; btf_check_all_types() local
5350 struct btf *btf = env->btf; btf_parse_str_sec() local
5397 const struct btf *btf; btf_check_sec_info() local
5448 struct btf *btf; btf_parse_hdr() local
5518 btf_parse_struct_metas(struct bpf_verifier_log * log,struct btf * btf) btf_parse_struct_metas() argument
5603 btf_find_struct_meta(const struct btf * btf,u32 btf_id) btf_find_struct_meta() argument
5615 btf_check_type_tags(struct btf_verifier_env * env,struct btf * btf,int start_id) btf_check_type_tags() argument
5682 struct btf *btf = NULL; btf_parse() local
5854 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
5940 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
6075 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
6111 struct btf *btf = NULL; BTF_ID() local
6163 struct btf *btf; btf_parse_vmlinux() local
6192 btf_relocate_id(const struct btf * btf,__u32 id) btf_relocate_id() argument
6205 struct btf *btf = NULL, *vmlinux_btf, *base_btf = NULL; btf_parse_module() local
6308 is_int_ptr(struct btf * btf,const struct btf_type * t) is_int_ptr() argument
6316 get_ctx_arg_idx(struct btf * btf,const struct btf_type * func_proto,int off) get_ctx_arg_idx() argument
6360 btf_ctx_arg_offset(const struct btf * btf,const struct btf_type * func_proto,u32 arg_no) btf_ctx_arg_offset() argument
6386 struct btf *btf = bpf_prog_get_target_btf(prog); btf_ctx_access() local
6581 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
6846 const struct btf *btf = reg->btf; btf_struct_access() local
6930 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
6968 __get_type_size(struct btf * btf,u32 btf_id,const struct btf_type ** ret_type) __get_type_size() argument
7004 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
7216 btf_is_dynptr_ptr(const struct btf * btf,const struct btf_type * t) btf_is_dynptr_ptr() argument
7241 const struct btf *btf; global() member
7252 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
7325 struct btf *btf = prog->aux->btf; btf_prepare_func_args() local
7529 btf_type_show(const struct btf * btf,u32 type_id,void * obj,struct btf_show * show) btf_type_show() argument
7547 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
7561 btf_type_seq_show(const struct btf * btf,u32 type_id,void * obj,struct seq_file * m) btf_type_seq_show() argument
7597 btf_type_snprintf_show(const struct btf * btf,u32 type_id,void * obj,char * buf,int len,u64 flags) btf_type_snprintf_show() argument
7621 const struct btf *btf = filp->private_data; bpf_btf_show_fdinfo() local
7640 __btf_new_fd(struct btf * btf) __btf_new_fd() argument
7647 struct btf *btf; btf_new_fd() local
7675 struct btf *btf; btf_get_by_fd() local
7695 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
7757 struct btf *btf; btf_get_fd_by_id() local
7776 btf_obj_id(const struct btf * btf) btf_obj_id() argument
7781 btf_is_kernel(const struct btf * btf) btf_is_kernel() argument
7786 btf_is_module(const struct btf * btf) btf_is_module() argument
7799 struct btf *btf; global() member
7812 const struct btf *btf = bin_attr->private; btf_module_read() local
7825 struct btf *btf; btf_module_notify() local
7940 btf_try_get_module(const struct btf * btf) btf_try_get_module() argument
7975 struct btf *btf = NULL; btf_get_module_btf() local
8013 struct btf *btf = NULL; BPF_CALL_4() local
8125 btf_check_kfunc_protos(struct btf * btf,u32 func_id,u32 func_flags) btf_check_kfunc_protos() argument
8156 btf_populate_kfunc_set(struct btf * btf,enum btf_kfunc_hook hook,const struct btf_kfunc_id_set * kset) btf_populate_kfunc_set() argument
8267 __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
8341 btf_kfunc_id_set_contains(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_id_set_contains() argument
8357 btf_kfunc_is_modify_return(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_is_modify_return() argument
8366 struct btf *btf; __register_btf_kfunc_id_set() local
8415 btf_find_dtor_kfunc(struct btf * btf,u32 btf_id) btf_find_dtor_kfunc() argument
8432 btf_check_dtor_kfuncs(struct btf * btf,const struct btf_id_dtor_kfunc * dtors,u32 cnt) btf_check_dtor_kfuncs() argument
8474 struct btf *btf; register_btf_id_dtor_kfuncs() local
8705 __purge_cand_cache(struct btf * btf,struct bpf_cand_cache ** cache,int cache_size) __purge_cand_cache() argument
8737 purge_cand_cache(struct btf * btf) purge_cand_cache() argument
8955 struct btf *btf = reg->btf; btf_nested_type_is_trusted() local
9055 btf_add_struct_ops(struct btf * btf,struct bpf_struct_ops * st_ops,struct bpf_verifier_log * log) btf_add_struct_ops() argument
9099 bpf_struct_ops_find_value(struct btf * btf,u32 value_id) bpf_struct_ops_find_value() argument
9121 bpf_struct_ops_find(struct btf * btf,u32 type_id) bpf_struct_ops_find() argument
9145 struct btf *btf; __register_bpf_struct_ops() local
9173 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.c42 struct btf *btf; member
88 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type() argument
158 find_stub_func_proto(const struct btf * btf,const char * st_op_name,const char * member_name) find_stub_func_proto() argument
202 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 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
501 check_zero_holes(const struct btf * btf,const struct btf_type * t,void * data) check_zero_holes() argument
906 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.c251 find_field_offset_aux(struct btf * btf,int btf_id,char * field_name,int off) find_field_offset_aux() argument
290 find_field_offset(struct btf * btf,char * pattern,regmatch_t * matches) find_field_offset() argument
489 match_pattern(struct btf * btf,char * pattern,char * text,char * reg_map[][2]) match_pattern() argument
696 match_program(struct btf * btf,struct prog_info * pinfo,char * pattern,char * reg_map[][2],bool skip_first_insn) match_program() argument
759 run_one_testcase(struct btf * btf,struct test_case * test) run_one_testcase() argument
854 struct btf *btf; test_ctx_rewrite() 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 Dlinked_list.c252 struct btf *btf; in init_btf() local
278 struct btf *btf; in list_and_rb_node_same_struct() local
330 struct btf *btf = NULL; in test_btf() 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
/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; member
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 Dgen.c59 resolve_func_ptr(const struct btf *btf, __u32 id, __u32 *res_id) in resolve_func_ptr()
148 struct btf *btf, in codegen_datasec_def()
277 struct btf *btf = bpf_object__btf(obj); in codegen_datasecs() local
318 static bool btf_is_ptr_to_func_proto(const struct btf *btf, in btf_is_ptr_to_func_proto()
326 struct btf *btf = bpf_object__btf(obj); in codegen_subskel_datasecs() local
499 struct btf *btf = bpf_object__btf(obj); in codegen_asserts() local
1177 struct btf *btf; in do_skeleton() local
1582 struct btf *btf; in do_subskeleton() local
2107 struct btf *btf = info->src_btf; in btfgen_record_field_relo() local
2170 struct btf *btf = info->src_btf; in btfgen_mark_type_match() local
[all …]
H A Dbtf.c99 btf_str(const struct btf * btf,__u32 off) btf_str() argument
111 dump_btf_type(const struct btf * btf,__u32 id,const struct btf_type * t) dump_btf_type() argument
427 dump_btf_raw(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt) dump_btf_raw() argument
466 dump_btf_kfuncs(struct btf_dump * d,const struct btf * btf) dump_btf_kfuncs() argument
515 btf_type_rank(const struct btf * btf,__u32 index,bool has_name) btf_type_rank() argument
555 btf_type_sort_name(const struct btf * btf,__u32 index,bool from_ref) btf_type_sort_name() argument
602 sort_btf_c(const struct btf * btf) sort_btf_c() argument
627 dump_btf_c(const struct btf * btf,__u32 * root_type_ids,int root_type_cnt,bool sort_dump) dump_btf_c() argument
733 struct btf *btf = NULL, *base = NULL; do_dump() local
[all...]
H A Dbtf_dumper.c211 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array()
619 static int __btf_dumper_type_only(const struct btf *btf, __u32 type_id, in __btf_dumper_type_only()
710 static int btf_dump_func(const struct btf *btf, char *func_sig, in btf_dump_func()
747 void btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, in btf_dumper_type_only()
769 void btf_dump_linfo_plain(const struct btf *btf, in btf_dump_linfo_plain()
801 void btf_dump_linfo_json(const struct btf *btf, in btf_dump_linfo_json()
874 void btf_dump_linfo_dotlabel(const struct btf *btf, in btf_dump_linfo_dotlabel()
H A Dmap.c133 unsigned char *value, struct btf *btf) in print_entry_json()
743 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem()
790 static int get_map_kv_btf(const struct bpf_map_info *info, struct btf **btf) in get_map_kv_btf()
816 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf()
828 struct btf *btf = NULL; in map_dump() local
1035 struct btf *btf; in print_key_value() local
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/include/linux/
H A Dbtf.h525 bpf_struct_ops_find(struct btf * btf,u32 type_id) bpf_struct_ops_find() argument
584 btf_type_by_id(const struct btf * btf,u32 type_id) btf_type_by_id() argument
590 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument
594 btf_relocate(void * log,struct btf * btf,const struct btf * base_btf,__u32 ** map_ids) btf_relocate() argument
611 btf_name_by_offset(const struct btf * btf,u32 offset) btf_name_by_offset() argument
616 btf_kfunc_id_set_contains(const struct btf * btf,u32 kfunc_btf_id,struct bpf_prog * prog) btf_kfunc_id_set_contains() argument
628 btf_find_dtor_kfunc(struct btf * btf,u32 btf_id) btf_find_dtor_kfunc() argument
637 btf_find_struct_meta(const struct btf * btf,u32 btf_id) btf_find_struct_meta() argument
642 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
659 btf_type_is_struct_ptr(struct btf * btf,const struct btf_type * t) btf_type_is_struct_ptr() argument
[all...]
/linux/tools/perf/util/
H A Dbpf-event.c98 struct btf *btf) in perf_env__fetch_btf() argument
124 struct btf *btf, in synthesize_bpf_prog_name() argument
177 struct btf *btf = NULL; perf_event__synthesize_one_bpf_prog() local
455 struct btf *btf = NULL; perf_env__add_bpf_info() local
556 struct btf *btf = NULL; __bpf_event__print_bpf_prog_info() local
[all...]

1234