Lines Matching refs:right
98 sort__thread_cmp(struct hist_entry *left, struct hist_entry *right) in sort__thread_cmp() argument
100 return right->thread->tid - left->thread->tid; in sort__thread_cmp()
139 sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) in sort__comm_cmp() argument
141 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_cmp()
145 sort__comm_collapse(struct hist_entry *left, struct hist_entry *right) in sort__comm_collapse() argument
147 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_collapse()
151 sort__comm_sort(struct hist_entry *left, struct hist_entry *right) in sort__comm_sort() argument
153 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_sort()
195 sort__dso_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_cmp() argument
197 return _sort__dso_cmp(right->ms.map, left->ms.map); in sort__dso_cmp()
267 sort__sym_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_cmp() argument
271 if (!left->ms.sym && !right->ms.sym) in sort__sym_cmp()
272 return _sort__addr_cmp(left->ip, right->ip); in sort__sym_cmp()
278 if (!hists__has(left->hists, dso) || hists__has(right->hists, dso)) { in sort__sym_cmp()
279 ret = sort__dso_cmp(left, right); in sort__sym_cmp()
284 return _sort__sym_cmp(left->ms.sym, right->ms.sym); in sort__sym_cmp()
288 sort__sym_sort(struct hist_entry *left, struct hist_entry *right) in sort__sym_sort() argument
290 if (!left->ms.sym || !right->ms.sym) in sort__sym_sort()
291 return cmp_null(left->ms.sym, right->ms.sym); in sort__sym_sort()
293 return strcmp(right->ms.sym->name, left->ms.sym->name); in sort__sym_sort()
372 sort__srcline_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_cmp() argument
376 if (!right->srcline) in sort__srcline_cmp()
377 right->srcline = hist_entry__srcline(right); in sort__srcline_cmp()
379 return strcmp(right->srcline, left->srcline); in sort__srcline_cmp()
406 sort__srcline_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_from_cmp() argument
411 if (!right->branch_info->srcline_from) in sort__srcline_from_cmp()
412 right->branch_info->srcline_from = addr_map_symbol__srcline(&right->branch_info->from); in sort__srcline_from_cmp()
414 return strcmp(right->branch_info->srcline_from, left->branch_info->srcline_from); in sort__srcline_from_cmp()
433 sort__srcline_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_to_cmp() argument
438 if (!right->branch_info->srcline_to) in sort__srcline_to_cmp()
439 right->branch_info->srcline_to = addr_map_symbol__srcline(&right->branch_info->to); in sort__srcline_to_cmp()
441 return strcmp(right->branch_info->srcline_to, left->branch_info->srcline_to); in sort__srcline_to_cmp()
534 sort__srcfile_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcfile_cmp() argument
538 if (!right->srcfile) in sort__srcfile_cmp()
539 right->srcfile = hist_entry__get_srcfile(right); in sort__srcfile_cmp()
541 return strcmp(right->srcfile, left->srcfile); in sort__srcfile_cmp()
563 sort__parent_cmp(struct hist_entry *left, struct hist_entry *right) in sort__parent_cmp() argument
566 struct symbol *sym_r = right->parent; in sort__parent_cmp()
591 sort__cpu_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cpu_cmp() argument
593 return right->cpu - left->cpu; in sort__cpu_cmp()
622 sort__cgroup_id_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cgroup_id_cmp() argument
626 ret = _sort__cgroup_dev_cmp(right->cgroup_id.dev, left->cgroup_id.dev); in sort__cgroup_id_cmp()
630 return _sort__cgroup_inode_cmp(right->cgroup_id.ino, in sort__cgroup_id_cmp()
652 sort__cgroup_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cgroup_cmp() argument
654 return right->cgroup - left->cgroup; in sort__cgroup_cmp()
685 sort__socket_cmp(struct hist_entry *left, struct hist_entry *right) in sort__socket_cmp() argument
687 return right->socket - left->socket; in sort__socket_cmp()
717 sort__time_cmp(struct hist_entry *left, struct hist_entry *right) in sort__time_cmp() argument
719 return right->time - left->time; in sort__time_cmp()
773 sort__trace_cmp(struct hist_entry *left, struct hist_entry *right) in sort__trace_cmp() argument
783 if (right->trace_output == NULL) in sort__trace_cmp()
784 right->trace_output = get_trace_output(right); in sort__trace_cmp()
786 return strcmp(right->trace_output, left->trace_output); in sort__trace_cmp()
813 sort__dso_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_from_cmp() argument
815 if (!left->branch_info || !right->branch_info) in sort__dso_from_cmp()
816 return cmp_null(left->branch_info, right->branch_info); in sort__dso_from_cmp()
819 right->branch_info->from.ms.map); in sort__dso_from_cmp()
845 sort__dso_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_to_cmp() argument
847 if (!left->branch_info || !right->branch_info) in sort__dso_to_cmp()
848 return cmp_null(left->branch_info, right->branch_info); in sort__dso_to_cmp()
851 right->branch_info->to.ms.map); in sort__dso_to_cmp()
877 sort__sym_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_from_cmp() argument
880 struct addr_map_symbol *from_r = &right->branch_info->from; in sort__sym_from_cmp()
882 if (!left->branch_info || !right->branch_info) in sort__sym_from_cmp()
883 return cmp_null(left->branch_info, right->branch_info); in sort__sym_from_cmp()
886 from_r = &right->branch_info->from; in sort__sym_from_cmp()
895 sort__sym_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_to_cmp() argument
899 if (!left->branch_info || !right->branch_info) in sort__sym_to_cmp()
900 return cmp_null(left->branch_info, right->branch_info); in sort__sym_to_cmp()
903 to_r = &right->branch_info->to; in sort__sym_to_cmp()
1051 sort__addr_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_from_cmp() argument
1057 if (!left->branch_info || !right->branch_info) in sort__addr_from_cmp()
1058 return cmp_null(left->branch_info, right->branch_info); in sort__addr_from_cmp()
1061 from_r = &right->branch_info->from; in sort__addr_from_cmp()
1075 sort__addr_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_to_cmp() argument
1081 if (!left->branch_info || !right->branch_info) in sort__addr_to_cmp()
1082 return cmp_null(left->branch_info, right->branch_info); in sort__addr_to_cmp()
1085 to_r = &right->branch_info->to; in sort__addr_to_cmp()
1116 sort__mispredict_cmp(struct hist_entry *left, struct hist_entry *right) in sort__mispredict_cmp() argument
1120 if (!left->branch_info || !right->branch_info) in sort__mispredict_cmp()
1121 return cmp_null(left->branch_info, right->branch_info); in sort__mispredict_cmp()
1123 mp = left->branch_info->flags.mispred != right->branch_info->flags.mispred; in sort__mispredict_cmp()
1124 p = left->branch_info->flags.predicted != right->branch_info->flags.predicted; in sort__mispredict_cmp()
1143 sort__cycles_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cycles_cmp() argument
1145 if (!left->branch_info || !right->branch_info) in sort__cycles_cmp()
1146 return cmp_null(left->branch_info, right->branch_info); in sort__cycles_cmp()
1149 right->branch_info->flags.cycles; in sort__cycles_cmp()
1172 sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__daddr_cmp() argument
1178 if (right->mem_info) in sort__daddr_cmp()
1179 r = right->mem_info->daddr.addr; in sort__daddr_cmp()
1198 sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__iaddr_cmp() argument
1204 if (right->mem_info) in sort__iaddr_cmp()
1205 r = right->mem_info->iaddr.addr; in sort__iaddr_cmp()
1224 sort__dso_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_daddr_cmp() argument
1231 if (right->mem_info) in sort__dso_daddr_cmp()
1232 map_r = right->mem_info->daddr.ms.map; in sort__dso_daddr_cmp()
1249 sort__locked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__locked_cmp() argument
1259 if (right->mem_info) in sort__locked_cmp()
1260 data_src_r = right->mem_info->data_src; in sort__locked_cmp()
1277 sort__tlb_cmp(struct hist_entry *left, struct hist_entry *right) in sort__tlb_cmp() argument
1287 if (right->mem_info) in sort__tlb_cmp()
1288 data_src_r = right->mem_info->data_src; in sort__tlb_cmp()
1305 sort__lvl_cmp(struct hist_entry *left, struct hist_entry *right) in sort__lvl_cmp() argument
1315 if (right->mem_info) in sort__lvl_cmp()
1316 data_src_r = right->mem_info->data_src; in sort__lvl_cmp()
1333 sort__snoop_cmp(struct hist_entry *left, struct hist_entry *right) in sort__snoop_cmp() argument
1343 if (right->mem_info) in sort__snoop_cmp()
1344 data_src_r = right->mem_info->data_src; in sort__snoop_cmp()
1361 sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dcacheline_cmp() argument
1368 if (!right->mem_info) return 1; in sort__dcacheline_cmp()
1371 if (left->cpumode > right->cpumode) return -1; in sort__dcacheline_cmp()
1372 if (left->cpumode < right->cpumode) return 1; in sort__dcacheline_cmp()
1375 r_map = right->mem_info->daddr.ms.map; in sort__dcacheline_cmp()
1401 if (left->thread->pid_ > right->thread->pid_) return -1; in sort__dcacheline_cmp()
1402 if (left->thread->pid_ < right->thread->pid_) return 1; in sort__dcacheline_cmp()
1408 r = cl_address(right->mem_info->daddr.al_addr); in sort__dcacheline_cmp()
1451 sort__weight_cmp(struct hist_entry *left, struct hist_entry *right) in sort__weight_cmp() argument
1453 return left->weight - right->weight; in sort__weight_cmp()
1484 sort__ins_lat_cmp(struct hist_entry *left, struct hist_entry *right) in sort__ins_lat_cmp() argument
1486 return left->ins_lat - right->ins_lat; in sort__ins_lat_cmp()
1517 sort__p_stage_cyc_cmp(struct hist_entry *left, struct hist_entry *right) in sort__p_stage_cyc_cmp() argument
1519 return left->p_stage_cyc - right->p_stage_cyc; in sort__p_stage_cyc_cmp()
1607 sort__blocked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__blocked_cmp() argument
1617 if (right->mem_info) in sort__blocked_cmp()
1618 data_src_r = right->mem_info->data_src; in sort__blocked_cmp()
1642 sort__phys_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__phys_daddr_cmp() argument
1648 if (right->mem_info) in sort__phys_daddr_cmp()
1649 r = right->mem_info->daddr.phys_addr; in sort__phys_daddr_cmp()
1683 sort__data_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__data_page_size_cmp() argument
1689 if (right->mem_info) in sort__data_page_size_cmp()
1690 r = right->mem_info->daddr.data_page_size; in sort__data_page_size_cmp()
1712 sort__code_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__code_page_size_cmp() argument
1715 uint64_t r = right->code_page_size; in sort__code_page_size_cmp()
1737 sort__abort_cmp(struct hist_entry *left, struct hist_entry *right) in sort__abort_cmp() argument
1739 if (!left->branch_info || !right->branch_info) in sort__abort_cmp()
1740 return cmp_null(left->branch_info, right->branch_info); in sort__abort_cmp()
1743 right->branch_info->flags.abort; in sort__abort_cmp()
1769 sort__in_tx_cmp(struct hist_entry *left, struct hist_entry *right) in sort__in_tx_cmp() argument
1771 if (!left->branch_info || !right->branch_info) in sort__in_tx_cmp()
1772 return cmp_null(left->branch_info, right->branch_info); in sort__in_tx_cmp()
1775 right->branch_info->flags.in_tx; in sort__in_tx_cmp()
1801 sort__transaction_cmp(struct hist_entry *left, struct hist_entry *right) in sort__transaction_cmp() argument
1803 return left->transaction - right->transaction; in sort__transaction_cmp()
1884 sort__sym_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_size_cmp() argument
1886 return _sort__sym_size_cmp(right->ms.sym, left->ms.sym); in sort__sym_size_cmp()
1923 sort__dso_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_size_cmp() argument
1925 return _sort__dso_size_cmp(right->ms.map, left->ms.map); in sort__dso_size_cmp()
1954 sort__addr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_cmp() argument
1957 u64 right_ip = right->ip; in sort__addr_cmp()
1959 struct map *right_map = right->ms.map; in sort__addr_cmp()