Lines Matching refs:t
100 const struct btf_type *t, in btf_dumper_ptr() argument
110 ptr_type_id = btf__resolve_type(d->btf, t->type); in btf_dumper_ptr()
140 const struct btf_type *t, in btf_dumper_enum() argument
143 const struct btf_enum *enums = btf_enum(t); in btf_dumper_enum()
147 switch (t->size) { in btf_dumper_enum()
164 for (i = 0; i < btf_vlen(t); i++) { in btf_dumper_enum()
216 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() local
217 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array()
361 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset, in btf_dumper_int() argument
368 int_type = (__u32 *)(t + 1); in btf_dumper_int()
434 const struct btf_type *t; in btf_dumper_struct() local
441 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct()
442 if (!t) in btf_dumper_struct()
445 kind_flag = BTF_INFO_KFLAG(t->info); in btf_dumper_struct()
446 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
448 m = (struct btf_member *)(t + 1); in btf_dumper_struct()
482 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() local
486 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var()
487 ret = btf_dumper_do_type(d, t->type, bit_offset, data); in btf_dumper_var()
497 const struct btf_type *t; in btf_dumper_datasec() local
500 t = btf__type_by_id(d->btf, type_id); in btf_dumper_datasec()
501 if (!t) in btf_dumper_datasec()
504 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
505 vsi = (struct btf_var_secinfo *)(t + 1); in btf_dumper_datasec()
508 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec()
524 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_do_type() local
526 switch (BTF_INFO_KIND(t->info)) { in btf_dumper_do_type()
528 return btf_dumper_int(t, bit_offset, data, d->jw, in btf_dumper_do_type()
536 return btf_dumper_enum(d, t, data); in btf_dumper_do_type()
538 btf_dumper_ptr(d, t, data); in btf_dumper_do_type()
589 const struct btf_type *t; in __btf_dumper_type_only() local
596 t = btf__type_by_id(btf, type_id); in __btf_dumper_type_only()
598 switch (BTF_INFO_KIND(t->info)) { in __btf_dumper_type_only()
602 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
606 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
610 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
614 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
617 array = (struct btf_array *)(t + 1); in __btf_dumper_type_only()
622 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
627 BTF_INFO_KFLAG(t->info) ? "union" : "struct", in __btf_dumper_type_only()
628 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
632 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
636 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
640 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
643 pos = btf_dump_func(btf, func_sig, t, NULL, pos, size); in __btf_dumper_type_only()
648 proto_type = btf__type_by_id(btf, t->type); in __btf_dumper_type_only()
649 pos = btf_dump_func(btf, func_sig, proto_type, t, pos, size); in __btf_dumper_type_only()
654 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
657 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
659 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
663 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()