Lines Matching full:diff
3 * builtin-diff.c
5 * Builtin diff command: Analyze two perf.data input files, look up and read
6 * DSOs and symbol information, sort them and produce a diff.
49 /* Diff command specific HPP columns. */
163 .name = "Weighted diff",
171 .name = "[Program Block Range] Cycles Diff",
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()
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()
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()
559 l = llabs(left->diff.cycles); in block_cycles_diff_cmp()
560 r = llabs(right->diff.cycles); in block_cycles_diff_cmp()
623 pair->diff.computed = true; in compute_cycles_diff()
625 pair->diff.cycles = in compute_cycles_diff()
632 init_stats(&pair->diff.stats); in compute_cycles_diff()
633 init_spark_values(pair->diff.svals, NUM_SPARKS); in compute_cycles_diff()
644 update_spark_value(pair->diff.svals, NUM_SPARKS, in compute_cycles_diff()
645 &pair->diff.stats, val); in compute_cycles_diff()
646 update_stats(&pair->diff.stats, val); in compute_cycles_diff()
752 double l = left->diff.period_ratio_delta; in __hist_entry__cmp_compute()
753 double r = right->diff.period_ratio_delta; in __hist_entry__cmp_compute()
759 double l = fabs(left->diff.period_ratio_delta); in __hist_entry__cmp_compute()
760 double r = fabs(right->diff.period_ratio_delta); in __hist_entry__cmp_compute()
766 double l = left->diff.period_ratio; in __hist_entry__cmp_compute()
767 double r = right->diff.period_ratio; in __hist_entry__cmp_compute()
773 s64 l = left->diff.wdiff; in __hist_entry__cmp_compute()
774 s64 r = right->diff.wdiff; in __hist_entry__cmp_compute()
1000 /* Don't sort callchain for perf diff */ in data_process()
1244 "perf diff [<options>] [old_file] [new_file]",
1370 start_line, end_line, block_he->diff.cycles); in cycles_printf()
1373 bi->start, bi->end, block_he->diff.cycles); in cycles_printf()
1389 double diff; in __hpp__color_compare() local
1407 if (pair->diff.computed) in __hpp__color_compare()
1408 diff = pair->diff.period_ratio_delta; in __hpp__color_compare()
1410 diff = compute_delta(he, pair); in __hpp__color_compare()
1414 pfmt, diff); in __hpp__color_compare()
1418 if (pair->diff.computed) in __hpp__color_compare()
1419 diff = pair->diff.period_ratio; in __hpp__color_compare()
1421 diff = compute_ratio(he, pair); in __hpp__color_compare()
1425 pfmt, diff); in __hpp__color_compare()
1429 if (pair->diff.computed) in __hpp__color_compare()
1430 wdiff = pair->diff.wdiff; in __hpp__color_compare()
1530 ret = print_cycles_spark(spark, sizeof(spark), block_he->diff.svals, in hpp__color_cycles_hist()
1531 block_he->diff.stats.n); in hpp__color_cycles_hist()
1533 r = rel_stddev_stats(stddev_stats(&block_he->diff.stats), in hpp__color_cycles_hist()
1534 avg_stats(&block_he->diff.stats)); in hpp__color_cycles_hist()
1576 double diff; in hpp__entry_pair() local
1583 if (pair->diff.computed) in hpp__entry_pair()
1584 diff = pair->diff.period_ratio_delta; in hpp__entry_pair()
1586 diff = compute_delta(he, pair); in hpp__entry_pair()
1588 scnprintf(buf, size, "%+4.2F%%", diff); in hpp__entry_pair()
1598 if (pair->diff.computed) in hpp__entry_pair()
1599 ratio = pair->diff.period_ratio; in hpp__entry_pair()
1614 if (pair->diff.computed) in hpp__entry_pair()
1615 wdiff = pair->diff.wdiff; in hpp__entry_pair()
1916 if (!strcmp(var, "diff.order")) { in diff__config()
1923 if (!strcmp(var, "diff.compute")) { in diff__config()