Lines Matching refs:w
108 json_writer_t *w = json_wtr; in dump_btf_type() local
112 jsonw_start_object(w); in dump_btf_type()
113 jsonw_uint_field(w, "id", id); in dump_btf_type()
114 jsonw_string_field(w, "kind", btf_kind_str[btf_kind_safe(kind)]); in dump_btf_type()
115 jsonw_string_field(w, "name", btf_str(btf, t->name_off)); in dump_btf_type()
129 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
130 jsonw_uint_field(w, "bits_offset", BTF_INT_OFFSET(v)); in dump_btf_type()
131 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type()
132 jsonw_string_field(w, "encoding", enc); in dump_btf_type()
146 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
154 jsonw_uint_field(w, "type_id", arr->type); in dump_btf_type()
155 jsonw_uint_field(w, "index_type_id", arr->index_type); in dump_btf_type()
156 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type()
170 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
171 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
172 jsonw_name(w, "members"); in dump_btf_type()
173 jsonw_start_array(w); in dump_btf_type()
190 jsonw_start_object(w); in dump_btf_type()
191 jsonw_string_field(w, "name", name); in dump_btf_type()
192 jsonw_uint_field(w, "type_id", m->type); in dump_btf_type()
193 jsonw_uint_field(w, "bits_offset", bit_off); in dump_btf_type()
195 jsonw_uint_field(w, "bitfield_size", in dump_btf_type()
198 jsonw_end_object(w); in dump_btf_type()
207 jsonw_end_array(w); in dump_btf_type()
216 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
217 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
218 jsonw_name(w, "values"); in dump_btf_type()
219 jsonw_start_array(w); in dump_btf_type()
227 jsonw_start_object(w); in dump_btf_type()
228 jsonw_string_field(w, "name", name); in dump_btf_type()
229 jsonw_uint_field(w, "val", v->val); in dump_btf_type()
230 jsonw_end_object(w); in dump_btf_type()
236 jsonw_end_array(w); in dump_btf_type()
244 jsonw_string_field(w, "fwd_kind", fwd_kind); in dump_btf_type()
253 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
254 jsonw_string_field(w, "linkage", linkage); in dump_btf_type()
266 jsonw_uint_field(w, "ret_type_id", t->type); in dump_btf_type()
267 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
268 jsonw_name(w, "params"); in dump_btf_type()
269 jsonw_start_array(w); in dump_btf_type()
277 jsonw_start_object(w); in dump_btf_type()
278 jsonw_string_field(w, "name", name); in dump_btf_type()
279 jsonw_uint_field(w, "type_id", p->type); in dump_btf_type()
280 jsonw_end_object(w); in dump_btf_type()
286 jsonw_end_array(w); in dump_btf_type()
296 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
297 jsonw_string_field(w, "linkage", linkage); in dump_btf_type()
310 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
311 jsonw_uint_field(w, "vlen", vlen); in dump_btf_type()
312 jsonw_name(w, "vars"); in dump_btf_type()
313 jsonw_start_array(w); in dump_btf_type()
319 jsonw_start_object(w); in dump_btf_type()
320 jsonw_uint_field(w, "type_id", v->type); in dump_btf_type()
321 jsonw_uint_field(w, "offset", v->offset); in dump_btf_type()
322 jsonw_uint_field(w, "size", v->size); in dump_btf_type()
323 jsonw_end_object(w); in dump_btf_type()
337 jsonw_end_array(w); in dump_btf_type()
342 jsonw_uint_field(w, "size", t->size); in dump_btf_type()
351 jsonw_uint_field(w, "type_id", t->type); in dump_btf_type()
352 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()