| /linux-6.15/tools/lib/bpf/ |
| H A 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() 715 t = skip_mods_and_typedefs(spec->btf, btf_array(t)->type, &elem_id); in bpf_core_calc_field_relo() 1660 const struct btf_array *local_array = btf_array(local_t); in __bpf_core_types_match() [all …]
|
| H A D | btf_iter.c | 48 2, {sizeof(struct btf_type) + offsetof(struct btf_array, type), in btf_field_iter_init() 49 sizeof(struct btf_type) + offsetof(struct btf_array, index_type)} in btf_field_iter_init()
|
| H A D | btf_dump.c | 343 const struct btf_array *a = btf_array(t); in btf_dump_mark_referenced() 514 return btf_dump_order_type(d, btf_array(t)->type, false); in btf_dump_order_type() 763 btf_dump_emit_type(d, btf_array(t)->type, cont_id); in btf_dump_emit_type() 1327 id = btf_array(t)->type; in btf_dump_emit_type_decl() 1503 const struct btf_array *a = btf_array(t); in btf_dump_emit_type_chain() 2036 const struct btf_array *array = btf_array(t); in btf_dump_array_data() 2356 const struct btf_array *array = btf_array(t); in btf_dump_type_data_check_zero()
|
| H A D | btf.h | 521 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 523 return (struct btf_array *)(t + 1); in btf_array()
|
| H A D | btf.c | 345 struct btf_array *a; in btf_bswap_type_rest() 379 a = btf_array(t); in btf_bswap_type_rest() 509 const struct btf_array *a = btf_array(t); in btf_validate_type() 800 array = btf_array(t); in btf__resolve_size() 2157 struct btf_array *a; in btf__add_array() 2175 a = btf_array(t); in btf__add_array() 4022 const struct btf_array *info = btf_array(t); in btf_hash_array() 4045 info1 = btf_array(t1); in btf_equal_array() 4046 info2 = btf_array(t2); in btf_equal_array() 4062 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array() [all …]
|
| H A D | btf_relocate.c | 160 struct btf_array *a = btf_array(t); in btf_mark_embedded_composite_type_ids()
|
| H A D | linker.c | 1577 id1 = btf_array(t1)->type; in glob_sym_btf_matches() 1578 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
|
| H A D | libbpf.c | 2449 const struct btf_array *arr_info; in get_map_field_int() 2469 arr_info = btf_array(arr_t); in get_map_field_int() 2698 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def() 2703 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def() 4130 if (btf_array(t)->nelems == 0) in find_kcfg_type() 4132 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in find_kcfg_type() 10300 const struct btf_array *array; in map_btf_datasec_resize() 10336 array = btf_array(array_type); in map_btf_datasec_resize()
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A 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()
|
| H A D | btf.c | 166 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type() 612 return btf_type_rank(btf, btf_array(t)->type, has_name); in btf_type_rank() 646 return btf_type_sort_name(btf, btf_array(t)->type, true); in btf_type_sort_name() 715 struct btf_array *arr = btf_array(t); in btf_type_disambig_hash()
|
| H A D | gen.c | 2036 struct btf_array *array; in btfgen_mark_type() 2072 array = btf_array(btf_type); in btfgen_mark_type() 2110 struct btf_array *array; in btfgen_record_field_relo() 2145 array = btf_array(btf_type); in btfgen_record_field_relo() 2217 struct btf_array *array; in btfgen_mark_type_match() 2219 array = btf_array(btf_type); in btfgen_mark_type_match()
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | btf_helpers.c | 118 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | btf.h | 112 struct btf_array { struct
|
| /linux-6.15/include/uapi/linux/ |
| H A D | btf.h | 112 struct btf_array { struct
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A 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()
|
| H A D | core_reloc.c | 476 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) && in setup_type_id_case_local()
|
| H A D | btf.c | 8051 return base_size + sizeof(struct btf_array); in btf_type_size()
|
| /linux-6.15/include/linux/ |
| H A D | btf.h | 472 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() function 474 return (struct btf_array *)(t + 1); in btf_array()
|
| /linux-6.15/Documentation/bpf/ |
| H A D | btf.rst | 200 ``btf_type`` is followed by one ``struct btf_array``:: 202 struct btf_array { 208 The ``struct btf_array`` encoding: 218 The ``struct btf_array`` allows chaining through element type to represent 223 * [2]: array, ``btf_array.type = [1]``, ``btf_array.nelems = 6`` 224 * [3]: array, ``btf_array.type = [2]``, ``btf_array.nelems = 5`` 227 one-dimensional array, e.g., for ``a[5][6]``, the ``btf_array.nelems`` is
|
| /linux-6.15/kernel/bpf/ |
| H A D | btf.c | 727 return (const struct btf_array *)(t + 1); in btf_type_array() 958 const struct btf_array *array; in btf_show_name() 1939 const struct btf_array *array = NULL; in __btf_resolve_size() 2899 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta() 3016 const struct btf_array *array = btf_type_array(t); in btf_array_log() 3026 const struct btf_array *array = btf_type_array(t); in __btf_array_show() 3631 const struct btf_array *array; in btf_find_field_one() 3638 array = btf_array(var_type); in btf_find_field_one() 5286 const struct btf_array *array = btf_type_array(t); in btf_resolve_valid() 6944 struct btf_array *array_elem; in btf_struct_walk() [all …]
|
| H A D | verifier.c | 12015 const struct btf_array *array; in __btf_type_is_scalar_struct() 12028 array = btf_array(member_type); in __btf_type_is_scalar_struct()
|
| /linux-6.15/kernel/trace/ |
| H A D | trace_probe.c | 344 const struct btf_array *array; in btf_type_is_char_array() 351 array = (const struct btf_array *)(type + 1); in btf_type_is_char_array()
|