/Linux-v6.1/tools/lib/bpf/ |
D | relo_core.c | 73 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() 1647 const struct btf_array *local_array = btf_array(local_t); in __bpf_core_types_match() 1648 const struct btf_array *targ_array = btf_array(targ_t); in __bpf_core_types_match()
|
D | btf.c | 311 return base_size + sizeof(struct btf_array); in btf_type_size() 341 struct btf_array *a; in btf_bswap_type_rest() 375 a = btf_array(t); in btf_bswap_type_rest() 606 const struct btf_array *array; in btf__resolve_size() 637 array = btf_array(t); in btf__resolve_size() 679 return btf__align_of(btf, btf_array(t)->type); in btf__align_of() 1890 struct btf_array *a; in btf__add_array() 1899 sz = sizeof(struct btf_type) + sizeof(struct btf_array); in btf__add_array() 1908 a = btf_array(t); in btf__add_array() 3538 const struct btf_array *info = btf_array(t); in btf_hash_array() [all …]
|
D | btf_dump.c | 330 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced() 501 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type() 750 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type() 1214 id = btf_array(t)->type; in btf_dump_emit_type_decl() 1387 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain() 1906 const struct btf_array *array = btf_array(t); in btf_dump_array_data() 2206 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
|
D | btf.h | 479 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 481 return (struct btf_array *)(t + 1); in btf_array()
|
D | linker.c | 1380 id1 = btf_array(t1)->type; in glob_sym_btf_matches() 1381 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
|
D | libbpf.c | 2075 const struct btf_array *arr_info; in get_map_field_int() 2095 arr_info = btf_array(arr_t); in get_map_field_int() 2284 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def() 2289 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def() 3591 if (btf_array(t)->nelems == 0) in find_kcfg_type() 3593 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type()
|
/Linux-v6.1/include/linux/ |
D | btf.h | 379 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 381 return (struct btf_array *)(t + 1); in btf_array()
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | btf_dumper.c | 211 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()
|
D | gen.c | 1737 struct btf_array *array; in btfgen_mark_type() 1773 array = btf_array(btf_type); in btfgen_mark_type() 1811 struct btf_array *array; in btfgen_record_field_relo() 1846 array = btf_array(btf_type); in btfgen_record_field_relo() 1918 struct btf_array *array; in btfgen_mark_type_match() 1920 array = btf_array(btf_type); in btfgen_mark_type_match()
|
D | btf.c | 149 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 118 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | btf.h | 111 struct btf_array { struct
|
/Linux-v6.1/include/uapi/linux/ |
D | btf.h | 111 struct btf_array { struct
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 92 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()
|
D | core_reloc.c | 474 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
|
D | btf.c | 7641 return base_size + sizeof(struct btf_array); in btf_type_size()
|
/Linux-v6.1/Documentation/bpf/ |
D | btf.rst | 199 ``btf_type`` is followed by one ``struct btf_array``:: 201 struct btf_array { 207 The ``struct btf_array`` encoding: 217 The ``struct btf_array`` allows chaining through element type to represent 222 * [2]: array, ``btf_array.type = [1]``, ``btf_array.nelems = 6`` 223 * [3]: array, ``btf_array.type = [2]``, ``btf_array.nelems = 5`` 226 one-dimensional array, e.g., for ``a[5][6]``, the ``btf_array.nelems`` is
|
/Linux-v6.1/kernel/bpf/ |
D | btf.c | 696 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array() 698 return (const struct btf_array *)(t + 1); in btf_type_array() 922 const struct btf_array *array; in btf_show_name() 1833 const struct btf_array *array = NULL; in __btf_resolve_size() 2793 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta() 2845 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve() 2910 const struct btf_array *array = btf_type_array(t); in btf_array_log() 2920 const struct btf_array *array = btf_type_array(t); in __btf_array_show() 4656 const struct btf_array *array = btf_type_array(t); in btf_resolve_valid() 5578 struct btf_array *array_elem; in btf_struct_walk() [all …]
|