Lines Matching full:printed

613 	int printed = 0;  in perf_sample__fprintf_regs()  local
618 printed += fprintf(fp, " ABI:%" PRIu64 " ", regs->abi); in perf_sample__fprintf_regs()
622 printed += fprintf(fp, "%5s:0x%"PRIx64" ", perf_reg_name(r), val); in perf_sample__fprintf_regs()
625 return printed; in perf_sample__fprintf_regs()
701 int printed = 0; in perf_sample__fprintf_start() local
708 printed += fprintf(fp, "%8.8s ", comm); in perf_sample__fprintf_start()
710 printed += fprintf(fp, "%s ", comm); in perf_sample__fprintf_start()
712 printed += fprintf(fp, "%16s ", comm); in perf_sample__fprintf_start()
716 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start()
718 printed += fprintf(fp, "%5d ", sample->pid); in perf_sample__fprintf_start()
720 printed += fprintf(fp, "%5d ", sample->tid); in perf_sample__fprintf_start()
724 printed += fprintf(fp, "%3d ", sample->cpu); in perf_sample__fprintf_start()
726 printed += fprintf(fp, "[%03d] ", sample->cpu); in perf_sample__fprintf_start()
770 printed += ret; in perf_sample__fprintf_start()
775 printed += fprintf(fp, "%s ", tstr); in perf_sample__fprintf_start()
797 printed += fprintf(fp, "%5lu.%09llu: ", secs, nsecs); in perf_sample__fprintf_start()
801 printed += fprintf(fp, "%12s: ", sample_time); in perf_sample__fprintf_start()
805 return printed; in perf_sample__fprintf_start()
825 int printed = 0; in perf_sample__fprintf_brstack() local
841 printed += fprintf(fp, " 0x%"PRIx64, from); in perf_sample__fprintf_brstack()
843 printed += fprintf(fp, "("); in perf_sample__fprintf_brstack()
844 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstack()
845 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstack()
848 printed += fprintf(fp, "/0x%"PRIx64, to); in perf_sample__fprintf_brstack()
850 printed += fprintf(fp, "("); in perf_sample__fprintf_brstack()
851 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstack()
852 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstack()
855 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstack()
862 return printed; in perf_sample__fprintf_brstack()
873 int printed = 0; in perf_sample__fprintf_brstacksym() local
888 printed += symbol__fprintf_symname_offs(alf.sym, &alf, fp); in perf_sample__fprintf_brstacksym()
890 printed += fprintf(fp, "("); in perf_sample__fprintf_brstacksym()
891 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstacksym()
892 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstacksym()
894 printed += fprintf(fp, "%c", '/'); in perf_sample__fprintf_brstacksym()
895 printed += symbol__fprintf_symname_offs(alt.sym, &alt, fp); in perf_sample__fprintf_brstacksym()
897 printed += fprintf(fp, "("); in perf_sample__fprintf_brstacksym()
898 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstacksym()
899 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstacksym()
901 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstacksym()
908 return printed; in perf_sample__fprintf_brstacksym()
919 int printed = 0; in perf_sample__fprintf_brstackoff() local
939 printed += fprintf(fp, " 0x%"PRIx64, from); in perf_sample__fprintf_brstackoff()
941 printed += fprintf(fp, "("); in perf_sample__fprintf_brstackoff()
942 printed += map__fprintf_dsoname(alf.map, fp); in perf_sample__fprintf_brstackoff()
943 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstackoff()
945 printed += fprintf(fp, "/0x%"PRIx64, to); in perf_sample__fprintf_brstackoff()
947 printed += fprintf(fp, "("); in perf_sample__fprintf_brstackoff()
948 printed += map__fprintf_dsoname(alt.map, fp); in perf_sample__fprintf_brstackoff()
949 printed += fprintf(fp, ")"); in perf_sample__fprintf_brstackoff()
951 printed += fprintf(fp, "/%c/%c/%c/%d ", in perf_sample__fprintf_brstackoff()
958 return printed; in perf_sample__fprintf_brstackoff()
1084 int printed = fprintf(fp, "\t%016" PRIx64 "\t%-30s\t#%s%s%s%s", ip, in ip__fprintf_jump() local
1092 printed += fprintf(fp, " %d cycles [%d]", en->flags.cycles, *total_cycles); in ip__fprintf_jump()
1094 printed += fprintf(fp, " %.2f IPC", (float)insn / en->flags.cycles); in ip__fprintf_jump()
1096 return printed + fprintf(fp, "\n"); in ip__fprintf_jump()
1104 int off, printed = 0; in ip__fprintf_sym() local
1125 printed += fprintf(fp, "\t%s", al.sym->name); in ip__fprintf_sym()
1127 printed += fprintf(fp, "%+d", off); in ip__fprintf_sym()
1128 printed += fprintf(fp, ":"); in ip__fprintf_sym()
1130 printed += map__fprintf_srcline(al.map, al.addr, "\t", fp); in ip__fprintf_sym()
1131 printed += fprintf(fp, "\n"); in ip__fprintf_sym()
1134 return printed; in ip__fprintf_sym()
1145 int i, insn, len, nr, ilen, printed = 0; in perf_sample__fprintf_brstackinsn() local
1161 printed += fprintf(fp, "%c", '\n'); in perf_sample__fprintf_brstackinsn()
1168 printed += ip__fprintf_sym(entries[nr - 1].from, thread, in perf_sample__fprintf_brstackinsn()
1170 printed += ip__fprintf_jump(entries[nr - 1].from, &entries[nr - 1], in perf_sample__fprintf_brstackinsn()
1173 printed += print_srccode(thread, x.cpumode, entries[nr - 1].from); in perf_sample__fprintf_brstackinsn()
1199 printed += ip__fprintf_sym(ip, thread, x.cpumode, x.cpu, &lastsym, attr, fp); in perf_sample__fprintf_brstackinsn()
1201 printed += ip__fprintf_jump(ip, &entries[i], &x, buffer + off, len - off, ++insn, fp, in perf_sample__fprintf_brstackinsn()
1204 printed += print_srccode(thread, x.cpumode, ip); in perf_sample__fprintf_brstackinsn()
1208 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", ip, in perf_sample__fprintf_brstackinsn()
1218 printed += fprintf(fp, "\tmismatch of LBR data and executable\n"); in perf_sample__fprintf_brstackinsn()
1245 printed += ip__fprintf_sym(start, thread, x.cpumode, x.cpu, &lastsym, attr, fp); in perf_sample__fprintf_brstackinsn()
1252 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", sample->ip, in perf_sample__fprintf_brstackinsn()
1260 printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", start + off, in perf_sample__fprintf_brstackinsn()
1268 printed += fprintf(fp, "\t... not reaching sample ...\n"); in perf_sample__fprintf_brstackinsn()
1275 return printed; in perf_sample__fprintf_brstackinsn()
1283 int printed = fprintf(fp, "%16" PRIx64, sample->addr); in perf_sample__fprintf_addr() local
1291 printed += fprintf(fp, " "); in perf_sample__fprintf_addr()
1293 printed += symbol__fprintf_symname_offs(al.sym, &al, fp); in perf_sample__fprintf_addr()
1295 printed += symbol__fprintf_symname(al.sym, fp); in perf_sample__fprintf_addr()
1299 printed += fprintf(fp, " ("); in perf_sample__fprintf_addr()
1300 printed += map__fprintf_dsoname(al.map, fp); in perf_sample__fprintf_addr()
1301 printed += fprintf(fp, ")"); in perf_sample__fprintf_addr()
1304 return printed; in perf_sample__fprintf_addr()
1396 int printed = 0; in perf_sample__fprintf_insn() local
1402 printed += fprintf(fp, " ilen: %d", sample->insn_len); in perf_sample__fprintf_insn()
1406 printed += fprintf(fp, " insn:"); in perf_sample__fprintf_insn()
1408 printed += fprintf(fp, " %02x", (unsigned char)sample->insn[i]); in perf_sample__fprintf_insn()
1411 printed += perf_sample__fprintf_brstackinsn(sample, thread, attr, machine, fp); in perf_sample__fprintf_insn()
1413 return printed; in perf_sample__fprintf_insn()
1439 int printed = 0; in perf_sample__fprintf_bts() local
1442 printed += perf_sample__fprintf_callindent(sample, evsel, thread, al, fp); in perf_sample__fprintf_bts()
1455 printed += fprintf(fp, " "); in perf_sample__fprintf_bts()
1461 printed += fprintf(fp, "\n"); in perf_sample__fprintf_bts()
1463 printed += sample__fprintf_sym(sample, al, 0, print_opts, cursor, in perf_sample__fprintf_bts()
1471 printed += fprintf(fp, " => "); in perf_sample__fprintf_bts()
1472 printed += perf_sample__fprintf_addr(sample, thread, attr, fp); in perf_sample__fprintf_bts()
1475 printed += perf_sample__fprintf_ipc(sample, attr, fp); in perf_sample__fprintf_bts()
1478 printed += map__fprintf_srcline(al->map, al->addr, "\n ", fp); in perf_sample__fprintf_bts()
1480 printed += perf_sample__fprintf_insn(sample, attr, thread, machine, fp); in perf_sample__fprintf_bts()
1481 printed += fprintf(fp, "\n"); in perf_sample__fprintf_bts()
1486 printed += ret; in perf_sample__fprintf_bts()
1487 printed += printf("\n"); in perf_sample__fprintf_bts()
1490 return printed; in perf_sample__fprintf_bts()
1575 int printed = 0; in sample__fprintf_bpf_output() local
1579 printed += fprintf(fp, "\n"); in sample__fprintf_bpf_output()
1582 printed += fprintf(fp, "%17s", !printer_data->line_no ? "BPF output:" : in sample__fprintf_bpf_output()
1586 printed += fprintf(fp, " %04x:", val); in sample__fprintf_bpf_output()
1589 printed += fprintf(fp, " %02x", val); in sample__fprintf_bpf_output()
1592 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1595 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1602 printed += fprintf(fp, "%c", '.'); in sample__fprintf_bpf_output()
1612 printed += fprintf(fp, "%c", ch); in sample__fprintf_bpf_output()
1616 printed += fprintf(fp, " "); in sample__fprintf_bpf_output()
1619 printed += fprintf(fp, "\n"); in sample__fprintf_bpf_output()
1627 return printed; in sample__fprintf_bpf_output()
1634 int printed = binary__fprintf(sample->raw_data, nr_bytes, 8, in perf_sample__fprintf_bpf_output() local
1638 printed += fprintf(fp, "%17s \"%s\"\n", "BPF string:", (char *)(sample->raw_data)); in perf_sample__fprintf_bpf_output()
1640 return printed; in perf_sample__fprintf_bpf_output()