Lines Matching refs:jw

25 static void btf_dumper_ptr(const void *data, json_writer_t *jw,  in btf_dumper_ptr()  argument
29 jsonw_printf(jw, "%p", *(unsigned long *)data); in btf_dumper_ptr()
31 jsonw_printf(jw, "%u", *(unsigned long *)data); in btf_dumper_ptr()
46 static void btf_dumper_enum(const void *data, json_writer_t *jw) in btf_dumper_enum() argument
48 jsonw_printf(jw, "%d", *(int *)data); in btf_dumper_enum()
64 jsonw_start_array(d->jw); in btf_dumper_array()
72 jsonw_end_array(d->jw); in btf_dumper_array()
77 const void *data, json_writer_t *jw, in btf_dumper_int_bits() argument
107 jsonw_printf(jw, "0x%llx", print_num); in btf_dumper_int_bits()
109 jsonw_printf(jw, "%llu", print_num); in btf_dumper_int_bits()
113 const void *data, json_writer_t *jw, in btf_dumper_int() argument
124 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
132 jsonw_printf(jw, "%lu", *(__u64 *)data); in btf_dumper_int()
134 jsonw_printf(jw, "%u", *(__u32 *)data); in btf_dumper_int()
136 jsonw_printf(jw, "%hu", *(__u16 *)data); in btf_dumper_int()
138 jsonw_printf(jw, "%hhu", *(__u8 *)data); in btf_dumper_int()
140 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
145 jsonw_printf(jw, "%ld", *(long long *)data); in btf_dumper_int()
147 jsonw_printf(jw, "%d", *(int *)data); in btf_dumper_int()
149 jsonw_printf(jw, "%hd", *(short *)data); in btf_dumper_int()
151 jsonw_printf(jw, "%hhd", *(char *)data); in btf_dumper_int()
153 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
158 jsonw_printf(jw, "\"%c\"", *(char *)data); in btf_dumper_int()
161 jsonw_printf(jw, "0x%hhx", *(char *)data); in btf_dumper_int()
163 jsonw_printf(jw, "\"\\u00%02hhx\"", in btf_dumper_int()
167 jsonw_bool(jw, *(int *)data); in btf_dumper_int()
191 jsonw_start_object(d->jw); in btf_dumper_struct()
196 jsonw_name(d->jw, btf__name_by_offset(d->btf, m[i].name_off)); in btf_dumper_struct()
204 jsonw_end_object(d->jw); in btf_dumper_struct()
216 return btf_dumper_int(t, bit_offset, data, d->jw, in btf_dumper_do_type()
224 btf_dumper_enum(data, d->jw); in btf_dumper_do_type()
227 btf_dumper_ptr(data, d->jw, d->is_plain_text); in btf_dumper_do_type()
230 jsonw_printf(d->jw, "(unknown)"); in btf_dumper_do_type()
234 jsonw_printf(d->jw, "(fwd-kind-invalid)"); in btf_dumper_do_type()
242 jsonw_printf(d->jw, "(unsupported-kind"); in btf_dumper_do_type()