Lines Matching refs:br
725 mispred_str(struct branch_entry *br) in mispred_str() argument
727 if (!(br->flags.mispred || br->flags.predicted)) in mispred_str()
730 return br->flags.predicted ? 'P' : 'M'; in mispred_str()
737 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstack() local
742 if (!(br && br->nr)) in perf_sample__fprintf_brstack()
745 for (i = 0; i < br->nr; i++) { in perf_sample__fprintf_brstack()
746 from = br->entries[i].from; in perf_sample__fprintf_brstack()
747 to = br->entries[i].to; in perf_sample__fprintf_brstack()
771 mispred_str( br->entries + i), in perf_sample__fprintf_brstack()
772 br->entries[i].flags.in_tx? 'X' : '-', in perf_sample__fprintf_brstack()
773 br->entries[i].flags.abort? 'A' : '-', in perf_sample__fprintf_brstack()
774 br->entries[i].flags.cycles); in perf_sample__fprintf_brstack()
784 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstacksym() local
789 if (!(br && br->nr)) in perf_sample__fprintf_brstacksym()
792 for (i = 0; i < br->nr; i++) { in perf_sample__fprintf_brstacksym()
796 from = br->entries[i].from; in perf_sample__fprintf_brstacksym()
797 to = br->entries[i].to; in perf_sample__fprintf_brstacksym()
816 mispred_str( br->entries + i), in perf_sample__fprintf_brstacksym()
817 br->entries[i].flags.in_tx? 'X' : '-', in perf_sample__fprintf_brstacksym()
818 br->entries[i].flags.abort? 'A' : '-', in perf_sample__fprintf_brstacksym()
819 br->entries[i].flags.cycles); in perf_sample__fprintf_brstacksym()
829 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackoff() local
834 if (!(br && br->nr)) in perf_sample__fprintf_brstackoff()
837 for (i = 0; i < br->nr; i++) { in perf_sample__fprintf_brstackoff()
841 from = br->entries[i].from; in perf_sample__fprintf_brstackoff()
842 to = br->entries[i].to; in perf_sample__fprintf_brstackoff()
865 mispred_str(br->entries + i), in perf_sample__fprintf_brstackoff()
866 br->entries[i].flags.in_tx ? 'X' : '-', in perf_sample__fprintf_brstackoff()
867 br->entries[i].flags.abort ? 'A' : '-', in perf_sample__fprintf_brstackoff()
868 br->entries[i].flags.cycles); in perf_sample__fprintf_brstackoff()
1013 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackinsn() local
1022 if (!(br && br->nr)) in perf_sample__fprintf_brstackinsn()
1024 nr = br->nr; in perf_sample__fprintf_brstackinsn()
1034 len = grab_bb(buffer, br->entries[nr-1].from, in perf_sample__fprintf_brstackinsn()
1035 br->entries[nr-1].from, in perf_sample__fprintf_brstackinsn()
1038 printed += ip__fprintf_sym(br->entries[nr - 1].from, thread, in perf_sample__fprintf_brstackinsn()
1040 printed += ip__fprintf_jump(br->entries[nr - 1].from, &br->entries[nr - 1], in perf_sample__fprintf_brstackinsn()
1043 printed += print_srccode(thread, x.cpumode, br->entries[nr - 1].from); in perf_sample__fprintf_brstackinsn()
1048 if (br->entries[i].from || br->entries[i].to) in perf_sample__fprintf_brstackinsn()
1050 br->entries[i].from, in perf_sample__fprintf_brstackinsn()
1051 br->entries[i].to); in perf_sample__fprintf_brstackinsn()
1052 start = br->entries[i + 1].to; in perf_sample__fprintf_brstackinsn()
1053 end = br->entries[i].from; in perf_sample__fprintf_brstackinsn()
1058 end = br->entries[--i].from; in perf_sample__fprintf_brstackinsn()
1071 printed += ip__fprintf_jump(ip, &br->entries[i], &x, buffer + off, len - off, ++insn, fp, in perf_sample__fprintf_brstackinsn()
1095 if (br->entries[0].from == sample->ip) in perf_sample__fprintf_brstackinsn()
1097 if (br->entries[0].flags.abort) in perf_sample__fprintf_brstackinsn()
1108 start = br->entries[0].to; in perf_sample__fprintf_brstackinsn()