• Home
  • Raw
  • Download

Lines Matching refs:he

232 static double period_percent(struct hist_entry *he, u64 period)  in period_percent()  argument
234 u64 total = hists__total_period(he->hists); in period_percent()
239 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
241 double old_percent = period_percent(he, he->stat.period); in compute_delta()
249 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
251 double old_period = he->stat.period ?: 1; in compute_ratio()
259 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument
261 u64 old_period = he->stat.period; in compute_wdiff()
271 static int formula_delta(struct hist_entry *he, struct hist_entry *pair, in formula_delta() argument
274 u64 he_total = he->hists->stats.total_period; in formula_delta()
278 he_total = he->hists->stats.total_non_filtered_period; in formula_delta()
285 he->stat.period, he_total); in formula_delta()
288 static int formula_ratio(struct hist_entry *he, struct hist_entry *pair, in formula_ratio() argument
291 double old_period = he->stat.period; in formula_ratio()
297 static int formula_wdiff(struct hist_entry *he, struct hist_entry *pair, in formula_wdiff() argument
300 u64 old_period = he->stat.period; in formula_wdiff()
308 static int formula_fprintf(struct hist_entry *he, struct hist_entry *pair, in formula_fprintf() argument
314 return formula_delta(he, pair, buf, size); in formula_fprintf()
316 return formula_ratio(he, pair, buf, size); in formula_fprintf()
318 return formula_wdiff(he, pair, buf, size); in formula_fprintf()
409 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
411 if (hist_entry__has_pairs(he)) { in get_pair_data()
414 list_for_each_entry(pair, &he->pairs.head, pairs.node) in get_pair_data()
423 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
427 return get_pair_data(he, d); in get_pair_fmt()
442 struct hist_entry *he = rb_entry(next, struct hist_entry, rb_node_in); in hists__baseline_only() local
444 next = rb_next(&he->rb_node_in); in hists__baseline_only()
445 if (!hist_entry__next_pair(he)) { in hists__baseline_only()
446 rb_erase(&he->rb_node_in, root); in hists__baseline_only()
447 hist_entry__delete(he); in hists__baseline_only()
464 struct hist_entry *he, *pair; in hists__precompute() local
468 he = rb_entry(next, struct hist_entry, rb_node_in); in hists__precompute()
469 next = rb_next(&he->rb_node_in); in hists__precompute()
472 pair = get_pair_data(he, d); in hists__precompute()
479 compute_delta(he, pair); in hists__precompute()
482 compute_ratio(he, pair); in hists__precompute()
485 compute_wdiff(he, pair); in hists__precompute()
855 static double baseline_percent(struct hist_entry *he) in baseline_percent() argument
857 u64 total = hists__total_period(he->hists); in baseline_percent()
859 return 100.0 * he->stat.period / total; in baseline_percent()
863 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_baseline() argument
867 double percent = baseline_percent(he); in hpp__color_baseline()
870 if (!he->dummy) { in hpp__color_baseline()
879 static int hpp__entry_baseline(struct hist_entry *he, char *buf, size_t size) in hpp__entry_baseline() argument
881 double percent = baseline_percent(he); in hpp__entry_baseline()
885 if (!he->dummy) in hpp__entry_baseline()
892 struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_compare() argument
897 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
910 diff = compute_delta(he, pair); in __hpp__color_compare()
916 if (he->dummy) in __hpp__color_compare()
921 diff = compute_ratio(he, pair); in __hpp__color_compare()
927 if (he->dummy) in __hpp__color_compare()
932 wdiff = compute_wdiff(he, pair); in __hpp__color_compare()
950 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_delta() argument
952 return __hpp__color_compare(fmt, hpp, he, COMPUTE_DELTA); in hpp__color_delta()
956 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_ratio() argument
958 return __hpp__color_compare(fmt, hpp, he, COMPUTE_RATIO); in hpp__color_ratio()
962 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_wdiff() argument
964 return __hpp__color_compare(fmt, hpp, he, COMPUTE_WEIGHTED_DIFF); in hpp__color_wdiff()
968 hpp__entry_unpair(struct hist_entry *he, int idx, char *buf, size_t size) in hpp__entry_unpair() argument
972 scnprintf(buf, size, "%" PRIu64, he->stat.period); in hpp__entry_unpair()
981 hpp__entry_pair(struct hist_entry *he, struct hist_entry *pair, in hpp__entry_pair() argument
994 diff = compute_delta(he, pair); in hpp__entry_pair()
1001 if (he->dummy) { in hpp__entry_pair()
1009 ratio = compute_ratio(he, pair); in hpp__entry_pair()
1017 if (he->dummy) { in hpp__entry_pair()
1025 wdiff = compute_wdiff(he, pair); in hpp__entry_pair()
1032 formula_fprintf(he, pair, buf, size); in hpp__entry_pair()
1045 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1048 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1053 hpp__entry_baseline(he, buf, size); in __hpp__entry_global()
1056 hpp__entry_pair(he, pair, idx, buf, size); in __hpp__entry_global()
1058 hpp__entry_unpair(he, idx, buf, size); in __hpp__entry_global()
1063 struct hist_entry *he) in hpp__entry_global() argument
1069 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()