Lines Matching refs:printed
655 int printed = 0; in perf_sample__fprintf_regs() local
660 printed += fprintf(fp, " ABI:%" PRIu64 " ", regs->abi); in perf_sample__fprintf_regs()
664 printed += fprintf(fp, "%5s:0x%"PRIx64" ", perf_reg_name(r), val); in perf_sample__fprintf_regs()
667 return printed; in perf_sample__fprintf_regs()
743 int printed = 0; in perf_sample__fprintf_start() local
750 printed += fprintf(fp, "%8.8s ", comm); in perf_sample__fprintf_start()
752 printed += fprintf(fp, "%s ", comm); in perf_sample__fprintf_start()
754 printed += fprintf(fp, "%16s ", comm); in perf_sample__fprintf_start()
758 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start()
760 printed += fprintf(fp, "%5d ", sample->pid); in perf_sample__fprintf_start()
762 printed += fprintf(fp, "%5d ", sample->tid); in perf_sample__fprintf_start()
766 printed += fprintf(fp, "%3d ", sample->cpu); in perf_sample__fprintf_start()
768 printed += fprintf(fp, "[%03d] ", sample->cpu); in perf_sample__fprintf_start()
812 printed += ret; in perf_sample__fprintf_start()
817 printed += fprintf(fp, "%s ", tstr); in perf_sample__fprintf_start()
839 printed += fprintf(fp, "%5lu.%09llu: ", secs, nsecs); in perf_sample__fprintf_start()
843 printed += fprintf(fp, "%12s: ", sample_time); in perf_sample__fprintf_start()
847 return printed; in perf_sample__fprintf_start()
867 int printed = 0; in perf_sample__fprintf_brstack() local
883 printed += fprintf(fp, " 0x%"PRIx64, from); in perf_sample__fprintf_brstack()
885 printed += fprintf(fp, "("); in perf_sample__fprintf_brstack()
886 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstack()
887 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstack()
890 printed += fprintf(fp, "/0x%"PRIx64, to); in perf_sample__fprintf_brstack()
892 printed += fprintf(fp, "("); in perf_sample__fprintf_brstack()
893 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstack()
894 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstack()
897 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstack()
904 return printed; in perf_sample__fprintf_brstack()
915 int printed = 0; in perf_sample__fprintf_brstacksym() local
930 printed += symbol__fprintf_symname_offs(alf.sym, &alf, fp); in perf_sample__fprintf_brstacksym()
932 printed += fprintf(fp, "("); in perf_sample__fprintf_brstacksym()
933 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstacksym()
934 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstacksym()
936 printed += fprintf(fp, "%c", '/'); in perf_sample__fprintf_brstacksym()
937 printed += symbol__fprintf_symname_offs(alt.sym, &alt, fp); in perf_sample__fprintf_brstacksym()
939 printed += fprintf(fp, "("); in perf_sample__fprintf_brstacksym()
940 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstacksym()
941 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstacksym()
943 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstacksym()
950 return printed; in perf_sample__fprintf_brstacksym()
961 int printed = 0; in perf_sample__fprintf_brstackoff() local
981 printed += fprintf(fp, " 0x%"PRIx64, from); in perf_sample__fprintf_brstackoff()
983 printed += fprintf(fp, "("); in perf_sample__fprintf_brstackoff()
984 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstackoff()
985 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstackoff()
987 printed += fprintf(fp, "/0x%"PRIx64, to); in perf_sample__fprintf_brstackoff()
989 printed += fprintf(fp, "("); in perf_sample__fprintf_brstackoff()
990 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstackoff()
991 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstackoff()
993 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstackoff()
1000 return printed; in perf_sample__fprintf_brstackoff()
1126 int printed = fprintf(fp, "\t%016" PRIx64 "\t%-30s\t#%s%s%s%s", ip, in ip__fprintf_jump() local
1134 printed += fprintf(fp, " %d cycles [%d]", en->flags.cycles, *total_cycles); in ip__fprintf_jump()
1136 printed += fprintf(fp, " %.2f IPC", (float)insn / en->flags.cycles); in ip__fprintf_jump()
1138 return printed + fprintf(fp, "\n"); in ip__fprintf_jump()
1146 int off, printed = 0; in ip__fprintf_sym() local
1167 printed += fprintf(fp, "\t%s", al.sym->name); in ip__fprintf_sym()
1169 printed += fprintf(fp, "%+d", off); in ip__fprintf_sym()
1170 printed += fprintf(fp, ":"); in ip__fprintf_sym()
1172 printed += map__fprintf_srcline(al.map, al.addr, "\t", fp); in ip__fprintf_sym()
1173 printed += fprintf(fp, "\n"); in ip__fprintf_sym()
1176 return printed; in ip__fprintf_sym()
1187 int i, insn, len, nr, ilen, printed = 0; in perf_sample__fprintf_brstackinsn() local
1203 printed += fprintf(fp, "%c", '\n'); in perf_sample__fprintf_brstackinsn()
1210 printed += ip__fprintf_sym(entries[nr - 1].from, thread, in perf_sample__fprintf_brstackinsn()
1212 printed += ip__fprintf_jump(entries[nr - 1].from, &entries[nr - 1], in perf_sample__fprintf_brstackinsn()
1215 printed += print_srccode(thread, x.cpumode, entries[nr - 1].from); in perf_sample__fprintf_brstackinsn()
1241 printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp); in perf_sample__fprintf_brstackinsn()
1243 printed += ip__fprintf_jump(ip, &entries[i], &x, buffer + off, len - off, ++insn, fp, in perf_sample__fprintf_brstackinsn()
1246 printed += print_srccode(thread, x.cpumode, ip); in perf_sample__fprintf_brstackinsn()
1250 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", ip, in perf_sample__fprintf_brstackinsn()
1260 printed += fprintf(fp, "\tmismatch of LBR data and executable\n"); in perf_sample__fprintf_brstackinsn()
1287 printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp); in perf_sample__fprintf_brstackinsn()
1294 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", sample->ip, in perf_sample__fprintf_brstackinsn()
1302 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", start + off, in perf_sample__fprintf_brstackinsn()
1310 printed += fprintf(fp, "\t... not reaching sample ...\n"); in perf_sample__fprintf_brstackinsn()
1317 return printed; in perf_sample__fprintf_brstackinsn()
1325 int printed = fprintf(fp, "%16" PRIx64, sample->addr); in perf_sample__fprintf_addr() local
1333 printed += fprintf(fp, " "); in perf_sample__fprintf_addr()
1335 printed += symbol__fprintf_symname_offs(al.sym, &al, fp); in perf_sample__fprintf_addr()
1337 printed += symbol__fprintf_symname(al.sym, fp); in perf_sample__fprintf_addr()
1341 printed += fprintf(fp, " ("); in perf_sample__fprintf_addr()
1342 printed += map__fprintf_dsoname(al.map, fp); in perf_sample__fprintf_addr()
1343 printed += fprintf(fp, ")"); in perf_sample__fprintf_addr()
1346 return printed; in perf_sample__fprintf_addr()
1448 int printed = 0; in perf_sample__fprintf_insn() local
1453 printed += fprintf(fp, " ilen: %d", sample->insn_len); in perf_sample__fprintf_insn()
1457 printed += fprintf(fp, " insn:"); in perf_sample__fprintf_insn()
1459 printed += fprintf(fp, " %02x", (unsigned char)sample->insn[i]); in perf_sample__fprintf_insn()
1462 printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp); in perf_sample__fprintf_insn()
1464 return printed; in perf_sample__fprintf_insn()
1491 int printed = 0; in perf_sample__fprintf_bts() local
1494 printed += perf_sample__fprintf_callindent(sample, evsel, thread, al, addr_al, fp); in perf_sample__fprintf_bts()
1507 printed += fprintf(fp, " "); in perf_sample__fprintf_bts()
1513 printed += fprintf(fp, "\n"); in perf_sample__fprintf_bts()
1515 printed += sample__fprintf_sym(sample, al, 0, print_opts, cursor, in perf_sample__fprintf_bts()
1523 printed += fprintf(fp, " => "); in perf_sample__fprintf_bts()
1524 printed += perf_sample__fprintf_addr(sample, thread, attr, fp); in perf_sample__fprintf_bts()
1527 printed += perf_sample__fprintf_ipc(sample, attr, fp); in perf_sample__fprintf_bts()
1530 printed += map__fprintf_srcline(al->map, al->addr, "\n ", fp); in perf_sample__fprintf_bts()
1532 printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp); in perf_sample__fprintf_bts()
1533 printed += fprintf(fp, "\n"); in perf_sample__fprintf_bts()
1538 printed += ret; in perf_sample__fprintf_bts()
1539 printed += printf("\n"); in perf_sample__fprintf_bts()
1542 return printed; in perf_sample__fprintf_bts()
1637 int printed = 0; in sample__fprintf_bpf_output() local
1641 printed += fprintf(fp, "\n"); in sample__fprintf_bpf_output()
1644 printed += fprintf(fp, "%17s", !printer_data->line_no ? "BPF output:" : in sample__fprintf_bpf_output()
1648 printed += fprintf(fp, " %04x:", val); in sample__fprintf_bpf_output()
1651 printed += fprintf(fp, " %02x", val); in sample__fprintf_bpf_output()
1654 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1657 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1664 printed += fprintf(fp, "%c", '.'); in sample__fprintf_bpf_output()
1674 printed += fprintf(fp, "%c", ch); in sample__fprintf_bpf_output()
1678 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1681 printed += fprintf(fp, "\n"); in sample__fprintf_bpf_output()
1689 return printed; in sample__fprintf_bpf_output()
1696 int printed = binary__fprintf(sample->raw_data, nr_bytes, 8, in perf_sample__fprintf_bpf_output() local
1700 printed += fprintf(fp, "%17s \"%s\"\n", "BPF string:", (char *)(sample->raw_data)); in perf_sample__fprintf_bpf_output()
1702 return printed; in perf_sample__fprintf_bpf_output()