Home
last modified time | relevance | path

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

/Linux-v5.4/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()
1868 const struct btf_array *info = btf_array(t); in btf_hash_array()
1886 const struct btf_array *info1, *info2; in btf_equal_array()
1891 info1 = btf_array(t1); in btf_equal_array()
1892 info2 = btf_array(t2); in btf_equal_array()
1908 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
2301 const struct btf_array *cand_arr, *canon_arr; in btf_dedup_is_equiv()
2305 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()
1072 id = btf_array(t)->type; in btf_dump_emit_type_decl()
1222 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()
2440 const struct btf_array *a = btf_array(t); in bpf_core_spec_parse()
2596 local_id = btf_array(local_type)->type; in bpf_core_fields_are_compat()
2597 targ_id = btf_array(targ_type)->type; in bpf_core_fields_are_compat()
2737 const struct btf_array *a; in bpf_core_spec_match()
2742 a = btf_array(targ_type); in bpf_core_spec_match()
/Linux-v5.4/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()
/Linux-v5.4/include/uapi/linux/
Dbtf.h104 struct btf_array { struct
/Linux-v5.4/tools/include/uapi/linux/
Dbtf.h104 struct btf_array { struct
/Linux-v5.4/Documentation/bpf/
Dbtf.rst195 ``btf_type`` is followed by one ``struct btf_array``::
197 struct btf_array {
203 The ``struct btf_array`` encoding:
213 The ``struct btf_array`` allows chaining through element type to represent
218 * [2]: array, ``btf_array.type = [1]``, ``btf_array.nelems = 6``
219 * [3]: array, ``btf_array.type = [2]``, ``btf_array.nelems = 5``
222 one-dimensional array, e.g., for ``a[5][6]``, the ``btf_array.nelems`` is
/Linux-v5.4/kernel/bpf/
Dbtf.c493 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array()
495 return (const struct btf_array *)(t + 1); in btf_type_array()
1875 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta()
1927 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve()
1992 const struct btf_array *array = btf_type_array(t); in btf_array_log()
2002 const struct btf_array *array = btf_type_array(t); in btf_array_seq_show()
3016 const struct btf_array *array = btf_type_array(t); in btf_resolve_valid()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf.c6691 return base_size + sizeof(struct btf_array); in btf_type_size()