Lines Matching refs:t
64 static const char *btf_func_linkage_str(const struct btf_type *t) in btf_func_linkage_str() argument
66 switch (btf_vlen(t)) { in btf_func_linkage_str()
87 const struct btf_type *t; in fprintf_btf_type_raw() local
91 t = btf__type_by_id(btf, id); in fprintf_btf_type_raw()
92 if (!t) in fprintf_btf_type_raw()
95 vlen = btf_vlen(t); in fprintf_btf_type_raw()
96 kind = btf_kind(t); in fprintf_btf_type_raw()
98 fprintf(out, "[%u] %s '%s'", id, btf_kind_str(kind), btf_str(btf, t->name_off)); in fprintf_btf_type_raw()
103 t->size, btf_int_offset(t), btf_int_bits(t), in fprintf_btf_type_raw()
104 btf_int_enc_str(btf_int_encoding(t))); in fprintf_btf_type_raw()
111 fprintf(out, " type_id=%u", t->type); in fprintf_btf_type_raw()
114 const struct btf_array *arr = btf_array(t); in fprintf_btf_type_raw()
122 const struct btf_member *m = btf_members(t); in fprintf_btf_type_raw()
124 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
128 bit_off = btf_member_bit_offset(t, i); in fprintf_btf_type_raw()
129 bit_sz = btf_member_bitfield_size(t, i); in fprintf_btf_type_raw()
138 const struct btf_enum *v = btf_enum(t); in fprintf_btf_type_raw()
140 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
148 fprintf(out, " fwd_kind=%s", btf_kflag(t) ? "union" : "struct"); in fprintf_btf_type_raw()
151 fprintf(out, " type_id=%u linkage=%s", t->type, btf_func_linkage_str(t)); in fprintf_btf_type_raw()
154 const struct btf_param *p = btf_params(t); in fprintf_btf_type_raw()
156 fprintf(out, " ret_type_id=%u vlen=%u", t->type, vlen); in fprintf_btf_type_raw()
165 t->type, btf_var_linkage_str(btf_var(t)->linkage)); in fprintf_btf_type_raw()
168 const struct btf_var_secinfo *v = btf_var_secinfos(t); in fprintf_btf_type_raw()
170 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
178 fprintf(out, " size=%u", t->size); in fprintf_btf_type_raw()