Symbol: btf_array
include/linux/btf.h
476
static inline struct btf_array *btf_array(const struct btf_type *t)
include/linux/btf.h
478
return (struct btf_array *)(t + 1);
kernel/bpf/btf.c
1087
const struct btf_array *array;
kernel/bpf/btf.c
2077
const struct btf_array *array = NULL;
kernel/bpf/btf.c
3037
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3089
const struct btf_array *array = btf_type_array(v->t);
kernel/bpf/btf.c
3154
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3164
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3754
const struct btf_array *array;
kernel/bpf/btf.c
3761
array = btf_array(var_type);
kernel/bpf/btf.c
5415
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
7077
struct btf_array *array_elem;
kernel/bpf/btf.c
7088
array_elem = (struct btf_array *)(mtype + 1);
kernel/bpf/btf.c
837
static const struct btf_array *btf_type_array(const struct btf_type *t)
kernel/bpf/btf.c
839
return (const struct btf_array *)(t + 1);
kernel/bpf/verifier.c
12447
const struct btf_array *array;
kernel/bpf/verifier.c
12460
array = btf_array(member_type);
kernel/trace/trace_probe.c
363
const struct btf_array *array;
kernel/trace/trace_probe.c
370
array = (const struct btf_array *)(type + 1);
tools/bpf/bpftool/btf.c
166
const struct btf_array *arr = (const void *)(t + 1);
tools/bpf/bpftool/btf.c
612
return btf_type_rank(btf, btf_array(t)->type, has_name);
tools/bpf/bpftool/btf.c
646
return btf_type_sort_name(btf, btf_array(t)->type, true);
tools/bpf/bpftool/btf.c
715
struct btf_array *arr = btf_array(t);
tools/bpf/bpftool/btf_dumper.c
211
static bool is_str_array(const struct btf *btf, const struct btf_array *arr,
tools/bpf/bpftool/btf_dumper.c
251
struct btf_array *arr = (struct btf_array *)(t + 1);
tools/bpf/bpftool/btf_dumper.c
623
const struct btf_array *array;
tools/bpf/bpftool/btf_dumper.c
654
array = (struct btf_array *)(t + 1);
tools/bpf/bpftool/gen.c
2096
struct btf_array *array;
tools/bpf/bpftool/gen.c
2132
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2170
struct btf_array *array;
tools/bpf/bpftool/gen.c
2205
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2277
struct btf_array *array;
tools/bpf/bpftool/gen.c
2279
array = btf_array(btf_type);
tools/lib/bpf/btf.c
2277
struct btf_array *a;
tools/lib/bpf/btf.c
2286
sz = sizeof(struct btf_type) + sizeof(struct btf_array);
tools/lib/bpf/btf.c
2295
a = btf_array(t);
tools/lib/bpf/btf.c
320
return base_size + sizeof(struct btf_array);
tools/lib/bpf/btf.c
350
struct btf_array *a;
tools/lib/bpf/btf.c
384
a = btf_array(t);
tools/lib/bpf/btf.c
4163
const struct btf_array *info = btf_array(t);
tools/lib/bpf/btf.c
4181
const struct btf_array *info1, *info2;
tools/lib/bpf/btf.c
4186
info1 = btf_array(t1);
tools/lib/bpf/btf.c
4187
info2 = btf_array(t2);
tools/lib/bpf/btf.c
4203
return btf_array(t1)->nelems == btf_array(t2)->nelems;
tools/lib/bpf/btf.c
4537
struct btf_array *a1, *a2;
tools/lib/bpf/btf.c
4542
a1 = btf_array(t1);
tools/lib/bpf/btf.c
4543
a2 = btf_array(t1);
tools/lib/bpf/btf.c
4794
const struct btf_array *cand_arr, *canon_arr;
tools/lib/bpf/btf.c
4798
cand_arr = btf_array(cand_type);
tools/lib/bpf/btf.c
4799
canon_arr = btf_array(canon_type);
tools/lib/bpf/btf.c
514
const struct btf_array *a = btf_array(t);
tools/lib/bpf/btf.c
5145
struct btf_array *info = btf_array(t);
tools/lib/bpf/btf.c
774
const struct btf_array *array;
tools/lib/bpf/btf.c
805
array = btf_array(t);
tools/lib/bpf/btf.c
847
return btf__align_of(btf, btf_array(t)->type);
tools/lib/bpf/btf.h
572
static inline struct btf_array *btf_array(const struct btf_type *t)
tools/lib/bpf/btf.h
574
return (struct btf_array *)(t + 1);
tools/lib/bpf/btf_dump.c
1330
id = btf_array(t)->type;
tools/lib/bpf/btf_dump.c
1506
const struct btf_array *a = btf_array(t);
tools/lib/bpf/btf_dump.c
2048
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
2094
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
2419
const struct btf_array *array = btf_array(t);
tools/lib/bpf/btf_dump.c
346
const struct btf_array *a = btf_array(t);
tools/lib/bpf/btf_dump.c
517
return btf_dump_order_type(d, btf_array(t)->type, false);
tools/lib/bpf/btf_dump.c
766
btf_dump_emit_type(d, btf_array(t)->type, cont_id);
tools/lib/bpf/btf_iter.c
48
2, {sizeof(struct btf_type) + offsetof(struct btf_array, type),
tools/lib/bpf/btf_iter.c
49
sizeof(struct btf_type) + offsetof(struct btf_array, index_type)}
tools/lib/bpf/btf_relocate.c
160
struct btf_array *a = btf_array(t);
tools/lib/bpf/libbpf.c
10649
const struct btf_array *array;
tools/lib/bpf/libbpf.c
10685
array = btf_array(array_type);
tools/lib/bpf/libbpf.c
2473
const struct btf_array *arr_info;
tools/lib/bpf/libbpf.c
2493
arr_info = btf_array(arr_t);
tools/lib/bpf/libbpf.c
2722
if (!btf_is_array(t) || btf_array(t)->nelems) {
tools/lib/bpf/libbpf.c
2727
t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL);
tools/lib/bpf/libbpf.c
4162
if (btf_array(t)->nelems == 0)
tools/lib/bpf/libbpf.c
4164
if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR)
tools/lib/bpf/linker.c
1576
id1 = btf_array(t1)->type;
tools/lib/bpf/linker.c
1577
id2 = btf_array(t2)->type;
tools/lib/bpf/relo_core.c
1659
const struct btf_array *local_array = btf_array(local_t);
tools/lib/bpf/relo_core.c
1660
const struct btf_array *targ_array = btf_array(targ_t);
tools/lib/bpf/relo_core.c
188
local_id = btf_array(local_type)->type;
tools/lib/bpf/relo_core.c
189
targ_id = btf_array(targ_type)->type;
tools/lib/bpf/relo_core.c
365
const struct btf_array *a = btf_array(t);
tools/lib/bpf/relo_core.c
456
local_id = btf_array(local_type)->type;
tools/lib/bpf/relo_core.c
457
targ_id = btf_array(targ_type)->type;
tools/lib/bpf/relo_core.c
641
const struct btf_array *a;
tools/lib/bpf/relo_core.c
647
a = btf_array(targ_type);
tools/lib/bpf/relo_core.c
714
t = skip_mods_and_typedefs(spec->btf, btf_array(t)->type, &elem_id);
tools/lib/bpf/relo_core.c
72
const struct btf_array *arr)
tools/lib/bpf/relo_core.c
781
t = skip_mods_and_typedefs(spec->btf, btf_array(t)->type, &elem_id);
tools/testing/selftests/bpf/btf_helpers.c
118
const struct btf_array *arr = btf_array(t);
tools/testing/selftests/bpf/prog_tests/btf.c
8116
return base_size + sizeof(struct btf_array);
tools/testing/selftests/bpf/prog_tests/btf_write.c
92
ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
93
ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type");
tools/testing/selftests/bpf/prog_tests/btf_write.c
94
ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems");
tools/testing/selftests/bpf/prog_tests/core_reloc.c
476
} else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) &&
tools/testing/selftests/bpf/veristat.c
1923
struct btf_array *barr;
tools/testing/selftests/bpf/veristat.c
1934
barr = btf_array(t);