Lines Matching +full:differential +full:- +full:pair

1 // SPDX-License-Identifier: GPL-2.0
3 * builtin-diff.c
22 #include "util/time-utils.h"
26 #include "util/block-info.h"
32 #include <subcmd/parse-options.h>
117 [COMPUTE_DELTA_ABS] = "delta-abs",
185 int ret = -EINVAL; in setup_compute_opt_wdiff()
223 return -EINVAL; in setup_compute_opt()
232 int *cp = (int *) opt->value; in setup_compute()
245 unsigned len = option++ - str; in setup_compute()
254 return -EINVAL; in setup_compute()
269 return -EINVAL; in setup_compute()
274 u64 total = hists__total_period(he->hists); in period_percent()
279 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
281 double old_percent = period_percent(he, he->stat.period); in compute_delta()
282 double new_percent = period_percent(pair, pair->stat.period); in compute_delta()
284 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta()
285 pair->diff.computed = true; in compute_delta()
286 return pair->diff.period_ratio_delta; in compute_delta()
289 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
291 double old_period = he->stat.period ?: 1; in compute_ratio()
292 double new_period = pair->stat.period; in compute_ratio()
294 pair->diff.computed = true; in compute_ratio()
295 pair->diff.period_ratio = new_period / old_period; in compute_ratio()
296 return pair->diff.period_ratio; in compute_ratio()
299 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument
301 u64 old_period = he->stat.period; in compute_wdiff()
302 u64 new_period = pair->stat.period; in compute_wdiff()
304 pair->diff.computed = true; in compute_wdiff()
305 pair->diff.wdiff = new_period * compute_wdiff_w2 - in compute_wdiff()
308 return pair->diff.wdiff; in compute_wdiff()
311 static int formula_delta(struct hist_entry *he, struct hist_entry *pair, in formula_delta() argument
314 u64 he_total = he->hists->stats.total_period; in formula_delta()
315 u64 pair_total = pair->hists->stats.total_period; in formula_delta()
318 he_total = he->hists->stats.total_non_filtered_period; in formula_delta()
319 pair_total = pair->hists->stats.total_non_filtered_period; in formula_delta()
322 "(%" PRIu64 " * 100 / %" PRIu64 ") - " in formula_delta()
324 pair->stat.period, pair_total, in formula_delta()
325 he->stat.period, he_total); in formula_delta()
328 static int formula_ratio(struct hist_entry *he, struct hist_entry *pair, in formula_ratio() argument
331 double old_period = he->stat.period; in formula_ratio()
332 double new_period = pair->stat.period; in formula_ratio()
337 static int formula_wdiff(struct hist_entry *he, struct hist_entry *pair, in formula_wdiff() argument
340 u64 old_period = he->stat.period; in formula_wdiff()
341 u64 new_period = pair->stat.period; in formula_wdiff()
344 "(%" PRIu64 " * " "%" PRId64 ") - (%" PRIu64 " * " "%" PRId64 ")", in formula_wdiff()
348 static int formula_fprintf(struct hist_entry *he, struct hist_entry *pair, in formula_fprintf() argument
354 return formula_delta(he, pair, buf, size); in formula_fprintf()
356 return formula_ratio(he, pair, buf, size); in formula_fprintf()
358 return formula_wdiff(he, pair, buf, size); in formula_fprintf()
363 return -1; in formula_fprintf()
374 return &bh->he; in block_hist_zalloc()
382 hists__delete_entries(&bh->block_hists); in block_hist_free()
405 int ret = -1; in diff__process_sample_event()
407 if (perf_time__ranges_skip_sample(pdiff->ptime_range, pdiff->range_num, in diff__process_sample_event()
408 sample->time)) { in diff__process_sample_event()
415 event->header.type); in diff__process_sample_event()
416 ret = -1; in diff__process_sample_event()
420 if (cpu_list && !test_bit(sample->cpu, cpu_bitmap)) { in diff__process_sample_event()
434 hist__account_cycles(sample->branch_stack, &al, sample, false, in diff__process_sample_event()
461 hists->stats.total_period += sample->period; in diff__process_sample_event()
463 hists->stats.total_non_filtered_period += sample->period; in diff__process_sample_event()
513 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
523 struct hist_entry *pair; in get_pair_data() local
525 list_for_each_entry(pair, &he->pairs.head, pairs.node) in get_pair_data()
526 if (pair->hists == d->hists) in get_pair_data()
527 return pair; in get_pair_data()
536 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
547 root = &hists->entries_collapsed; in hists__baseline_only()
549 root = hists->entries_in; in hists__baseline_only()
555 next = rb_next(&he->rb_node_in); in hists__baseline_only()
557 rb_erase_cached(&he->rb_node_in, root); in hists__baseline_only()
573 l = llabs(left->diff.cycles); in block_cycles_diff_cmp()
574 r = llabs(right->diff.cycles); in block_cycles_diff_cmp()
575 return r - l; in block_cycles_diff_cmp()
586 __hists__init(&bh->block_hists, &bh->block_list); in init_block_hist()
587 perf_hpp_list__init(&bh->block_list); in init_block_hist()
589 INIT_LIST_HEAD(&bh->block_fmt.list); in init_block_hist()
590 INIT_LIST_HEAD(&bh->block_fmt.sort_list); in init_block_hist()
591 bh->block_fmt.cmp = block_info__cmp; in init_block_hist()
592 bh->block_fmt.sort = block_sort; in init_block_hist()
593 perf_hpp_list__register_sort_field(&bh->block_list, in init_block_hist()
594 &bh->block_fmt); in init_block_hist()
595 bh->valid = true; in init_block_hist()
601 struct rb_root_cached *root = hists_pair->entries_in; in get_block_pair()
609 next = rb_next(&he_pair->rb_node_in); in get_block_pair()
628 int n = stats->n; in update_spark_value()
635 struct hist_entry *pair) in compute_cycles_diff() argument
637 pair->diff.computed = true; in compute_cycles_diff()
638 if (pair->block_info->num && he->block_info->num) { in compute_cycles_diff()
639 pair->diff.cycles = in compute_cycles_diff()
640 pair->block_info->cycles_aggr / pair->block_info->num_aggr - in compute_cycles_diff()
641 he->block_info->cycles_aggr / he->block_info->num_aggr; in compute_cycles_diff()
646 init_stats(&pair->diff.stats); in compute_cycles_diff()
647 init_spark_values(pair->diff.svals, NUM_SPARKS); in compute_cycles_diff()
649 for (int i = 0; i < pair->block_info->num; i++) { in compute_cycles_diff()
652 if (i >= he->block_info->num || i >= NUM_SPARKS) in compute_cycles_diff()
655 val = llabs(pair->block_info->cycles_spark[i] - in compute_cycles_diff()
656 he->block_info->cycles_spark[i]); in compute_cycles_diff()
658 update_spark_value(pair->diff.svals, NUM_SPARKS, in compute_cycles_diff()
659 &pair->diff.stats, val); in compute_cycles_diff()
660 update_stats(&pair->diff.stats, val); in compute_cycles_diff()
668 struct rb_root_cached *root = hists_base->entries_in; in block_hists_match()
674 struct hist_entry *pair = get_block_pair(he, hists_pair); in block_hists_match() local
676 next = rb_next(&he->rb_node_in); in block_hists_match()
678 if (pair) { in block_hists_match()
679 hist_entry__add_pair(pair, he); in block_hists_match()
680 compute_cycles_diff(he, pair); in block_hists_match()
691 root = &hists->entries_collapsed; in hists__precompute()
693 root = hists->entries_in; in hists__precompute()
698 struct hist_entry *he, *pair; in hists__precompute() local
703 next = rb_next(&he->rb_node_in); in hists__precompute()
712 pair = get_pair_data(he, d); in hists__precompute()
713 if (!pair) in hists__precompute()
719 compute_delta(he, pair); in hists__precompute()
722 compute_ratio(he, pair); in hists__precompute()
725 compute_wdiff(he, pair); in hists__precompute()
728 pair_bh = container_of(pair, struct block_hist, in hists__precompute()
731 block_info__process_sym(pair, pair_bh, NULL, 0); in hists__precompute()
735 if (bh->valid && pair_bh->valid) { in hists__precompute()
736 block_hists_match(&bh->block_hists, in hists__precompute()
737 &pair_bh->block_hists); in hists__precompute()
738 hists__output_resort(&pair_bh->block_hists, in hists__precompute()
752 return -1; in cmp_doubles()
766 double l = left->diff.period_ratio_delta; in __hist_entry__cmp_compute()
767 double r = right->diff.period_ratio_delta; in __hist_entry__cmp_compute()
773 double l = fabs(left->diff.period_ratio_delta); in __hist_entry__cmp_compute()
774 double r = fabs(right->diff.period_ratio_delta); in __hist_entry__cmp_compute()
780 double l = left->diff.period_ratio; in __hist_entry__cmp_compute()
781 double r = right->diff.period_ratio; in __hist_entry__cmp_compute()
787 s64 l = left->diff.wdiff; in __hist_entry__cmp_compute()
788 s64 r = right->diff.wdiff; in __hist_entry__cmp_compute()
790 return r - l; in __hist_entry__cmp_compute()
811 return pairs_left ? -1 : 1; in hist_entry__cmp_compute()
820 return p_left ? -1 : 1; in hist_entry__cmp_compute()
842 return p_left ? -1 : 1; in hist_entry__cmp_compute_idx()
850 if (left->dummy && right->dummy) in hist_entry__cmp_compute_idx()
853 if (left->dummy || right->dummy) in hist_entry__cmp_compute_idx()
854 return left->dummy ? 1 : -1; in hist_entry__cmp_compute_idx()
872 if (left->stat.period == right->stat.period) in hist_entry__cmp_baseline()
874 return left->stat.period > right->stat.period ? 1 : -1; in hist_entry__cmp_baseline()
883 return hist_entry__cmp_compute(right, left, COMPUTE_DELTA, d->idx); in hist_entry__cmp_delta()
892 return hist_entry__cmp_compute(right, left, COMPUTE_DELTA_ABS, d->idx); in hist_entry__cmp_delta_abs()
901 return hist_entry__cmp_compute(right, left, COMPUTE_RATIO, d->idx); in hist_entry__cmp_ratio()
910 return hist_entry__cmp_compute(right, left, COMPUTE_WEIGHTED_DIFF, d->idx); in hist_entry__cmp_wdiff()
969 d->idx, d->data.path, in data__fprintf()
970 !d->idx ? "(Baseline)" : ""); in data__fprintf()
977 struct evlist *evlist_base = data__files[0].session->evlist; in data_process()
987 struct evlist *evlist = d->session->evlist; in data_process()
996 d->hists = hists; in data_process()
1025 struct evlist *evlist_base = data_base->session->evlist; in process_base_stream()
1026 struct evlist *evlist_pair = data_pair->session->evlist; in process_base_stream()
1035 es_base = evsel_streams__entry(data_base->evlist_streams, in process_base_stream()
1036 evsel_base->core.idx); in process_base_stream()
1038 return -1; in process_base_stream()
1040 es_pair = evsel_streams__entry(data_pair->evlist_streams, in process_base_stream()
1041 evsel_pair->core.idx); in process_base_stream()
1043 return -1; in process_base_stream()
1067 if (d->evlist_streams) in data__free()
1068 evlist_streams__delete(d->evlist_streams); in data__free()
1071 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free()
1073 zfree(&fmt->header); in data__free()
1084 return -ENOMEM; in abstime_str_dup()
1104 return -EINVAL; in parse_absolute_time()
1111 return -EINVAL; in parse_absolute_time()
1115 ret = perf_time__parse_for_ranges(*pstr, d->session, in parse_absolute_time()
1134 ret = perf_time__parse_for_ranges(pdiff.time_str, d->session, in parse_percent_time()
1161 d->session = perf_session__new(&d->data, &pdiff.tool); in check_file_brstack()
1162 if (IS_ERR(d->session)) { in check_file_brstack()
1163 pr_err("Failed to open %s\n", d->data.path); in check_file_brstack()
1164 return PTR_ERR(d->session); in check_file_brstack()
1167 has_br_stack = perf_header__has_feat(&d->session->header, in check_file_brstack()
1169 perf_session__delete(d->session); in check_file_brstack()
1190 ret = -EINVAL; in __cmd_diff()
1193 d->session = perf_session__new(&d->data, &pdiff.tool); in __cmd_diff()
1194 if (IS_ERR(d->session)) { in __cmd_diff()
1195 ret = PTR_ERR(d->session); in __cmd_diff()
1196 pr_err("Failed to open %s\n", d->data.path); in __cmd_diff()
1207 ret = perf_session__cpu_bitmap(d->session, cpu_list, in __cmd_diff()
1213 ret = perf_session__process_events(d->session); in __cmd_diff()
1215 pr_err("Failed to process %s\n", d->data.path); in __cmd_diff()
1219 evlist__collapse_resort(d->session->evlist); in __cmd_diff()
1225 d->evlist_streams = evlist__create_streams( in __cmd_diff()
1226 d->session->evlist, 5); in __cmd_diff()
1227 if (!d->evlist_streams) { in __cmd_diff()
1228 ret = -ENOMEM; in __cmd_diff()
1241 if (!IS_ERR(d->session)) in __cmd_diff()
1242 perf_session__delete(d->session); in __cmd_diff()
1266 OPT_BOOLEAN('b', "baseline-only", &show_baseline_only,
1269 "delta,delta-abs,ratio,wdiff:w1,w2 (default delta-abs),cycles",
1270 "Entries differential computation selection",
1276 OPT_BOOLEAN(0, "cycles-hist", &cycles_hist,
1278 "- WARNING: use only with -c cycles."),
1279 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
1285 "load module symbols - WARNING: use only with -k and LIVE kernel"),
1295 OPT_STRING_NOEMPTY('t', "field-separator", &symbol_conf.field_sep, "separator",
1318 u64 total = hists__total_period(he->hists); in baseline_percent()
1320 return 100.0 * he->stat.period / total; in baseline_percent()
1331 if (!he->dummy) { in hpp__color_baseline()
1332 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1333 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline()
1336 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
1337 dfmt->header_width, pfmt); in hpp__color_baseline()
1346 if (!he->dummy) in hpp__entry_baseline()
1352 static int cycles_printf(struct hist_entry *he, struct hist_entry *pair, in cycles_printf() argument
1356 struct block_hist *bh_pair = container_of(pair, struct block_hist, he); in cycles_printf()
1362 block_he = hists__get_entry(&bh_pair->block_hists, bh->block_idx); in cycles_printf()
1364 hpp->skip = true; in cycles_printf()
1373 bi = block_he->block_info; in cycles_printf()
1375 start_line = map__srcline(he->ms.map, bi->sym->start + bi->start, in cycles_printf()
1376 he->ms.sym); in cycles_printf()
1378 end_line = map__srcline(he->ms.map, bi->sym->start + bi->end, in cycles_printf()
1379 he->ms.sym); in cycles_printf()
1383 scnprintf(buf, sizeof(buf), "[%s -> %s] %4ld", in cycles_printf()
1384 start_line, end_line, block_he->diff.cycles); in cycles_printf()
1386 scnprintf(buf, sizeof(buf), "[%7lx -> %7lx] %4ld", in cycles_printf()
1387 bi->start, bi->end, block_he->diff.cycles); in cycles_printf()
1393 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cycles_printf()
1402 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare() local
1407 if (!pair) { in __hpp__color_compare()
1412 if (bh->block_idx) in __hpp__color_compare()
1413 hpp->skip = true; in __hpp__color_compare()
1421 if (pair->diff.computed) in __hpp__color_compare()
1422 diff = pair->diff.period_ratio_delta; in __hpp__color_compare()
1424 diff = compute_delta(he, pair); in __hpp__color_compare()
1426 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1427 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
1430 if (he->dummy) in __hpp__color_compare()
1432 if (pair->diff.computed) in __hpp__color_compare()
1433 diff = pair->diff.period_ratio; in __hpp__color_compare()
1435 diff = compute_ratio(he, pair); in __hpp__color_compare()
1437 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1438 return value_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
1441 if (he->dummy) in __hpp__color_compare()
1443 if (pair->diff.computed) in __hpp__color_compare()
1444 wdiff = pair->diff.wdiff; in __hpp__color_compare()
1446 wdiff = compute_wdiff(he, pair); in __hpp__color_compare()
1448 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1449 return color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
1453 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1458 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
1459 dfmt->header_width, "N/A"); in __hpp__color_compare()
1461 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
1462 dfmt->header_width, pfmt); in __hpp__color_compare()
1512 printed += scnprintf(bf + printed, size - printed, " "); in print_cycles_spark()
1521 struct hist_entry *pair = get_pair_fmt(he, dfmt); in hpp__color_cycles_hist() local
1529 if (!pair) { in hpp__color_cycles_hist()
1530 if (bh->block_idx) in hpp__color_cycles_hist()
1531 hpp->skip = true; in hpp__color_cycles_hist()
1536 bh_pair = container_of(pair, struct block_hist, he); in hpp__color_cycles_hist()
1538 block_he = hists__get_entry(&bh_pair->block_hists, bh->block_idx); in hpp__color_cycles_hist()
1540 hpp->skip = true; in hpp__color_cycles_hist()
1544 ret = print_cycles_spark(spark, sizeof(spark), block_he->diff.svals, in hpp__color_cycles_hist()
1545 block_he->diff.stats.n); in hpp__color_cycles_hist()
1547 r = rel_stddev_stats(stddev_stats(&block_he->diff.stats), in hpp__color_cycles_hist()
1548 avg_stats(&block_he->diff.stats)); in hpp__color_cycles_hist()
1555 pad = NUM_SPARKS - ((ret - 1) / 3); in hpp__color_cycles_hist()
1557 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_cycles_hist()
1558 dfmt->header_width, buf); in hpp__color_cycles_hist()
1561 ret += scnprintf(hpp->buf + ret, hpp->size - ret, in hpp__color_cycles_hist()
1562 "%-*s", pad, " "); in hpp__color_cycles_hist()
1569 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_cycles_hist()
1570 dfmt->header_width, " "); in hpp__color_cycles_hist()
1578 scnprintf(buf, size, "%" PRIu64, he->stat.period); in hpp__entry_unpair()
1587 hpp__entry_pair(struct hist_entry *he, struct hist_entry *pair, in hpp__entry_pair() argument
1597 if (pair->diff.computed) in hpp__entry_pair()
1598 diff = pair->diff.period_ratio_delta; in hpp__entry_pair()
1600 diff = compute_delta(he, pair); in hpp__entry_pair()
1607 if (he->dummy) { in hpp__entry_pair()
1612 if (pair->diff.computed) in hpp__entry_pair()
1613 ratio = pair->diff.period_ratio; in hpp__entry_pair()
1615 ratio = compute_ratio(he, pair); in hpp__entry_pair()
1623 if (he->dummy) { in hpp__entry_pair()
1628 if (pair->diff.computed) in hpp__entry_pair()
1629 wdiff = pair->diff.wdiff; in hpp__entry_pair()
1631 wdiff = compute_wdiff(he, pair); in hpp__entry_pair()
1638 formula_fprintf(he, pair, buf, size); in hpp__entry_pair()
1642 scnprintf(buf, size, "%" PRIu64, pair->stat.period); in hpp__entry_pair()
1654 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global() local
1655 int idx = dfmt->idx; in __hpp__entry_global()
1661 if (pair) in __hpp__entry_global()
1662 hpp__entry_pair(he, pair, idx, buf, size); in __hpp__entry_global()
1678 return scnprintf(hpp->buf, hpp->size, "%s", buf); in hpp__entry_global()
1680 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__entry_global()
1681 dfmt->header_width, buf); in hpp__entry_global()
1692 BUG_ON(!dfmt->header); in hpp__header()
1693 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1703 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1704 return dfmt->header_width; in hpp__width()
1715 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1716 header = columns[dfmt->idx].name; in init_header()
1717 width = columns[dfmt->idx].width; in init_header()
1723 scnprintf(buf, MAX_HEADER_NAME, "%s/%d", header, d->idx); in init_header()
1726 dfmt->header_width = width; in init_header()
1728 if (dfmt->header_width < width) in init_header()
1729 dfmt->header_width = width; in init_header()
1732 dfmt->header_width, NAME); in init_header()
1734 dfmt->header = strdup(buf_indent); in init_header()
1741 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register()
1742 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1744 dfmt->idx = idx; in data__hpp_register()
1746 fmt->header = hpp__header; in data__hpp_register()
1747 fmt->width = hpp__width; in data__hpp_register()
1748 fmt->entry = hpp__entry_global; in data__hpp_register()
1749 fmt->cmp = hist_entry__cmp_nop; in data__hpp_register()
1750 fmt->collapse = hist_entry__cmp_nop; in data__hpp_register()
1755 fmt->color = hpp__color_baseline; in data__hpp_register()
1756 fmt->sort = hist_entry__cmp_baseline; in data__hpp_register()
1759 fmt->color = hpp__color_delta; in data__hpp_register()
1760 fmt->sort = hist_entry__cmp_delta; in data__hpp_register()
1763 fmt->color = hpp__color_ratio; in data__hpp_register()
1764 fmt->sort = hist_entry__cmp_ratio; in data__hpp_register()
1767 fmt->color = hpp__color_wdiff; in data__hpp_register()
1768 fmt->sort = hist_entry__cmp_wdiff; in data__hpp_register()
1771 fmt->color = hpp__color_delta; in data__hpp_register()
1772 fmt->sort = hist_entry__cmp_delta_abs; in data__hpp_register()
1775 fmt->color = hpp__color_cycles; in data__hpp_register()
1776 fmt->sort = hist_entry__cmp_nop; in data__hpp_register()
1779 fmt->color = hpp__color_cycles_hist; in data__hpp_register()
1780 fmt->sort = hist_entry__cmp_nop; in data__hpp_register()
1783 fmt->sort = hist_entry__cmp_nop; in data__hpp_register()
1838 * Note that this column (data) can be compared twice - one in ui_init()
1847 return -1; in ui_init()
1850 fmt->cmp = hist_entry__cmp_nop; in ui_init()
1851 fmt->collapse = hist_entry__cmp_nop; in ui_init()
1855 fmt->sort = hist_entry__cmp_delta_idx; in ui_init()
1858 fmt->sort = hist_entry__cmp_ratio_idx; in ui_init()
1861 fmt->sort = hist_entry__cmp_wdiff_idx; in ui_init()
1864 fmt->sort = hist_entry__cmp_delta_abs_idx; in ui_init()
1868 * Should set since 'fmt->sort' is called without in ui_init()
1871 fmt->sort = hist_entry__cmp_nop; in ui_init()
1907 return -EINVAL; in data_init()
1912 return -ENOMEM; in data_init()
1915 struct perf_data *data = &d->data; in data_init()
1917 data->path = use_default ? defaults[i] : argv[i]; in data_init()
1918 data->mode = PERF_DATA_MODE_READ; in data_init()
1919 data->force = force; in data_init()
1921 d->idx = i; in data_init()
1933 return -1; in diff__config()
1940 } else if (!strcmp(value, "delta-abs")) { in diff__config()
1948 return -1; in diff__config()
1978 return -1; in cmd_diff()
1981 return -1; in cmd_diff()
1984 return -1; in cmd_diff()
1988 return -1; in cmd_diff()
2002 return -1; in cmd_diff()