Home
last modified time | relevance | path

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

1234

/linux/tools/lib/bpf/
H A Dbtf.c33 struct btf { global() struct
35 raw_databtf global() argument
37 raw_data_swappedbtf global() argument
38 raw_sizebtf global() argument
62 swapped_endianbtf global() argument
79 hdrbtf global() argument
99 base_btfbtf global() argument
121 strs_dedupedbtf global() argument
122 owns_basebtf global() argument
125 raw_data_is_mmapbtf global() argument
128 fdbtf global() argument
131 ptr_szbtf global() argument
200 btf_add_type_offs_mem(struct btf * btf,size_t add_cnt) btf_add_type_offs_mem() argument
206 btf_add_type_idx_entry(struct btf * btf,__u32 type_off) btf_add_type_idx_entry() argument
228 btf_parse_hdr(struct btf * btf) btf_parse_hdr() argument
277 btf_parse_str_sec(struct btf * btf) btf_parse_str_sec() argument
421 btf_parse_type_sec(struct btf * btf) btf_parse_type_sec() argument
459 btf_validate_str(const struct btf * btf,__u32 str_off,const char * what,__u32 type_id) btf_validate_str() argument
472 btf_validate_id(const struct btf * btf,__u32 id,__u32 ctx_id) btf_validate_id() argument
485 btf_validate_type(const struct btf * btf,const struct btf_type * t,__u32 id) btf_validate_type() argument
603 btf_sanity_check(const struct btf * btf) btf_sanity_check() argument
618 btf__type_cnt(const struct btf * btf) btf__type_cnt() argument
623 btf__base_btf(const struct btf * btf) btf__base_btf() argument
629 btf_type_by_id(const struct btf * btf,__u32 type_id) btf_type_by_id() argument
638 btf__type_by_id(const struct btf * btf,__u32 type_id) btf__type_by_id() argument
645 determine_ptr_size(const struct btf * btf) determine_ptr_size() argument
689 btf_ptr_sz(const struct btf * btf) btf_ptr_sz() argument
704 btf__pointer_size(const struct btf * btf) btf__pointer_size() argument
719 btf__set_pointer_size(struct btf * btf,size_t ptr_sz) btf__set_pointer_size() argument
738 btf__endianness(const struct btf * btf) btf__endianness() argument
746 btf__set_endianness(struct btf * btf,enum btf_endianness endian) btf__set_endianness() argument
771 btf__resolve_size(const struct btf * btf,__u32 type_id) btf__resolve_size() argument
826 btf__align_of(const struct btf * btf,__u32 id) btf__align_of() argument
881 btf__resolve_type(const struct btf * btf,__u32 type_id) btf__resolve_type() argument
901 btf__find_by_name(const struct btf * btf,const char * type_name) btf__find_by_name() argument
919 btf_find_by_name_kind(const struct btf * btf,int start_id,const char * type_name,__u32 kind) btf_find_by_name_kind() argument
941 btf__find_by_name_kind_own(const struct btf * btf,const char * type_name,__u32 kind) btf__find_by_name_kind_own() argument
947 btf__find_by_name_kind(const struct btf * btf,const char * type_name,__u32 kind) btf__find_by_name_kind() argument
953 btf_is_modifiable(const struct btf * btf) btf_is_modifiable() argument
958 btf_free_raw_data(struct btf * btf) btf_free_raw_data() argument
969 btf__free(struct btf * btf) btf__free() argument
998 struct btf *btf; btf_new_empty() local
1050 struct btf *btf; btf_new() local
1198 struct btf *btf = NULL; btf_parse_elf() local
1307 struct btf *btf = NULL; btf_parse_raw() local
1382 struct btf *btf; btf_parse_raw_mmap() local
1411 struct btf *btf; btf_parse() local
1438 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
1519 btf__load_into_kernel(struct btf * btf) btf__load_into_kernel() argument
1524 btf__fd(const struct btf * btf) btf__fd() argument
1529 btf__set_fd(struct btf * btf,int fd) btf__set_fd() argument
1534 btf_strs_data(const struct btf * btf) btf_strs_data() argument
1539 btf_get_raw_data(const struct btf * btf,__u32 * size,bool swap_endian) btf_get_raw_data() argument
1591 struct btf *btf = (struct btf *)btf_ro; btf__raw_data() local
1611 btf__str_by_offset(const struct btf * btf,__u32 offset) btf__str_by_offset() argument
1621 btf__name_by_offset(const struct btf * btf,__u32 offset) btf__name_by_offset() argument
1631 struct btf *btf; btf_get_from_fd() local
1682 struct btf *btf; btf_load_from_kernel() local
1711 btf_invalidate_raw_data(struct btf * btf) btf_invalidate_raw_data() argument
1725 btf_ensure_modifiable(struct btf * btf) btf_ensure_modifiable() argument
1785 btf__find_str(struct btf * btf,const char * s) btf__find_str() argument
1811 btf__add_str(struct btf * btf,const char * s) btf__add_str() argument
1833 btf_add_type_mem(struct btf * btf,size_t add_sz) btf_add_type_mem() argument
1844 btf_commit_type(struct btf * btf,int data_sz) btf_commit_type() argument
1929 btf__add_type(struct btf * btf,const struct btf * src_btf,const struct btf_type * src_type) btf__add_type() argument
1939 btf__add_btf(struct btf * btf,const struct btf * src_btf) btf__add_btf() argument
2067 btf__add_int(struct btf * btf,const char * name,size_t byte_sz,int encoding) btf__add_int() argument
2115 btf__add_float(struct btf * btf,const char * name,size_t byte_sz) btf__add_float() argument
2160 btf_add_ref_kind(struct btf * btf,int kind,const char * name,int ref_type_id,int kflag) btf_add_ref_kind() argument
2196 btf__add_ptr(struct btf * btf,int ref_type_id) btf__add_ptr() argument
2210 btf__add_array(struct btf * btf,int index_type_id,int elem_type_id,__u32 nr_elems) btf__add_array() argument
2240 btf_add_composite(struct btf * btf,int kind,const char * name,__u32 bytes_sz) btf_add_composite() argument
2281 btf__add_struct(struct btf * btf,const char * name,__u32 byte_sz) btf__add_struct() argument
2299 btf__add_union(struct btf * btf,const char * name,__u32 byte_sz) btf__add_union() argument
2304 btf_last_type(struct btf * btf) btf_last_type() argument
2319 btf__add_field(struct btf * btf,const char * name,int type_id,__u32 bit_offset,__u32 bit_size) btf__add_field() argument
2374 btf_add_enum_common(struct btf * btf,const char * name,__u32 byte_sz,bool is_signed,__u8 kind) btf_add_enum_common() argument
2419 btf__add_enum(struct btf * btf,const char * name,__u32 byte_sz) btf__add_enum() argument
2436 btf__add_enum_value(struct btf * btf,const char * name,__s64 value) btf__add_enum_value() argument
2498 btf__add_enum64(struct btf * btf,const char * name,__u32 byte_sz,bool is_signed) btf__add_enum64() argument
2513 btf__add_enum64_value(struct btf * btf,const char * name,__u64 value) btf__add_enum64_value() argument
2565 btf__add_fwd(struct btf * btf,const char * name,enum btf_fwd_kind fwd_kind) btf__add_fwd() argument
2601 btf__add_typedef(struct btf * btf,const char * name,int ref_type_id) btf__add_typedef() argument
2616 btf__add_volatile(struct btf * btf,int ref_type_id) btf__add_volatile() argument
2628 btf__add_const(struct btf * btf,int ref_type_id) btf__add_const() argument
2640 btf__add_restrict(struct btf * btf,int ref_type_id) btf__add_restrict() argument
2653 btf__add_type_tag(struct btf * btf,const char * value,int ref_type_id) btf__add_type_tag() argument
2670 btf__add_type_attr(struct btf * btf,const char * value,int ref_type_id) btf__add_type_attr() argument
2686 btf__add_func(struct btf * btf,const char * name,enum btf_func_linkage linkage,int proto_type_id) btf__add_func() argument
2718 btf__add_func_proto(struct btf * btf,int ret_type_id) btf__add_func_proto() argument
2752 btf__add_func_param(struct btf * btf,const char * name,int type_id) btf__add_func_param() argument
2805 btf__add_var(struct btf * btf,const char * name,int linkage,int type_id) btf__add_var() argument
2855 btf__add_datasec(struct btf * btf,const char * name,__u32 byte_sz) btf__add_datasec() argument
2894 btf__add_datasec_var_info(struct btf * btf,int var_type_id,__u32 offset,__u32 byte_sz) btf__add_datasec_var_info() argument
2932 btf_add_decl_tag(struct btf * btf,const char * value,int ref_type_id,int component_idx,int kflag) btf_add_decl_tag() argument
2974 btf__add_decl_tag(struct btf * btf,const char * value,int ref_type_id,int component_idx) btf__add_decl_tag() argument
2991 btf__add_decl_attr(struct btf * btf,const char * value,int ref_type_id,int component_idx) btf__add_decl_attr() argument
3555 btf__dedup(struct btf * btf,const struct btf_dedup_opts * opts) btf__dedup() argument
3625 struct btf *btf; global() member
3731 btf_dedup_new(struct btf * btf,const struct btf_dedup_opts * opts) btf_dedup_new() argument
5376 struct btf *btf; btf__load_vmlinux_btf() local
5813 btf_header(const struct btf * btf) btf_header() argument
5818 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument
5825 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
/linux/kernel/bpf/
H A Dbtf.c253 struct btf { struct
273 struct btf *base_btf; argument
314 struct btf *btf; member
420 const struct btf *btf; member
255 typesbtf global() argument
260 hdrbtf global() argument
267 kfunc_set_tabbtf global() argument
268 dtor_kfunc_tabbtf global() argument
269 struct_meta_tabbtf global() argument
270 struct_ops_tabbtf global() argument
277 kernel_btfbtf global() argument
287 base_id_mapbtf global() argument
530 btf_is_vmlinux(const struct btf * btf) btf_is_vmlinux() argument
535 btf_nr_types(const struct btf * btf) btf_nr_types() argument
547 btf_find_by_name_kind(const struct btf * btf,const char * name,u8 kind) btf_find_by_name_kind() argument
569 struct btf *btf; bpf_find_btf_id() local
612 btf_type_skip_modifiers(const struct btf * btf,u32 id,u32 * res_id) btf_type_skip_modifiers() argument
628 btf_type_resolve_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_ptr() argument
640 btf_type_resolve_func_ptr(const struct btf * btf,u32 id,u32 * res_id) btf_type_resolve_func_ptr() argument
756 btf_name_offset_valid(const struct btf * btf,u32 offset) btf_name_offset_valid() argument
778 btf_str_by_offset(const struct btf * btf,u32 offset) btf_str_by_offset() argument
790 btf_name_valid_identifier(const struct btf * btf,u32 offset) btf_name_valid_identifier() argument
812 btf_name_valid_section(const struct btf * btf,u32 offset) btf_name_valid_section() argument
832 __btf_name_by_offset(const struct btf * btf,u32 offset) __btf_name_by_offset() argument
843 btf_name_by_offset(const struct btf * btf,u32 offset) btf_name_by_offset() argument
848 btf_type_by_id(const struct btf * btf,u32 type_id) btf_type_by_id() argument
904 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
942 btf_type_skip_qualifiers(const struct btf * btf,u32 id) btf_type_skip_qualifiers() argument
1454 struct btf *btf = env->btf; __btf_verifier_log_type() local
1504 struct btf *btf = env->btf; btf_verifier_log_member() local
1582 const struct btf *btf = env->btf; btf_verifier_log_hdr() local
1604 struct btf *btf = env->btf; btf_add_type() local
1647 btf_alloc_id(struct btf * btf) btf_alloc_id() argument
1665 btf_free_id(struct btf * btf) btf_free_id() argument
1683 btf_free_kfunc_set_tab(struct btf * btf) btf_free_kfunc_set_tab() argument
1696 btf_free_dtor_kfunc_tab(struct btf * btf) btf_free_dtor_kfunc_tab() argument
1717 btf_free_struct_meta_tab(struct btf * btf) btf_free_struct_meta_tab() argument
1725 btf_free_struct_ops_tab(struct btf * btf) btf_free_struct_ops_tab() argument
1740 btf_free(struct btf * btf) btf_free() argument
1760 struct btf *btf = container_of(rcu, struct btf, rcu); btf_free_rcu() local
1765 btf_get_name(const struct btf * btf) btf_get_name() argument
1770 btf_get(struct btf * btf) btf_get() argument
1775 btf_put(struct btf * btf) btf_put() argument
1783 btf_base_btf(const struct btf * btf) btf_base_btf() argument
1788 btf_header(const struct btf * btf) btf_header() argument
1793 btf_set_base_btf(struct btf * btf,const struct btf * base_btf) btf_set_base_btf() argument
1802 struct btf *btf = env->btf; env_resolve_init() local
1880 const struct btf *btf = env->btf; env_stack_push() local
1918 struct btf *btf = env->btf; env_stack_pop_resolved() local
1952 __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
2022 btf_resolve_size(const struct btf * btf,const struct btf_type * type,u32 * type_size) btf_resolve_size() argument
2028 btf_resolved_type_id(const struct btf * btf,u32 type_id) btf_resolved_type_id() argument
2037 btf_type_id_resolve(const struct btf * btf,u32 * type_id) btf_type_id_resolve() argument
2044 btf_resolved_type_size(const struct btf * btf,u32 type_id) btf_resolved_type_size() argument
2052 btf_type_id_size(const struct btf * btf,u32 * type_id,u32 * ret_size) btf_type_id_size() argument
2144 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
2412 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
2431 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
2518 struct btf *btf = env->btf; btf_modifier_check_member() local
2543 struct btf *btf = env->btf; btf_modifier_check_kflag_member() local
2640 struct btf *btf = env->btf; btf_modifier_resolve() local
2682 struct btf *btf = env->btf; btf_var_resolve() local
2728 struct btf *btf = env->btf; btf_ptr_resolve() local
2779 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
2792 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
2801 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
2892 struct btf *btf = env->btf; btf_array_check_member() local
2972 struct btf *btf = env->btf; btf_array_resolve() local
3040 __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
3093 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
3167 struct btf *btf = env->btf; btf_struct_check_meta() local
3337 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
3350 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
3398 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
3420 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
3444 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
3487 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
3606 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
3639 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
3735 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
3765 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
3789 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
3801 btf_parse_kptr(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_kptr() argument
3891 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
3935 btf_parse_list_head(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_list_head() argument
3942 btf_parse_rb_root(const struct btf * btf,struct btf_field * field,struct btf_field_info * info) btf_parse_rb_root() argument
3961 btf_parse_fields(const struct btf * btf,const struct btf_type * t,u32 field_mask,u32 value_size) btf_parse_fields() argument
4089 btf_check_and_fixup_fields(const struct btf * btf,struct btf_record * rec) btf_check_and_fixup_fields() argument
4177 __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
4224 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
4332 struct btf *btf = env->btf; btf_enum_check_meta() local
4392 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
4440 struct btf *btf = env->btf; btf_enum64_check_meta() local
4495 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
4815 struct btf *btf = env->btf; btf_datasec_resolve() local
4857 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
5009 struct btf *btf = env->btf; btf_decl_tag_resolve() local
5069 const struct btf *btf; btf_func_proto_check() local
5164 const struct btf *btf; btf_func_check() local
5253 struct btf *btf = env->btf; btf_check_all_metas() local
5282 struct btf *btf = env->btf; btf_resolve_valid() local
5354 struct btf *btf = env->btf; btf_check_all_types() local
5412 struct btf *btf = env->btf; btf_parse_str_sec() local
5459 const struct btf *btf; btf_check_sec_info() local
5510 struct btf *btf; btf_parse_hdr() local
5580 btf_parse_struct_metas(struct bpf_verifier_log * log,struct btf * btf) btf_parse_struct_metas() argument
5701 btf_find_struct_meta(const struct btf * btf,u32 btf_id) btf_find_struct_meta() argument
5713 btf_check_type_tags(struct btf_verifier_env * env,struct btf * btf,int start_id) btf_check_type_tags() argument
5780 struct btf *btf = NULL; btf_parse() local
5952 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
6038 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
6173 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
6208 struct btf *btf = NULL; BTF_ID_LIST_SINGLE() local
6260 struct btf *btf; btf_parse_vmlinux() local
6289 btf_relocate_id(const struct btf * btf,__u32 id) btf_relocate_id() argument
6302 struct btf *btf = NULL, *vmlinux_btf, *base_btf = NULL; btf_parse_module() local
6404 is_void_or_int_ptr(struct btf * btf,const struct btf_type * t) is_void_or_int_ptr() argument
6411 btf_ctx_arg_idx(struct btf * btf,const struct btf_type * func_proto,int off) btf_ctx_arg_idx() argument
6455 btf_ctx_arg_offset(const struct btf * btf,const struct btf_type * func_proto,u32 arg_no) btf_ctx_arg_offset() argument
6678 struct btf *btf = bpf_prog_get_target_btf(prog); btf_ctx_access() local
6830 struct btf *btf = prog->aux->attach_btf; btf_ctx_access() local
6927 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
7194 const struct btf *btf = reg->btf; btf_struct_access() local
7281 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
7319 __get_type_size(struct btf * btf,u32 btf_id,const struct btf_type ** ret_type) __get_type_size() argument
7355 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
7567 btf_is_dynptr_ptr(const struct btf * btf,const struct btf_type * t) btf_is_dynptr_ptr() argument
7592 const struct btf *btf; global() member
7603 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
7677 struct btf *btf = prog->aux->btf; btf_prepare_func_args() local
7915 btf_type_show(const struct btf * btf,u32 type_id,void * obj,struct btf_show * show) btf_type_show() argument
7933 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
7947 btf_type_seq_show(const struct btf * btf,u32 type_id,void * obj,struct seq_file * m) btf_type_seq_show() argument
7983 btf_type_snprintf_show(const struct btf * btf,u32 type_id,void * obj,char * buf,int len,u64 flags) btf_type_snprintf_show() argument
8007 const struct btf *btf = filp->private_data; bpf_btf_show_fdinfo() local
8026 __btf_new_fd(struct btf * btf) __btf_new_fd() argument
8033 struct btf *btf; btf_new_fd() local
8061 struct btf *btf; btf_get_by_fd() local
8071 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
8133 struct btf *btf; btf_get_fd_by_id() local
8152 btf_obj_id(const struct btf * btf) btf_obj_id() argument
8157 btf_is_kernel(const struct btf * btf) btf_is_kernel() argument
8162 btf_is_module(const struct btf * btf) btf_is_module() argument
8175 struct btf *btf; global() member
8190 struct btf *btf; btf_module_notify() local
8305 btf_try_get_module(const struct btf * btf) btf_try_get_module() argument
8340 struct btf *btf = NULL; btf_get_module_btf() local
8378 struct btf *btf = NULL; BPF_CALL_4() local
8446 btf_check_iter_kfuncs(struct btf * btf,const char * func_name,const struct btf_type * func,u32 func_flags) btf_check_iter_kfuncs() argument
8512 btf_check_kfunc_protos(struct btf * btf,u32 func_id,u32 func_flags) btf_check_kfunc_protos() argument
8543 btf_populate_kfunc_set(struct btf * btf,enum btf_kfunc_hook hook,const struct btf_kfunc_id_set * kset) btf_populate_kfunc_set() argument
8654 __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
8735 btf_kfunc_id_set_contains(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_id_set_contains() argument
8751 btf_kfunc_is_modify_return(const struct btf * btf,u32 kfunc_btf_id,const struct bpf_prog * prog) btf_kfunc_is_modify_return() argument
8760 struct btf *btf; __register_btf_kfunc_id_set() local
8809 btf_find_dtor_kfunc(struct btf * btf,u32 btf_id) btf_find_dtor_kfunc() argument
8826 btf_check_dtor_kfuncs(struct btf * btf,const struct btf_id_dtor_kfunc * dtors,u32 cnt) btf_check_dtor_kfuncs() argument
8868 struct btf *btf; register_btf_id_dtor_kfuncs() local
9099 __purge_cand_cache(struct btf * btf,struct bpf_cand_cache ** cache,int cache_size) __purge_cand_cache() argument
9131 purge_cand_cache(struct btf * btf) purge_cand_cache() argument
9358 struct btf *btf = reg->btf; btf_nested_type_is_trusted() local
9458 btf_add_struct_ops(struct btf * btf,struct bpf_struct_ops * st_ops,struct bpf_verifier_log * log) btf_add_struct_ops() argument
9500 bpf_struct_ops_find_value(struct btf * btf,u32 value_id) bpf_struct_ops_find_value() argument
9522 bpf_struct_ops_find(struct btf * btf,u32 type_id) bpf_struct_ops_find() argument
9546 struct btf *btf; __register_bpf_struct_ops() local
9574 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
171 prepare_arg_info(struct btf * btf,const char * st_ops_name,const char * member_name,const struct btf_type * func_proto,void * stub_func_addr,struct bpf_struct_ops_arg_info * arg_info) prepare_arg_info() argument
310 is_module_member(const struct btf * btf,u32 id) is_module_member() argument
332 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
545 check_zero_holes(const struct btf * btf,const struct btf_type * t,void * data) check_zero_holes() argument
1014 count_func_ptrs(const struct btf * btf,const struct btf_type * t) count_func_ptrs() argument
1035 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() argument
509 iter_type_str(const struct btf * btf,u32 btf_id) iter_type_str() argument
[all...]
/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
130 struct btf *btf; global() member
184 struct btf *btf; test_btf_dump_incremental() local
285 struct btf *btf; test_btf_dump_type_tags() local
339 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
420 test_btf_dump_int_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_int_data() argument
478 test_btf_dump_float_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_float_data() argument
523 test_btf_dump_char_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_char_data() argument
545 test_btf_dump_typedef_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_typedef_data() argument
600 test_btf_dump_enum_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_enum_data() argument
636 test_btf_dump_struct_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_struct_data() argument
871 test_btf_dump_var_data(struct btf * btf,struct btf_dump * d,char * str) test_btf_dump_var_data() argument
883 struct btf *btf; global() member
998 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
1026 struct btf *btf; test_btf_dump_datasec_data() local
1049 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 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.c253 struct btf *btf; in init_btf() local
279 struct btf *btf; in list_and_rb_node_same_struct() local
331 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
H A Dbtf_endian.c18 struct btf *btf = NULL, *swap_btf = NULL; in test_btf_endian() 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 Dbtf.c107 static const char *btf_str(const struct btf *btf, __u32 off) in btf_str()
119 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type()
435 static int dump_btf_raw(const struct btf *btf, in dump_btf_raw()
504 struct btf *btf = ctx; in cmp_kfuncs() local
512 static int dump_btf_kfuncs(struct btf_dump *d, const struct btf *btf) in dump_btf_kfuncs()
589 static int btf_type_rank(const struct btf *btf, __u32 index, bool has_name) in btf_type_rank()
629 static const char *btf_type_sort_name(const struct btf *btf, __u32 index, bool from_ref) in btf_type_sort_name()
666 static __u64 btf_name_hasher(__u64 hash, const struct btf *btf, __u32 name_off) in btf_name_hasher()
674 static __u64 btf_type_disambig_hash(const struct btf *btf, __u32 id, bool include_members) in btf_type_disambig_hash()
745 static struct sort_datum *sort_btf_c(const struct btf *btf) in sort_btf_c()
[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()
746 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem()
793 static int get_map_kv_btf(const struct bpf_map_info *info, struct btf **btf) in get_map_kv_btf()
819 static void free_map_kv_btf(struct btf *btf) in free_map_kv_btf()
831 struct btf *btf = NULL; in map_dump() local
1038 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.h191 disasm_print_insn(unsigned char * image,ssize_t len,int opcodes,const char * arch,const char * disassembler_options,const struct btf * btf,const struct bpf_prog_linfo * prog_linfo,__u64 func_ksym,unsigned int func_idx,bool linum) disasm_print_insn() argument
213 const struct btf *btf; global() member
[all...]
/linux/tools/perf/util/
H A Dbpf-event.c106 struct btf *btf) in perf_env__fetch_btf()
132 struct btf *btf, in synthesize_bpf_prog_name()
176 struct btf *btf; member
189 struct btf *btf; in bpf_metadata_read_map_data() local
279 static void format_btf_variable(struct btf *btf, char *buf, size_t buf_size, in format_btf_variable()
542 struct btf *btf = NULL; in perf_event__synthesize_one_bpf_prog() local
840 struct btf *btf = NULL; in perf_env__add_bpf_info() local
955 struct btf *btf = NULL; in __bpf_event__print_bpf_prog_info() local
/linux/kernel/trace/
H A Dtrace_probe.c341 static bool btf_type_is_char_ptr(struct btf *btf, const struct btf_type *type) in btf_type_is_char_ptr()
359 static bool btf_type_is_char_array(struct btf *btf, const struct btf_type *type) in btf_type_is_char_array()
382 struct btf *btf = ctx->btf; in check_prepare_btf_string_fetch() local
412 static const char *fetch_type_from_btf_type(struct btf *btf, in fetch_type_from_btf_type()
470 struct btf *btf; in query_btf_context() local
729 struct btf *btf = ctx->btf; in find_fetch_type_from_btf_type() local

1234