Lines Matching refs:he

381 static size_t hist_entry_callchain__fprintf(struct hist_entry *he,  in hist_entry_callchain__fprintf()  argument
385 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf()
388 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf()
392 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
396 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
400 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
403 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
414 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
423 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf()
427 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
441 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
443 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
445 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
452 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
454 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
457 static int hist_entry__hierarchy_fprintf(struct hist_entry *he, in hist_entry__hierarchy_fprintf() argument
470 if (symbol_conf.exclude_other && !he->parent) in hist_entry__hierarchy_fprintf()
473 ret = scnprintf(hpp->buf, hpp->size, "%*s", he->depth * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
491 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
493 ret = fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
495 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in hist_entry__hierarchy_fprintf()
506 perf_hpp_list__for_each_format(he->hpp_list, fmt) { in hist_entry__hierarchy_fprintf()
515 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
517 fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
527 if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { in hist_entry__hierarchy_fprintf()
530 printed += hist_entry_callchain__fprintf(he, total, 0, fp); in hist_entry__hierarchy_fprintf()
538 static int hist_entry__block_fprintf(struct hist_entry *he, in hist_entry__block_fprintf() argument
542 struct block_hist *bh = container_of(he, struct block_hist, he); in hist_entry__block_fprintf()
553 hist_entry__snprintf(he, &hpp); in hist_entry__block_fprintf()
562 static int hist_entry__individual_block_fprintf(struct hist_entry *he, in hist_entry__individual_block_fprintf() argument
574 hist_entry__snprintf(he, &hpp); in hist_entry__individual_block_fprintf()
581 static int hist_entry__fprintf(struct hist_entry *he, size_t size, in hist_entry__fprintf() argument
591 struct hists *hists = he->hists; in hist_entry__fprintf()
598 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
601 return hist_entry__block_fprintf(he, bf, size, fp); in hist_entry__fprintf()
604 return hist_entry__individual_block_fprintf(he, bf, size, fp); in hist_entry__fprintf()
606 hist_entry__snprintf(he, &hpp); in hist_entry__fprintf()
610 if (hist_entry__has_callchains(he) && !ignore_callchains) in hist_entry__fprintf()
611 callchain_ret = hist_entry_callchain__fprintf(he, total_period, in hist_entry__fprintf()