Lines Matching full:right
111 sort__thread_cmp(struct hist_entry *left, struct hist_entry *right) in sort__thread_cmp() argument
113 return thread__tid(right->thread) - thread__tid(left->thread); in sort__thread_cmp()
147 sort__simd_cmp(struct hist_entry *left, struct hist_entry *right) in sort__simd_cmp() argument
149 if (left->simd_flags.arch != right->simd_flags.arch) in sort__simd_cmp()
150 return (int64_t) left->simd_flags.arch - right->simd_flags.arch; in sort__simd_cmp()
152 return (int64_t) left->simd_flags.pred - right->simd_flags.pred; in sort__simd_cmp()
198 sort__comm_cmp(struct hist_entry *left, struct hist_entry *right) in sort__comm_cmp() argument
200 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_cmp()
204 sort__comm_collapse(struct hist_entry *left, struct hist_entry *right) in sort__comm_collapse() argument
206 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_collapse()
210 sort__comm_sort(struct hist_entry *left, struct hist_entry *right) in sort__comm_sort() argument
212 return strcmp(comm__str(right->comm), comm__str(left->comm)); in sort__comm_sort()
254 sort__dso_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_cmp() argument
256 return _sort__dso_cmp(right->ms.map, left->ms.map); in sort__dso_cmp()
326 sort__sym_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_cmp() argument
330 if (!left->ms.sym && !right->ms.sym) in sort__sym_cmp()
331 return _sort__addr_cmp(left->ip, right->ip); in sort__sym_cmp()
338 ret = sort__dso_cmp(left, right); in sort__sym_cmp()
343 return _sort__sym_cmp(left->ms.sym, right->ms.sym); in sort__sym_cmp()
347 sort__sym_sort(struct hist_entry *left, struct hist_entry *right) in sort__sym_sort() argument
349 if (!left->ms.sym || !right->ms.sym) in sort__sym_sort()
350 return cmp_null(left->ms.sym, right->ms.sym); in sort__sym_sort()
352 return strcmp(right->ms.sym->name, left->ms.sym->name); in sort__sym_sort()
426 sort__symoff_cmp(struct hist_entry *left, struct hist_entry *right) in sort__symoff_cmp() argument
430 ret = sort__sym_cmp(left, right); in sort__symoff_cmp()
434 return left->ip - right->ip; in sort__symoff_cmp()
438 sort__symoff_sort(struct hist_entry *left, struct hist_entry *right) in sort__symoff_sort() argument
442 ret = sort__sym_sort(left, right); in sort__symoff_sort()
446 return left->ip - right->ip; in sort__symoff_sort()
477 sort__srcline_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_cmp() argument
481 ret = _sort__addr_cmp(left->ip, right->ip); in sort__srcline_cmp()
485 return sort__dso_cmp(left, right); in sort__srcline_cmp()
489 sort__srcline_collapse(struct hist_entry *left, struct hist_entry *right) in sort__srcline_collapse() argument
493 if (!right->srcline) in sort__srcline_collapse()
494 right->srcline = hist_entry__srcline(right); in sort__srcline_collapse()
496 return strcmp(right->srcline, left->srcline); in sort__srcline_collapse()
500 sort__srcline_sort(struct hist_entry *left, struct hist_entry *right) in sort__srcline_sort() argument
502 return sort__srcline_collapse(left, right); in sort__srcline_sort()
536 sort__srcline_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_from_cmp() argument
538 return left->branch_info->from.addr - right->branch_info->from.addr; in sort__srcline_from_cmp()
542 sort__srcline_from_collapse(struct hist_entry *left, struct hist_entry *right) in sort__srcline_from_collapse() argument
547 if (!right->branch_info->srcline_from) in sort__srcline_from_collapse()
548 right->branch_info->srcline_from = addr_map_symbol__srcline(&right->branch_info->from); in sort__srcline_from_collapse()
550 return strcmp(right->branch_info->srcline_from, left->branch_info->srcline_from); in sort__srcline_from_collapse()
554 sort__srcline_from_sort(struct hist_entry *left, struct hist_entry *right) in sort__srcline_from_sort() argument
556 return sort__srcline_from_collapse(left, right); in sort__srcline_from_sort()
584 sort__srcline_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcline_to_cmp() argument
586 return left->branch_info->to.addr - right->branch_info->to.addr; in sort__srcline_to_cmp()
590 sort__srcline_to_collapse(struct hist_entry *left, struct hist_entry *right) in sort__srcline_to_collapse() argument
595 if (!right->branch_info->srcline_to) in sort__srcline_to_collapse()
596 right->branch_info->srcline_to = addr_map_symbol__srcline(&right->branch_info->to); in sort__srcline_to_collapse()
598 return strcmp(right->branch_info->srcline_to, left->branch_info->srcline_to); in sort__srcline_to_collapse()
602 sort__srcline_to_sort(struct hist_entry *left, struct hist_entry *right) in sort__srcline_to_sort() argument
604 return sort__srcline_to_collapse(left, right); in sort__srcline_to_sort()
706 sort__srcfile_cmp(struct hist_entry *left, struct hist_entry *right) in sort__srcfile_cmp() argument
708 return sort__srcline_cmp(left, right); in sort__srcfile_cmp()
712 sort__srcfile_collapse(struct hist_entry *left, struct hist_entry *right) in sort__srcfile_collapse() argument
716 if (!right->srcfile) in sort__srcfile_collapse()
717 right->srcfile = hist_entry__get_srcfile(right); in sort__srcfile_collapse()
719 return strcmp(right->srcfile, left->srcfile); in sort__srcfile_collapse()
723 sort__srcfile_sort(struct hist_entry *left, struct hist_entry *right) in sort__srcfile_sort() argument
725 return sort__srcfile_collapse(left, right); in sort__srcfile_sort()
753 sort__parent_cmp(struct hist_entry *left, struct hist_entry *right) in sort__parent_cmp() argument
756 struct symbol *sym_r = right->parent; in sort__parent_cmp()
781 sort__cpu_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cpu_cmp() argument
783 return right->cpu - left->cpu; in sort__cpu_cmp()
812 sort__cgroup_id_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cgroup_id_cmp() argument
816 ret = _sort__cgroup_dev_cmp(right->cgroup_id.dev, left->cgroup_id.dev); in sort__cgroup_id_cmp()
820 return _sort__cgroup_inode_cmp(right->cgroup_id.ino, in sort__cgroup_id_cmp()
842 sort__cgroup_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cgroup_cmp() argument
844 return right->cgroup - left->cgroup; in sort__cgroup_cmp()
875 sort__socket_cmp(struct hist_entry *left, struct hist_entry *right) in sort__socket_cmp() argument
877 return right->socket - left->socket; in sort__socket_cmp()
907 sort__time_cmp(struct hist_entry *left, struct hist_entry *right) in sort__time_cmp() argument
909 return right->time - left->time; in sort__time_cmp()
964 sort__trace_cmp(struct hist_entry *left, struct hist_entry *right) in sort__trace_cmp() argument
974 if (right->trace_output == NULL) in sort__trace_cmp()
975 right->trace_output = get_trace_output(right); in sort__trace_cmp()
977 return strcmp(right->trace_output, left->trace_output); in sort__trace_cmp()
1005 sort__dso_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_from_cmp() argument
1007 if (!left->branch_info || !right->branch_info) in sort__dso_from_cmp()
1008 return cmp_null(left->branch_info, right->branch_info); in sort__dso_from_cmp()
1011 right->branch_info->from.ms.map); in sort__dso_from_cmp()
1037 sort__dso_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_to_cmp() argument
1039 if (!left->branch_info || !right->branch_info) in sort__dso_to_cmp()
1040 return cmp_null(left->branch_info, right->branch_info); in sort__dso_to_cmp()
1043 right->branch_info->to.ms.map); in sort__dso_to_cmp()
1069 sort__sym_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_from_cmp() argument
1073 if (!left->branch_info || !right->branch_info) in sort__sym_from_cmp()
1074 return cmp_null(left->branch_info, right->branch_info); in sort__sym_from_cmp()
1077 from_r = &right->branch_info->from; in sort__sym_from_cmp()
1086 sort__sym_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_to_cmp() argument
1090 if (!left->branch_info || !right->branch_info) in sort__sym_to_cmp()
1091 return cmp_null(left->branch_info, right->branch_info); in sort__sym_to_cmp()
1094 to_r = &right->branch_info->to; in sort__sym_to_cmp()
1242 sort__addr_from_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_from_cmp() argument
1248 if (!left->branch_info || !right->branch_info) in sort__addr_from_cmp()
1249 return cmp_null(left->branch_info, right->branch_info); in sort__addr_from_cmp()
1252 from_r = &right->branch_info->from; in sort__addr_from_cmp()
1266 sort__addr_to_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_to_cmp() argument
1272 if (!left->branch_info || !right->branch_info) in sort__addr_to_cmp()
1273 return cmp_null(left->branch_info, right->branch_info); in sort__addr_to_cmp()
1276 to_r = &right->branch_info->to; in sort__addr_to_cmp()
1307 sort__mispredict_cmp(struct hist_entry *left, struct hist_entry *right) in sort__mispredict_cmp() argument
1311 if (!left->branch_info || !right->branch_info) in sort__mispredict_cmp()
1312 return cmp_null(left->branch_info, right->branch_info); in sort__mispredict_cmp()
1314 mp = left->branch_info->flags.mispred != right->branch_info->flags.mispred; in sort__mispredict_cmp()
1315 p = left->branch_info->flags.predicted != right->branch_info->flags.predicted; in sort__mispredict_cmp()
1334 sort__cycles_cmp(struct hist_entry *left, struct hist_entry *right) in sort__cycles_cmp() argument
1336 if (!left->branch_info || !right->branch_info) in sort__cycles_cmp()
1337 return cmp_null(left->branch_info, right->branch_info); in sort__cycles_cmp()
1340 right->branch_info->flags.cycles; in sort__cycles_cmp()
1363 sort__daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__daddr_cmp() argument
1369 if (right->mem_info) in sort__daddr_cmp()
1370 r = mem_info__daddr(right->mem_info)->addr; in sort__daddr_cmp()
1389 sort__iaddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__iaddr_cmp() argument
1395 if (right->mem_info) in sort__iaddr_cmp()
1396 r = mem_info__iaddr(right->mem_info)->addr; in sort__iaddr_cmp()
1415 sort__dso_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_daddr_cmp() argument
1422 if (right->mem_info) in sort__dso_daddr_cmp()
1423 map_r = mem_info__daddr(right->mem_info)->ms.map; in sort__dso_daddr_cmp()
1440 sort__locked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__locked_cmp() argument
1450 if (right->mem_info) in sort__locked_cmp()
1451 data_src_r = *mem_info__data_src(right->mem_info); in sort__locked_cmp()
1468 sort__tlb_cmp(struct hist_entry *left, struct hist_entry *right) in sort__tlb_cmp() argument
1478 if (right->mem_info) in sort__tlb_cmp()
1479 data_src_r = *mem_info__data_src(right->mem_info); in sort__tlb_cmp()
1496 sort__lvl_cmp(struct hist_entry *left, struct hist_entry *right) in sort__lvl_cmp() argument
1506 if (right->mem_info) in sort__lvl_cmp()
1507 data_src_r = *mem_info__data_src(right->mem_info); in sort__lvl_cmp()
1524 sort__snoop_cmp(struct hist_entry *left, struct hist_entry *right) in sort__snoop_cmp() argument
1534 if (right->mem_info) in sort__snoop_cmp()
1535 data_src_r = *mem_info__data_src(right->mem_info); in sort__snoop_cmp()
1552 sort__dcacheline_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dcacheline_cmp() argument
1560 if (!right->mem_info) return 1; in sort__dcacheline_cmp()
1563 if (left->cpumode > right->cpumode) return -1; in sort__dcacheline_cmp()
1564 if (left->cpumode < right->cpumode) return 1; in sort__dcacheline_cmp()
1567 r_map = mem_info__daddr(right->mem_info)->ms.map; in sort__dcacheline_cmp()
1594 if (thread__pid(left->thread) > thread__pid(right->thread)) in sort__dcacheline_cmp()
1596 if (thread__pid(left->thread) < thread__pid(right->thread)) in sort__dcacheline_cmp()
1601 /* al_addr does all the right addr - start + offset calculations */ in sort__dcacheline_cmp()
1603 r = cl_address(mem_info__daddr(right->mem_info)->al_addr, chk_double_cl); in sort__dcacheline_cmp()
1647 sort__weight_cmp(struct hist_entry *left, struct hist_entry *right) in sort__weight_cmp() argument
1649 return left->weight - right->weight; in sort__weight_cmp()
1680 sort__ins_lat_cmp(struct hist_entry *left, struct hist_entry *right) in sort__ins_lat_cmp() argument
1682 return left->ins_lat - right->ins_lat; in sort__ins_lat_cmp()
1713 sort__p_stage_cyc_cmp(struct hist_entry *left, struct hist_entry *right) in sort__p_stage_cyc_cmp() argument
1715 return left->p_stage_cyc - right->p_stage_cyc; in sort__p_stage_cyc_cmp()
1803 sort__blocked_cmp(struct hist_entry *left, struct hist_entry *right) in sort__blocked_cmp() argument
1813 if (right->mem_info) in sort__blocked_cmp()
1814 data_src_r = *mem_info__data_src(right->mem_info); in sort__blocked_cmp()
1838 sort__phys_daddr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__phys_daddr_cmp() argument
1844 if (right->mem_info) in sort__phys_daddr_cmp()
1845 r = mem_info__daddr(right->mem_info)->phys_addr; in sort__phys_daddr_cmp()
1879 sort__data_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__data_page_size_cmp() argument
1885 if (right->mem_info) in sort__data_page_size_cmp()
1886 r = mem_info__daddr(right->mem_info)->data_page_size; in sort__data_page_size_cmp()
1908 sort__code_page_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__code_page_size_cmp() argument
1911 uint64_t r = right->code_page_size; in sort__code_page_size_cmp()
1933 sort__abort_cmp(struct hist_entry *left, struct hist_entry *right) in sort__abort_cmp() argument
1935 if (!left->branch_info || !right->branch_info) in sort__abort_cmp()
1936 return cmp_null(left->branch_info, right->branch_info); in sort__abort_cmp()
1939 right->branch_info->flags.abort; in sort__abort_cmp()
1965 sort__in_tx_cmp(struct hist_entry *left, struct hist_entry *right) in sort__in_tx_cmp() argument
1967 if (!left->branch_info || !right->branch_info) in sort__in_tx_cmp()
1968 return cmp_null(left->branch_info, right->branch_info); in sort__in_tx_cmp()
1971 right->branch_info->flags.in_tx; in sort__in_tx_cmp()
1997 sort__transaction_cmp(struct hist_entry *left, struct hist_entry *right) in sort__transaction_cmp() argument
1999 return left->transaction - right->transaction; in sort__transaction_cmp()
2080 sort__sym_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__sym_size_cmp() argument
2082 return _sort__sym_size_cmp(right->ms.sym, left->ms.sym); in sort__sym_size_cmp()
2119 sort__dso_size_cmp(struct hist_entry *left, struct hist_entry *right) in sort__dso_size_cmp() argument
2121 return _sort__dso_size_cmp(right->ms.map, left->ms.map); in sort__dso_size_cmp()
2149 sort__addr_cmp(struct hist_entry *left, struct hist_entry *right) in sort__addr_cmp() argument
2152 u64 right_ip = right->ip; in sort__addr_cmp()
2154 struct map *right_map = right->ms.map; in sort__addr_cmp()
2193 sort__type_cmp(struct hist_entry *left, struct hist_entry *right) in sort__type_cmp() argument
2195 return sort__addr_cmp(left, right); in sort__type_cmp()
2211 sort__type_collapse(struct hist_entry *left, struct hist_entry *right) in sort__type_collapse() argument
2214 struct annotated_data_type *right_type = right->mem_type; in sort__type_collapse()
2222 sort__type_init(right); in sort__type_collapse()
2223 right_type = right->mem_type; in sort__type_collapse()
2230 sort__type_sort(struct hist_entry *left, struct hist_entry *right) in sort__type_sort() argument
2232 return sort__type_collapse(left, right); in sort__type_sort()
2254 sort__typeoff_sort(struct hist_entry *left, struct hist_entry *right) in sort__typeoff_sort() argument
2257 struct annotated_data_type *right_type = right->mem_type; in sort__typeoff_sort()
2266 sort__type_init(right); in sort__typeoff_sort()
2267 right_type = right->mem_type; in sort__typeoff_sort()
2273 return left->mem_type_off - right->mem_type_off; in sort__typeoff_sort()
2335 sort__typecln_sort(struct hist_entry *left, struct hist_entry *right) in sort__typecln_sort() argument
2338 struct annotated_data_type *right_type = right->mem_type; in sort__typecln_sort()
2348 sort__type_init(right); in sort__typecln_sort()
2349 right_type = right->mem_type; in sort__typecln_sort()
2357 right_cln = right->mem_type_off / TYPE_CACHELINE_SIZE; in sort__typecln_sort()