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()
994 sort__mispredict_cmp(struct hist_entry *left, struct hist_entry *right) in sort__mispredict_cmp() argument
998 if (!left->branch_info || !right->branch_info) in sort__mispredict_cmp()
999 return cmp_null(left->branch_info, right->branch_info); in sort__mispredict_cmp()
1001 mp = left->branch_info->flags.mispred != right->branch_info->flags.mispred; in sort__mispredict_cmp()
1002 p = left->branch_info->flags.predicted != right->branch_info->flags.predicted; in sort__mispredict_cmp()
1021 sort__cycles_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cycles_cmp() argument
1023 if (!left->branch_info || !right->branch_info) in sort__cycles_cmp()
1024 return cmp_null(left->branch_info, right->branch_info); in sort__cycles_cmp()
1027 right->branch_info->flags.cycles; in sort__cycles_cmp()
1050 sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__daddr_cmp() argument
1056 if (right->mem_info) in sort__daddr_cmp()
1057 r = right->mem_info->daddr.addr; in sort__daddr_cmp()
1076 sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__iaddr_cmp() argument
1082 if (right->mem_info) in sort__iaddr_cmp()
1083 r = right->mem_info->iaddr.addr; in sort__iaddr_cmp()
1102 sort__dso_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_daddr_cmp() argument
1109 if (right->mem_info) in sort__dso_daddr_cmp()
1110 map_r = right->mem_info->daddr.ms.map; in sort__dso_daddr_cmp()
1127 sort__locked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__locked_cmp() argument
1137 if (right->mem_info) in sort__locked_cmp()
1138 data_src_r = right->mem_info->data_src; in sort__locked_cmp()
1155 sort__tlb_cmp(struct hist_entry *left, struct hist_entry *right) in sort__tlb_cmp() argument
1165 if (right->mem_info) in sort__tlb_cmp()
1166 data_src_r = right->mem_info->data_src; in sort__tlb_cmp()
1183 sort__lvl_cmp(struct hist_entry *left, struct hist_entry *right) in sort__lvl_cmp() argument
1193 if (right->mem_info) in sort__lvl_cmp()
1194 data_src_r = right->mem_info->data_src; in sort__lvl_cmp()
1211 sort__snoop_cmp(struct hist_entry *left, struct hist_entry *right) in sort__snoop_cmp() argument
1221 if (right->mem_info) in sort__snoop_cmp()
1222 data_src_r = right->mem_info->data_src; in sort__snoop_cmp()
1239 sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dcacheline_cmp() argument
1246 if (!right->mem_info) return 1; in sort__dcacheline_cmp()
1249 if (left->cpumode > right->cpumode) return -1; in sort__dcacheline_cmp()
1250 if (left->cpumode < right->cpumode) return 1; in sort__dcacheline_cmp()
1253 r_map = right->mem_info->daddr.ms.map; in sort__dcacheline_cmp()
1279 if (left->thread->pid_ > right->thread->pid_) return -1; in sort__dcacheline_cmp()
1280 if (left->thread->pid_ < right->thread->pid_) return 1; in sort__dcacheline_cmp()
1286 r = cl_address(right->mem_info->daddr.al_addr); in sort__dcacheline_cmp()
1329 sort__weight_cmp(struct hist_entry *left, struct hist_entry *right) in sort__weight_cmp() argument
1331 return left->weight - right->weight; in sort__weight_cmp()
1362 sort__ins_lat_cmp(struct hist_entry *left, struct hist_entry *right) in sort__ins_lat_cmp() argument
1364 return left->ins_lat - right->ins_lat; in sort__ins_lat_cmp()
1395 sort__global_p_stage_cyc_cmp(struct hist_entry *left, struct hist_entry *right) in sort__global_p_stage_cyc_cmp() argument
1397 return left->p_stage_cyc - right->p_stage_cyc; in sort__global_p_stage_cyc_cmp()
1470 sort__blocked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__blocked_cmp() argument
1480 if (right->mem_info) in sort__blocked_cmp()
1481 data_src_r = right->mem_info->data_src; in sort__blocked_cmp()
1505 sort__phys_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__phys_daddr_cmp() argument
1511 if (right->mem_info) in sort__phys_daddr_cmp()
1512 r = right->mem_info->daddr.phys_addr; in sort__phys_daddr_cmp()
1546 sort__data_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__data_page_size_cmp() argument
1552 if (right->mem_info) in sort__data_page_size_cmp()
1553 r = right->mem_info->daddr.data_page_size; in sort__data_page_size_cmp()
1575 sort__code_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__code_page_size_cmp() argument
1578 uint64_t r = right->code_page_size; in sort__code_page_size_cmp()
1600 sort__abort_cmp(struct hist_entry *left, struct hist_entry *right) in sort__abort_cmp() argument
1602 if (!left->branch_info || !right->branch_info) in sort__abort_cmp()
1603 return cmp_null(left->branch_info, right->branch_info); in sort__abort_cmp()
1606 right->branch_info->flags.abort; in sort__abort_cmp()
1632 sort__in_tx_cmp(struct hist_entry *left, struct hist_entry *right) in sort__in_tx_cmp() argument
1634 if (!left->branch_info || !right->branch_info) in sort__in_tx_cmp()
1635 return cmp_null(left->branch_info, right->branch_info); in sort__in_tx_cmp()
1638 right->branch_info->flags.in_tx; in sort__in_tx_cmp()
1664 sort__transaction_cmp(struct hist_entry *left, struct hist_entry *right) in sort__transaction_cmp() argument
1666 return left->transaction - right->transaction; in sort__transaction_cmp()
1747 sort__sym_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_size_cmp() argument
1749 return _sort__sym_size_cmp(right->ms.sym, left->ms.sym); in sort__sym_size_cmp()
1786 sort__dso_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_size_cmp() argument
1788 return _sort__dso_size_cmp(right->ms.map, left->ms.map); in sort__dso_size_cmp()