• Home
  • Raw
  • Download

Lines Matching refs:t

85 			 const struct btf_type *t)  in dump_btf_type()  argument
90 kind = BTF_INFO_KIND(t->info); in dump_btf_type()
97 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type()
100 btf_str(btf, t->name_off)); in dump_btf_type()
103 switch (BTF_INFO_KIND(t->info)) { in dump_btf_type()
105 __u32 v = *(__u32 *)(t + 1); in dump_btf_type()
111 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
117 t->size, BTF_INT_OFFSET(v), BTF_INT_BITS(v), in dump_btf_type()
128 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
130 printf(" type_id=%u", t->type); in dump_btf_type()
133 const struct btf_array *arr = (const void *)(t + 1); in dump_btf_type()
147 const struct btf_member *m = (const void *)(t + 1); in dump_btf_type()
148 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
152 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
157 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
163 if (BTF_INFO_KFLAG(t->info)) { in dump_btf_type()
193 const struct btf_enum *v = (const void *)(t + 1); in dump_btf_type()
194 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
198 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
203 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
222 const char *fwd_kind = BTF_INFO_KFLAG(t->info) ? "union" in dump_btf_type()
233 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
235 printf(" type_id=%u", t->type); in dump_btf_type()
238 const struct btf_param *p = (const void *)(t + 1); in dump_btf_type()
239 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
243 jsonw_uint_field(w, "ret_type_id", t->type); in dump_btf_type()
248 printf(" ret_type_id=%u vlen=%u", t->type, vlen); in dump_btf_type()
267 const struct btf_var *v = (const void *)(t + 1); in dump_btf_type()
273 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
276 printf(" type_id=%u, linkage=%s", t->type, linkage); in dump_btf_type()
281 const struct btf_var_secinfo *v = (const void *)(t+1); in dump_btf_type()
282 __u16 vlen = BTF_INFO_VLEN(t->info); in dump_btf_type()
286 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
291 printf(" size=%u vlen=%u", t->size, vlen); in dump_btf_type()
324 const struct btf_type *t; in dump_btf_raw() local
335 t = btf__type_by_id(btf, root_type_ids[i]); in dump_btf_raw()
336 dump_btf_type(btf, root_type_ids[i], t); in dump_btf_raw()
342 t = btf__type_by_id(btf, i); in dump_btf_raw()
343 dump_btf_type(btf, i, t); in dump_btf_raw()