Lines Matching defs:t
108 const struct btf_type *t,
118 ptr_type_id = btf__resolve_type(d->btf, t->type);
148 const struct btf_type *t,
151 const struct btf_enum *enums = btf_enum(t);
155 switch (t->size) {
172 for (i = 0; i < btf_vlen(t); i++) {
186 const struct btf_type *t,
189 const struct btf_enum64 *enums = btf_enum64(t);
198 for (i = 0; i < btf_vlen(t); i++) {
250 const struct btf_type *t = btf__type_by_id(d->btf, type_id);
251 struct btf_array *arr = (struct btf_array *)(t + 1);
395 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset,
402 int_type = (__u32 *)(t + 1);
458 /* shouldn't happen */
468 const struct btf_type *t;
475 t = btf__type_by_id(d->btf, type_id);
476 if (!t)
479 kind_flag = BTF_INFO_KFLAG(t->info);
480 vlen = BTF_INFO_VLEN(t->info);
482 m = (struct btf_member *)(t + 1);
516 const struct btf_type *t = btf__type_by_id(d->btf, type_id);
520 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off));
521 ret = btf_dumper_do_type(d, t->type, bit_offset, data);
531 const struct btf_type *t;
534 t = btf__type_by_id(d->btf, type_id);
535 if (!t)
538 vlen = BTF_INFO_VLEN(t->info);
539 vsi = (struct btf_var_secinfo *)(t + 1);
542 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off));
558 const struct btf_type *t = btf__type_by_id(d->btf, type_id);
560 switch (BTF_INFO_KIND(t->info)) {
562 return btf_dumper_int(t, bit_offset, data, d->jw,
570 return btf_dumper_enum(d, t, data);
572 return btf_dumper_enum64(d, t, data);
574 btf_dumper_ptr(d, t, data);
580 /* map key or value can't be forward */
625 const struct btf_type *t;
632 t = btf__type_by_id(btf, type_id);
634 switch (BTF_INFO_KIND(t->info)) {
638 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off));
642 btf__name_by_offset(btf, t->name_off));
646 btf__name_by_offset(btf, t->name_off));
651 btf__name_by_offset(btf, t->name_off));
654 array = (struct btf_array *)(t + 1);
659 BTF_PRINT_TYPE(t->type);
664 BTF_INFO_KFLAG(t->info) ? "union" : "struct",
665 btf__name_by_offset(btf, t->name_off));
669 BTF_PRINT_TYPE(t->type);
673 BTF_PRINT_TYPE(t->type);
677 BTF_PRINT_TYPE(t->type);
680 pos = btf_dump_func(btf, func_sig, t, NULL, pos, size);
685 proto_type = btf__type_by_id(btf, t->type);
686 pos = btf_dump_func(btf, func_sig, proto_type, t, pos, size);
691 var = (struct btf_var *)(t + 1);
694 BTF_PRINT_TYPE(t->type);
696 btf__name_by_offset(btf, t->name_off));
700 btf__name_by_offset(btf, t->name_off));