| /linux/tools/lib/bpf/ |
| 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.h | 592 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_params() 594 return (struct btf_array *)(t + 1); in btf_params() 522 static inline struct btf_array *btf_array(const struct btf_type *t) btf_array() function
|
| 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 | 1576 id1 = btf_array(t1)->type; in glob_sym_btf_matches() 1577 id2 = btf_array(t2)->type; in glob_sym_btf_matches()
|
| H A D | libbpf.c | 2473 const struct btf_array *arr_info; in get_map_field_int() 2493 arr_info = btf_array(arr_t); in get_map_field_int() 2722 if (!btf_is_array(t) || btf_array(t)->nelems) { in parse_btf_map_def() 2727 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL); in parse_btf_map_def() 4208 if (btf_array(t)->nelems == 0) 4210 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR) in add_dummy_ksym_var() 10809 const struct btf_array *array; in bpf_map__set_ifindex() 10845 array = btf_array(array_type); in bpf_map__set_exclusive_program()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | btf_helpers.c | 118 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
|
| H A D | veristat.c | 1936 struct btf_array *barr; in adjust_var_secinfo_array() 1947 barr = btf_array(t); in adjust_var_secinfo_array()
|
| /linux/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 | 8116 return base_size + sizeof(struct btf_array); in do_test_dedup()
|
| /linux/tools/include/uapi/linux/ |
| H A D | btf.h | 123 /* BTF_KIND_ARRAY is followed by one "struct btf_array" */ 124 struct btf_array { 111 struct btf_array { global() struct 112 typebtf_array global() argument 113 index_typebtf_array global() argument 114 nelemsbtf_array global() argument
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 167 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type() 613 return btf_type_rank(btf, btf_array(t)->type, has_name); in btf_type_rank() 647 return btf_type_sort_name(btf, btf_array(t)->type, true); in btf_type_sort_name() 716 struct btf_array *arr = btf_array(t); in btf_type_disambig_hash()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 838 static const struct btf_array *btf_type_array(const struct btf_type *t) in btf_type_array() 840 return (const struct btf_array *)(t + 1); in btf_type_array() 1088 const struct btf_array *array; in btf_show_name() 2083 const struct btf_array *array = NULL; in __btf_resolve_size() 3043 const struct btf_array *array = btf_type_array(t); in btf_array_check_meta() 3095 const struct btf_array *array = btf_type_array(v->t); in btf_array_resolve() 3160 const struct btf_array *array = btf_type_array(t); in btf_array_log() 3170 const struct btf_array *array = btf_type_array(t); in __btf_array_show() 3760 const struct btf_array *array; in btf_find_field_one() 3767 array = btf_array(var_type); in btf_find_field_one() [all …]
|
| H A D | verifier.c | 11077 const struct btf_array *array; in __btf_type_is_scalar_struct() 11090 array = btf_array(member_type); in __btf_type_is_scalar_struct()
|
| /linux/kernel/trace/ |
| H A D | trace_probe.c | 363 const struct btf_array *array; in btf_type_is_char_array() 370 array = (const struct btf_array *)(type + 1); in btf_type_is_char_array()
|