Searched refs:btf_array (Results 1 - 19 of 19) sorted by path

/linux-master/include/linux/
H A Dbtf.h455 static inline struct btf_array *btf_array(const struct btf_type *t) function
457 return (struct btf_array *)(t + 1);
/linux-master/include/uapi/linux/
H A Dbtf.h110 /* BTF_KIND_ARRAY is followed by one "struct btf_array" */
111 struct btf_array { struct
/linux-master/kernel/bpf/
H A Dbtf.c51 * 'struct btf_array'.
723 static const struct btf_array *btf_type_array(const struct btf_type *t)
725 return (const struct btf_array *)(t + 1);
959 const struct btf_array *array;
1924 const struct btf_array *array = NULL;
2884 const struct btf_array *array = btf_type_array(t);
2936 const struct btf_array *array = btf_type_array(v->t);
3001 const struct btf_array *array = btf_type_array(t);
3011 const struct btf_array *array = btf_type_array(t);
5127 const struct btf_array *arra
[all...]
H A Dverifier.c10992 const struct btf_array *array;
11005 array = btf_array(member_type);
/linux-master/kernel/trace/
H A Dtrace_probe.c334 const struct btf_array *array;
341 array = (const struct btf_array *)(type + 1);
/linux-master/tools/bpf/bpftool/
H A Dbtf.c149 const struct btf_array *arr = (const void *)(t + 1);
H A Dbtf_dumper.c211 static bool is_str_array(const struct btf *btf, const struct btf_array *arr,
251 struct btf_array *arr = (struct btf_array *)(t + 1);
623 const struct btf_array *array;
654 array = (struct btf_array *)(t + 1);
H A Dgen.c1988 struct btf_array *array;
2024 array = btf_array(btf_type);
2062 struct btf_array *array;
2097 array = btf_array(btf_type);
2169 struct btf_array *array;
2171 array = btf_array(btf_type);
/linux-master/tools/include/uapi/linux/
H A Dbtf.h110 /* BTF_KIND_ARRAY is followed by one "struct btf_array" */
111 struct btf_array { struct
/linux-master/tools/lib/bpf/
H A Dbtf.c311 return base_size + sizeof(struct btf_array);
341 struct btf_array *a;
375 a = btf_array(t);
505 const struct btf_array *a = btf_array(t);
765 const struct btf_array *array;
796 array = btf_array(t);
838 return btf__align_of(btf, btf_array(t)->type);
2074 struct btf_array *a;
2083 sz = sizeof(struct btf_type) + sizeof(struct btf_array);
[all...]
H A Dbtf.h479 static inline struct btf_array *btf_array(const struct btf_type *t) function
481 return (struct btf_array *)(t + 1);
H A Dbtf_dump.c342 const struct btf_array *a = btf_array(t);
513 return btf_dump_order_type(d, btf_array(t)->type, false);
762 btf_dump_emit_type(d, btf_array(t)->type, cont_id);
1326 id = btf_array(t)->type;
1499 const struct btf_array *a = btf_array(t);
2030 const struct btf_array *array = btf_array(t);
2350 const struct btf_array *arra
[all...]
H A Dlibbpf.c2387 const struct btf_array *arr_info;
2407 arr_info = btf_array(arr_t);
2636 if (!btf_is_array(t) || btf_array(t)->nelems) {
2641 t = skip_mods_and_typedefs(btf, btf_array(t)->type, NULL);
4061 if (btf_array(t)->nelems == 0)
4063 if (find_kcfg_type(btf, btf_array(t)->type, NULL) != KCFG_CHAR)
10127 const struct btf_array *array;
10163 array = btf_array(array_type);
H A Dlinker.c1411 id1 = btf_array(t1)->type;
1412 id2 = btf_array(t2)->type;
H A Drelo_core.c73 const struct btf_array *arr)
189 local_id = btf_array(local_type)->type;
190 targ_id = btf_array(targ_type)->type;
366 const struct btf_array *a = btf_array(t);
457 local_id = btf_array(local_type)->type;
458 targ_id = btf_array(targ_type)->type;
642 const struct btf_array *a;
648 a = btf_array(targ_type);
1644 const struct btf_array *local_arra
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dbtf_helpers.c118 const struct btf_array *arr = btf_array(t);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c8002 return base_size + sizeof(struct btf_array);
H A Dbtf_write.c92 ASSERT_EQ(btf_array(t)->index_type, 1, "array_index_type");
93 ASSERT_EQ(btf_array(t)->type, 2, "array_elem_type");
94 ASSERT_EQ(btf_array(t)->nelems, 10, "array_nelems");
H A Dcore_reloc.c474 } else if (btf_is_array(t) && (t = btf__type_by_id(local_btf, btf_array(t)->type)) &&

Completed in 450 milliseconds