Home
last modified time | relevance | path

Searched refs:btf_array (Results 1 – 16 of 16) sorted by relevance

/tools/lib/bpf/
Dbtf_iter.c48 2, {sizeof(struct btf_type) + offsetof(struct btf_array, type), in btf_field_iter_init()
49 sizeof(struct btf_type) + offsetof(struct btf_array, index_type)} in btf_field_iter_init()
Drelo_core.c73 const struct btf_array *arr) in is_flex_arr()
189 local_id = btf_array(local_type)->type; in __bpf_core_types_are_compat()
190 targ_id = btf_array(targ_type)->type; in __bpf_core_types_are_compat()
366 const struct btf_array *a = btf_array(t); in bpf_core_parse_spec()
457 local_id = btf_array(local_type)->type; in bpf_core_fields_are_compat()
458 targ_id = btf_array(targ_type)->type; in bpf_core_fields_are_compat()
642 const struct btf_array *a; in bpf_core_spec_match()
648 a = btf_array(targ_type); in bpf_core_spec_match()
1644 const struct btf_array *local_array = btf_array(local_t); in __bpf_core_types_match()
1645 const struct btf_array *targ_array = btf_array(targ_t); in __bpf_core_types_match()
Dbtf.h515 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function
517 return (struct btf_array *)(t + 1); in btf_array()
Dbtf_dump.c345 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced()
516 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type()
765 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type()
1329 id = btf_array(t)->type; in btf_dump_emit_type_decl()
1502 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain()
2035 const struct btf_array *array = btf_array(t); in btf_dump_array_data()
2355 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
Dbtf.c314 return base_size + sizeof(struct btf_array); in btf_type_size()
344 struct btf_array *a; in btf_bswap_type_rest()
378 a = btf_array(t); in btf_bswap_type_rest()
508 const struct btf_array *a = btf_array(t); in btf_validate_type()
768 const struct btf_array *array; in btf__resolve_size()
799 array = btf_array(t); in btf__resolve_size()
841 return btf__align_of(btf, btf_array(t)->type); in btf__align_of()
2145 struct btf_array *a; in btf__add_array()
2154 sz = sizeof(struct btf_type) + sizeof(struct btf_array); in btf__add_array()
2163 a = btf_array(t); in btf__add_array()
[all …]
Dbtf_relocate.c160 struct btf_array *a = btf_array(t); in btf_mark_embedded_composite_type_ids()
Dlinker.c1421 id1 = btf_array(t1)->type; in glob_sym_btf_matches()
1422 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
Dlibbpf.c2414 const struct btf_array *arr_info; in get_map_field_int()
2434 arr_info = btf_array(arr_t); in get_map_field_int()
2663 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def()
2668 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def()
4088 if (btf_array(t)->nelems == 0) in find_kcfg_type()
4090 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type()
10229 const struct btf_array *array; in map_btf_datasec_resize()
10265 array = btf_array(array_type); in map_btf_datasec_resize()
/tools/include/uapi/linux/
Dbtf.h111 struct btf_array { struct
/tools/testing/selftests/bpf/
Dbtf_helpers.c118 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
/tools/bpf/bpftool/
Dbtf_dumper.c211 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array()
251 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array()
623 const struct btf_array *array; in __btf_dumper_type_only()
654 array = (struct btf_array *)(t + 1); in __btf_dumper_type_only()
Dbtf.c159 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
539 return btf_type_rank(btf, btf_array(t)->type, has_name); in btf_type_rank()
573 return btf_type_sort_name(btf, btf_array(t)->type, true); in btf_type_sort_name()
642 struct btf_array *arr = btf_array(t); in btf_type_disambig_hash()
Dgen.c2036 struct btf_array *array; in btfgen_mark_type()
2072 array = btf_array(btf_type); in btfgen_mark_type()
2110 struct btf_array *array; in btfgen_record_field_relo()
2145 array = btf_array(btf_type); in btfgen_record_field_relo()
2217 struct btf_array *array; in btfgen_mark_type_match()
2219 array = btf_array(btf_type); in btfgen_mark_type_match()
/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c92 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in gen_btf()
93 ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type"); in gen_btf()
94 ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems"); in gen_btf()
Dcore_reloc.c475 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
Dbtf.c8036 return base_size + sizeof(struct btf_array); in btf_type_size()