Lines Matching refs:fprintf
101 fprintf(out, "[%u] %s '%s'", id, btf_kind_str(kind), btf_str(btf, t->name_off)); in fprintf_btf_type_raw()
105 fprintf(out, " size=%u bits_offset=%u nr_bits=%u encoding=%s", in fprintf_btf_type_raw()
115 fprintf(out, " type_id=%u", t->type); in fprintf_btf_type_raw()
120 fprintf(out, " type_id=%u index_type_id=%u nr_elems=%u", in fprintf_btf_type_raw()
128 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
134 fprintf(out, "\n\t'%s' type_id=%u bits_offset=%u", in fprintf_btf_type_raw()
137 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
146 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw()
149 fprintf(out, fmt_str, in fprintf_btf_type_raw()
160 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw()
163 fprintf(out, fmt_str, in fprintf_btf_type_raw()
170 fprintf(out, " fwd_kind=%s", btf_kflag(t) ? "union" : "struct"); in fprintf_btf_type_raw()
173 fprintf(out, " type_id=%u linkage=%s", t->type, btf_func_linkage_str(t)); in fprintf_btf_type_raw()
178 fprintf(out, " ret_type_id=%u vlen=%u", t->type, vlen); in fprintf_btf_type_raw()
180 fprintf(out, "\n\t'%s' type_id=%u", in fprintf_btf_type_raw()
186 fprintf(out, " type_id=%u, linkage=%s", in fprintf_btf_type_raw()
192 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
194 fprintf(out, "\n\ttype_id=%u offset=%u size=%u", in fprintf_btf_type_raw()
200 fprintf(out, " size=%u", t->size); in fprintf_btf_type_raw()
203 fprintf(out, " type_id=%u component_idx=%d", in fprintf_btf_type_raw()
223 fprintf(stderr, "Failed to open memstream: %d\n", errno); in btf_type_raw_dump()
266 fprintf(stderr, "Failed to open memstream: %d\n", errno); in btf_type_c_dump()
272 fprintf(stderr, "Failed to create btf_dump instance: %ld\n", libbpf_get_error(d)); in btf_type_c_dump()
279 fprintf(stderr, "Failed to dump type [%d]: %d\n", i, err); in btf_type_c_dump()