Symbol: btf_array
include/linux/btf.h
477
static inline struct btf_array *btf_array(const struct btf_type *t)
include/linux/btf.h
479
return (struct btf_array *)(t + 1);
kernel/bpf/btf.c
1088
const struct btf_array *array;
kernel/bpf/btf.c
2083
const struct btf_array *array = NULL;
kernel/bpf/btf.c
3043
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3095
const struct btf_array *array = btf_type_array(v->t);
kernel/bpf/btf.c
3160
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3170
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
3806
const struct btf_array *array;
kernel/bpf/btf.c
3813
array = btf_array(var_type);
kernel/bpf/btf.c
5461
const struct btf_array *array = btf_type_array(t);
kernel/bpf/btf.c
7141
struct btf_array *array_elem;
kernel/bpf/btf.c
7152
array_elem = (struct btf_array *)(mtype + 1);
kernel/bpf/btf.c
838
static const struct btf_array *btf_type_array(const struct btf_type *t)
kernel/bpf/btf.c
840
return (const struct btf_array *)(t + 1);
kernel/bpf/verifier.c
10953
const struct btf_array *array;
kernel/bpf/verifier.c
10966
array = btf_array(member_type);
kernel/trace/trace_probe.c
376
const struct btf_array *array;
kernel/trace/trace_probe.c
383
array = (const struct btf_array *)(type + 1);
tools/bpf/bpftool/btf.c
167
const struct btf_array *arr = (const void *)(t + 1);
tools/bpf/bpftool/btf.c
608
return btf_type_rank(btf, btf_array(t)->type, has_name);
tools/bpf/bpftool/btf.c
642
return btf_type_sort_name(btf, btf_array(t)->type, true);
tools/bpf/bpftool/btf.c
711
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
2133
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2171
struct btf_array *array;
tools/bpf/bpftool/gen.c
2206
array = btf_array(btf_type);
tools/bpf/bpftool/gen.c
2279
struct btf_array *array;
tools/bpf/bpftool/gen.c
2281
array = btf_array(btf_type);
tools/lib/bpf/btf.c
1006
return btf__align_of(btf, btf_array(t)->type);
tools/lib/bpf/btf.c
2533
struct btf_array *a;
tools/lib/bpf/btf.c
2544
sz = sizeof(struct btf_type) + sizeof(struct btf_array);
tools/lib/bpf/btf.c
2553
a = btf_array(t);
tools/lib/bpf/btf.c
43
[BTF_KIND_ARRAY] = { sizeof(struct btf_array), 0, 0 },
tools/lib/bpf/btf.c
4448
const struct btf_array *info = btf_array(t);
tools/lib/bpf/btf.c
4466
const struct btf_array *info1, *info2;
tools/lib/bpf/btf.c
4471
info1 = btf_array(t1);
tools/lib/bpf/btf.c
4472
info2 = btf_array(t2);
tools/lib/bpf/btf.c
4488
return btf_array(t1)->nelems == btf_array(t2)->nelems;
tools/lib/bpf/btf.c
477
return base_size + sizeof(struct btf_array);
tools/lib/bpf/btf.c
4824
struct btf_array *a1, *a2;
tools/lib/bpf/btf.c
4829
a1 = btf_array(t1);
tools/lib/bpf/btf.c
4830
a2 = btf_array(t1);
tools/lib/bpf/btf.c
506
struct btf_array *a;
tools/lib/bpf/btf.c
5081
const struct btf_array *cand_arr, *canon_arr;
tools/lib/bpf/btf.c
5085
cand_arr = btf_array(cand_type);
tools/lib/bpf/btf.c
5086
canon_arr = btf_array(canon_type);
tools/lib/bpf/btf.c
540
a = btf_array(t);
tools/lib/bpf/btf.c
5432
struct btf_array *info = btf_array(t);
tools/lib/bpf/btf.c
669
const struct btf_array *a = btf_array(t);
tools/lib/bpf/btf.c
933
const struct btf_array *array;
tools/lib/bpf/btf.c
964
array = btf_array(t);
tools/lib/bpf/btf.h
592
static inline struct btf_array *btf_array(const struct btf_type *t)
tools/lib/bpf/btf.h
594
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
10909
const struct btf_array *array;
tools/lib/bpf/libbpf.c
10945
array = btf_array(array_type);
tools/lib/bpf/libbpf.c
2478
const struct btf_array *arr_info;
tools/lib/bpf/libbpf.c
2498
arr_info = btf_array(arr_t);
tools/lib/bpf/libbpf.c
2727
if (!btf_is_array(t) || btf_array(t)->nelems) {
tools/lib/bpf/libbpf.c
2732
t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL);
tools/lib/bpf/libbpf.c
4213
if (btf_array(t)->nelems == 0)
tools/lib/bpf/libbpf.c
4215
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
1661
const struct btf_array *local_array = btf_array(local_t);
tools/lib/bpf/relo_core.c
1662
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
367
const struct btf_array *a = btf_array(t);
tools/lib/bpf/relo_core.c
458
local_id = btf_array(local_type)->type;
tools/lib/bpf/relo_core.c
459
targ_id = btf_array(targ_type)->type;
tools/lib/bpf/relo_core.c
643
const struct btf_array *a;
tools/lib/bpf/relo_core.c
649
a = btf_array(targ_type);
tools/lib/bpf/relo_core.c
716
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
783
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
8145
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
1938
struct btf_array *barr;
tools/testing/selftests/bpf/veristat.c
1949
barr = btf_array(t);