Lines Matching refs:he
380 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument
384 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf()
387 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf()
391 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
395 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
399 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
402 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
413 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
422 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf()
426 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
440 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
442 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
444 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
451 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
453 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
456 static int hist_entry__hierarchy_fprintf(struct hist_entry *he, in hist_entry__hierarchy_fprintf() argument
469 if (symbol_conf.exclude_other && !he->parent) in hist_entry__hierarchy_fprintf()
472 ret = scnprintf(hpp->buf, hpp->size, "%*s", he->depth * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
490 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
492 ret = fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
494 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in hist_entry__hierarchy_fprintf()
505 perf_hpp_list__for_each_format(he->hpp_list, fmt) { in hist_entry__hierarchy_fprintf()
514 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
516 fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
526 if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { in hist_entry__hierarchy_fprintf()
529 printed += hist_entry_callchain__fprintf(he, total, 0, fp); in hist_entry__hierarchy_fprintf()
537 static int hist_entry__block_fprintf(struct hist_entry *he, in hist_entry__block_fprintf() argument
541 struct block_hist *bh = container_of(he, struct block_hist, he); in hist_entry__block_fprintf()
552 hist_entry__snprintf(he, &hpp); in hist_entry__block_fprintf()
561 static int hist_entry__fprintf(struct hist_entry *he, size_t size, in hist_entry__fprintf() argument
571 struct hists *hists = he->hists; in hist_entry__fprintf()
578 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
581 return hist_entry__block_fprintf(he, bf, size, fp); in hist_entry__fprintf()
583 hist_entry__snprintf(he, &hpp); in hist_entry__fprintf()
587 if (hist_entry__has_callchains(he) && !ignore_callchains) in hist_entry__fprintf()
588 callchain_ret = hist_entry_callchain__fprintf(he, total_period, in hist_entry__fprintf()