Searched refs:btf_array (Results 1 – 16 of 16) sorted by relevance
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 95 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in test_btf_write() 96 ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type"); in test_btf_write() 97 ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems"); in test_btf_write()
|
D | core_reloc.c | 414 } 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 | 6794 return base_size + sizeof(struct btf_array); in btf_type_size()
|
/Linux-v5.15/tools/lib/bpf/ |
D | btf.c | 297 return base_size + sizeof(struct btf_array); in btf_type_size() 324 struct btf_array *a; in btf_bswap_type_rest() 350 a = btf_array(t); in btf_bswap_type_rest() 564 const struct btf_array *array; in btf__resolve_size() 592 array = btf_array(t); in btf__resolve_size() 632 return btf__align_of(btf, btf_array(t)->type); in btf__align_of() 1843 struct btf_array *a; in btf__add_array() 1852 sz = sizeof(struct btf_type) + sizeof(struct btf_array); in btf__add_array() 1861 a = btf_array(t); in btf__add_array() 3385 const struct btf_array *info = btf_array(t); in btf_hash_array() [all …]
|
D | relo_core.c | 45 const struct btf_array *arr) in is_flex_arr() 255 const struct btf_array *a = btf_array(t); in bpf_core_parse_spec() 345 local_id = btf_array(local_type)->type; in bpf_core_fields_are_compat() 346 targ_id = btf_array(targ_type)->type; in bpf_core_fields_are_compat() 522 const struct btf_array *a; in bpf_core_spec_match() 528 a = btf_array(targ_type); in bpf_core_spec_match()
|
D | btf_dump.c | 323 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced() 494 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type() 738 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type() 1158 id = btf_array(t)->type; in btf_dump_emit_type_decl() 1324 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain() 1830 const struct btf_array *array = btf_array(t); in btf_dump_array_data() 2111 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
|
D | btf.h | 346 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 348 return (struct btf_array *)(t + 1); in btf_array()
|
D | libbpf.c | 2011 const struct btf_array *arr_info; in get_map_field_int() 2031 arr_info = btf_array(arr_t); in get_map_field_int() 2199 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def() 2204 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def() 3219 if (btf_array(t)->nelems == 0) in find_kcfg_type() 3221 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type() 5064 local_id = btf_array(local_type)->type; in bpf_core_types_are_compat() 5065 targ_id = btf_array(targ_type)->type; in bpf_core_types_are_compat()
|
D | linker.c | 1383 id1 = btf_array(t1)->type; in glob_sym_btf_matches() 1384 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | btf_dumper.c | 177 static bool is_str_array(const struct btf *btf, const struct btf_array *arr, in is_str_array() 217 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array() 587 const struct btf_array *array; in __btf_dumper_type_only() 617 array = (struct btf_array *)(t + 1); in __btf_dumper_type_only()
|
D | btf.c | 154 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
|
/Linux-v5.15/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 114 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
|
/Linux-v5.15/include/uapi/linux/ |
D | btf.h | 105 struct btf_array { struct
|
/Linux-v5.15/tools/include/uapi/linux/ |
D | btf.h | 105 struct btf_array { struct
|
/Linux-v5.15/Documentation/bpf/ |
D | btf.rst | 196 ``btf_type`` is followed by one ``struct btf_array``:: 198 struct btf_array { 204 The ``struct btf_array`` encoding: 214 The ``struct btf_array`` allows chaining through element type to represent 219 * [2]: array, ``btf_array.type = [1]``, ``btf_array.nelems = 6`` 220 * [3]: array, ``btf_array.type = [2]``, ``btf_array.nelems = 5`` 223 one-dimensional array, e.g., for ``a[5][6]``, the ``btf_array.nelems`` is
|
/Linux-v5.15/kernel/bpf/ |
D | btf.c | 604 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array() 606 return (const struct btf_array *)(t + 1); in btf_type_array() 819 const struct btf_array *array; in btf_show_name() 1698 const struct btf_array *array = NULL; in __btf_resolve_size() 2648 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta() 2700 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve() 2765 const struct btf_array *array = btf_type_array(t); in btf_array_log() 2775 const struct btf_array *array = btf_type_array(t); in __btf_array_show() 4032 const struct btf_array *array = btf_type_array(t); in btf_resolve_valid() 4908 struct btf_array *array_elem; in btf_struct_walk() [all …]
|