Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dbtf.h252 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function
254 return (struct btf_array *)(t + 1); in btf_array()
Dbtf.c164 return base_size + sizeof(struct btf_array); in btf_type_size()
231 const struct btf_array *array; in btf__resolve_size()
259 array = btf_array(t); in btf__resolve_size()
1867 const struct btf_array *info = btf_array(t); in btf_hash_array()
1885 const struct btf_array *info1, *info2; in btf_equal_array()
1890 info1 = btf_array(t1); in btf_equal_array()
1891 info2 = btf_array(t2); in btf_equal_array()
1907 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
2300 const struct btf_array *cand_arr, *canon_arr; in btf_dedup_is_equiv()
2304 cand_arr = btf_array(cand_type); in btf_dedup_is_equiv()
[all …]
Dbtf_dump.c276 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced()
446 return btf_dump_order_type(d, btf_array(t)->type, through_ptr); in btf_dump_order_type()
684 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type()
772 return btf_align_of(btf, btf_array(t)->type); in btf_align_of()
1078 id = btf_array(t)->type; in btf_dump_emit_type_decl()
1228 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain()
Dlibbpf.c1047 const struct btf_array *arr_info; in get_map_field_int()
1067 arr_info = btf_array(arr_t); in get_map_field_int()
2446 const struct btf_array *a = btf_array(t); in bpf_core_spec_parse()
2602 local_id = btf_array(local_type)->type; in bpf_core_fields_are_compat()
2603 targ_id = btf_array(targ_type)->type; in bpf_core_fields_are_compat()
2743 const struct btf_array *a; in bpf_core_spec_match()
2748 a = btf_array(targ_type); in bpf_core_spec_match()
/tools/include/uapi/linux/
Dbtf.h104 struct btf_array { struct
/tools/bpf/bpftool/
Dbtf_dumper.c55 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array()
425 const struct btf_array *array; in __btf_dumper_type_only()
454 array = (struct btf_array *)(t + 1); in __btf_dumper_type_only()
Dbtf.c133 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
/tools/testing/selftests/bpf/
Dtest_btf.c6691 return base_size + sizeof(struct btf_array); in btf_type_size()