Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Drelo_core.c72 const struct btf_array *arr) in is_flex_arr()
188 local_id = btf_array(local_type)->type; in __bpf_core_types_are_compat()
189 targ_id = btf_array(targ_type)->type; in __bpf_core_types_are_compat()
367 const struct btf_array *a = btf_array(t); in bpf_core_parse_spec()
458 local_id = btf_array(local_type)->type; in bpf_core_fields_are_compat()
459 targ_id = btf_array(targ_type)->type; in bpf_core_fields_are_compat()
643 const struct btf_array *a; in bpf_core_spec_match()
649 a = btf_array(targ_type); in bpf_core_spec_match()
716 t = skip_mods_and_typedefs(spec->btf, btf_array(t)->type, &elem_id); in bpf_core_calc_field_relo()
783 t = skip_mods_and_typedefs(spec->btf, btf_array(t)->type, &elem_id); in bpf_core_calc_field_relo()
[all …]
H A 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()
H A Dbtf_dump.c346 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced()
517 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type()
766 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type()
1330 id = btf_array(t)->type; in btf_dump_emit_type_decl()
1506 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain()
2048 const struct btf_array *array = btf_array(t); in btf_dump_string_data()
2094 const struct btf_array *array = btf_array(t); in btf_dump_array_data()
2419 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
H A Dbtf.c43 [BTF_KIND_ARRAY] = { sizeof(struct btf_array), 0, 0 },
477 return base_size + sizeof(struct btf_array); in btf_type_size()
506 struct btf_array *a; in btf_bswap_type_rest()
540 a = btf_array(t); in btf_bswap_type_rest()
669 const struct btf_array *a = btf_array(t); in btf_validate_type()
933 const struct btf_array *array; in btf__resolve_size()
964 array = btf_array(t); in btf__resolve_size()
1006 return btf__align_of(btf, btf_array(t)->type); in btf__align_of()
2533 struct btf_array *a; in btf__add_array()
2544 sz = sizeof(struct btf_type) + sizeof(struct btf_array); in btf__add_array()
[all …]
H A Dbtf.h594 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function
596 return (struct btf_array *)(t + 1); in btf_array()
H A Dbtf_relocate.c160 struct btf_array *a = btf_array(t); in btf_mark_embedded_composite_type_ids()
H A Dlinker.c1576 id1 = btf_array(t1)->type; in glob_sym_btf_matches()
1577 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
H A Dlibbpf.c2502 const struct btf_array *arr_info; in get_map_field_int()
2522 arr_info = btf_array(arr_t); in get_map_field_int()
2751 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def()
2756 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def()
4242 if (btf_array(t)->nelems == 0) in find_kcfg_type()
4244 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type()
10958 const struct btf_array *array; in map_btf_datasec_resize()
10994 array = btf_array(array_type); in map_btf_datasec_resize()
/linux/tools/bpf/bpftool/
H A 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()
H A Dbtf.c167 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
607 return btf_type_rank(btf, btf_array(t)->type, has_name); in btf_type_rank()
641 return btf_type_sort_name(btf, btf_array(t)->type, true); in btf_type_sort_name()
710 struct btf_array *arr = btf_array(t); in btf_type_disambig_hash()
H A Dgen.c2127 struct btf_array *array; in btfgen_mark_type()
2164 array = btf_array(btf_type); in btfgen_mark_type()
2202 struct btf_array *array; in btfgen_record_field_relo()
2237 array = btf_array(btf_type); in btfgen_record_field_relo()
2310 struct btf_array *array; in btfgen_mark_type_match()
2312 array = btf_array(btf_type); in btfgen_mark_type_match()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c118 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
H A Dveristat.c1998 struct btf_array *barr; in adjust_var_secinfo_array()
2009 barr = btf_array(t); in adjust_var_secinfo_array()
/linux/tools/include/uapi/linux/
H A Dbtf.h125 /* BTF_KIND_ARRAY is followed by one "struct btf_array" */
126 struct btf_array {
111 struct btf_array { global() struct
112 typebtf_array global() argument
113 index_typebtf_array global() argument
114 nelemsbtf_array global() argument
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dcore_reloc.c476 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
H A Dbtf.c8193 return base_size + sizeof(struct btf_array); in btf_type_size()
/linux/include/linux/
H A Dbtf.h481 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function
483 return (struct btf_array *)(t + 1); in btf_array()
/linux/kernel/bpf/
H A Dbtf.c838 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array()
840 return (const struct btf_array *)(t + 1); in btf_type_array()
1088 const struct btf_array *array; in btf_show_name()
2083 const struct btf_array *array = NULL; in __btf_resolve_size()
3042 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta()
3094 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve()
3159 const struct btf_array *array = btf_type_array(t); in btf_array_log()
3169 const struct btf_array *array = btf_type_array(t); in __btf_array_show()
3805 const struct btf_array *array; in btf_find_field_one()
3812 array = btf_array(var_type); in btf_find_field_one()
[all …]
H A Dverifier.c11528 const struct btf_array *array; in __btf_type_is_scalar_struct()
11541 array = btf_array(member_type); in __btf_type_is_scalar_struct()
/linux/kernel/trace/
H A Dtrace_probe.c429 const struct btf_array *array; in btf_type_is_char_array()
435 array = (const struct btf_array *)(type + 1); in btf_type_is_char_array()