Searched refs:btf_array (Results 1 – 16 of 16) sorted by relevance
/linux/tools/bpf/bpftool/ |
A 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()
|
A D | btf.c | 151 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
|
/linux/tools/lib/bpf/ |
A 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()
|
A D | btf.c | 337 struct btf_array *a; in btf_bswap_type_rest() 363 a = btf_array(t); in btf_bswap_type_rest() 614 array = btf_array(t); in btf__resolve_size() 1892 struct btf_array *a; in btf__add_array() 1910 a = btf_array(t); in btf__add_array() 3478 const struct btf_array *info = btf_array(t); in btf_hash_array() 3501 info1 = btf_array(t1); in btf_equal_array() 3502 info2 = btf_array(t2); in btf_equal_array() 3518 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array() 4326 struct btf_array *info = btf_array(t); in btf_dedup_ref_type() [all …]
|
A D | btf_dump.c | 324 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced() 495 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type() 740 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type() 1160 id = btf_array(t)->type; in btf_dump_emit_type_decl() 1326 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain() 1840 const struct btf_array *array = btf_array(t); in btf_dump_array_data() 2119 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
|
A D | btf.h | 454 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 456 return (struct btf_array *)(t + 1); in btf_array()
|
A D | libbpf.c | 2100 const struct btf_array *arr_info; in get_map_field_int() 2120 arr_info = btf_array(arr_t); in get_map_field_int() 2288 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def() 2293 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def() 3457 if (btf_array(t)->nelems == 0) in find_kcfg_type() 3459 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type() 5354 local_id = btf_array(local_type)->type; in bpf_core_types_are_compat() 5355 targ_id = btf_array(targ_type)->type; in bpf_core_types_are_compat()
|
A D | linker.c | 1382 id1 = btf_array(t1)->type; in glob_sym_btf_matches() 1383 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
|
/linux/tools/testing/selftests/bpf/ |
A D | btf_helpers.c | 115 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | btf_write.c | 91 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type"); in gen_btf() 92 ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type"); in gen_btf() 93 ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems"); in gen_btf()
|
A D | core_reloc.c | 413 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
|
A D | btf.c | 7266 return base_size + sizeof(struct btf_array); in btf_type_size()
|
/linux/tools/include/uapi/linux/ |
A D | btf.h | 109 struct btf_array { struct
|
/linux/include/uapi/linux/ |
A D | btf.h | 109 struct btf_array { struct
|
/linux/Documentation/bpf/ |
A D | btf.rst | 197 ``btf_type`` is followed by one ``struct btf_array``:: 199 struct btf_array { 205 The ``struct btf_array`` encoding: 215 The ``struct btf_array`` allows chaining through element type to represent 220 * [2]: array, ``btf_array.type = [1]``, ``btf_array.nelems = 6`` 221 * [3]: array, ``btf_array.type = [2]``, ``btf_array.nelems = 5`` 224 one-dimensional array, e.g., for ``a[5][6]``, the ``btf_array.nelems`` is
|
/linux/kernel/bpf/ |
A D | btf.c | 618 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array() 620 return (const struct btf_array *)(t + 1); in btf_type_array() 838 const struct btf_array *array; in btf_show_name() 1717 const struct btf_array *array = NULL; in __btf_resolve_size() 2667 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta() 2719 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve() 2784 const struct btf_array *array = btf_type_array(t); in btf_array_log() 2794 const struct btf_array *array = btf_type_array(t); in __btf_array_show() 4160 const struct btf_array *array = btf_type_array(t); in btf_resolve_valid() 5036 struct btf_array *array_elem; in btf_struct_walk() [all …]
|
Completed in 81 milliseconds