Lines Matching refs:t
54 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() local
55 struct btf_array *arr = (struct btf_array *)(t + 1); in btf_dumper_array()
194 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset, in btf_dumper_int() argument
201 int_type = (__u32 *)(t + 1); in btf_dumper_int()
267 const struct btf_type *t; in btf_dumper_struct() local
274 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct()
275 if (!t) in btf_dumper_struct()
278 kind_flag = BTF_INFO_KFLAG(t->info); in btf_dumper_struct()
279 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_struct()
281 m = (struct btf_member *)(t + 1); in btf_dumper_struct()
315 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() local
319 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_var()
320 ret = btf_dumper_do_type(d, t->type, bit_offset, data); in btf_dumper_var()
330 const struct btf_type *t; in btf_dumper_datasec() local
333 t = btf__type_by_id(d->btf, type_id); in btf_dumper_datasec()
334 if (!t) in btf_dumper_datasec()
337 vlen = BTF_INFO_VLEN(t->info); in btf_dumper_datasec()
338 vsi = (struct btf_var_secinfo *)(t + 1); in btf_dumper_datasec()
341 jsonw_name(d->jw, btf__name_by_offset(d->btf, t->name_off)); in btf_dumper_datasec()
357 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_do_type() local
359 switch (BTF_INFO_KIND(t->info)) { in btf_dumper_do_type()
361 return btf_dumper_int(t, bit_offset, data, d->jw, in btf_dumper_do_type()
427 const struct btf_type *t; in __btf_dumper_type_only() local
434 t = btf__type_by_id(btf, type_id); in __btf_dumper_type_only()
436 switch (BTF_INFO_KIND(t->info)) { in __btf_dumper_type_only()
439 BTF_PRINT_ARG("%s ", btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
443 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
447 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
451 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
454 array = (struct btf_array *)(t + 1); in __btf_dumper_type_only()
459 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
464 BTF_INFO_KFLAG(t->info) ? "union" : "struct", in __btf_dumper_type_only()
465 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
469 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
473 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
477 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
480 pos = btf_dump_func(btf, func_sig, t, NULL, pos, size); in __btf_dumper_type_only()
485 proto_type = btf__type_by_id(btf, t->type); in __btf_dumper_type_only()
486 pos = btf_dump_func(btf, func_sig, proto_type, t, pos, size); in __btf_dumper_type_only()
491 var = (struct btf_var *)(t + 1); in __btf_dumper_type_only()
494 BTF_PRINT_TYPE(t->type); in __btf_dumper_type_only()
496 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()
500 btf__name_by_offset(btf, t->name_off)); in __btf_dumper_type_only()