Lines Matching refs:he

69 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf,  in hist_entry__thread_snprintf()  argument
72 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
75 return repsep_snprintf(bf, size, "%5d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf()
108 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
111 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
163 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
166 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
268 static int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_snprintf() argument
271 return _hist_entry__sym_snprintf(he->ms.map, he->ms.sym, he->ip, in hist_entry__sym_snprintf()
272 he->level, bf, size, width); in hist_entry__sym_snprintf()
311 static int hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_snprintf() argument
314 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->srcline); in hist_entry__srcline_snprintf()
338 static int hist_entry__parent_snprintf(struct hist_entry *he, char *bf, in hist_entry__parent_snprintf() argument
342 he->parent ? he->parent->name : "[other]"); in hist_entry__parent_snprintf()
360 static int hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, in hist_entry__cpu_snprintf() argument
363 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); in hist_entry__cpu_snprintf()
385 static int hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_from_snprintf() argument
388 if (he->branch_info) in hist_entry__dso_from_snprintf()
389 return _hist_entry__dso_snprintf(he->branch_info->from.map, in hist_entry__dso_from_snprintf()
405 static int hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_to_snprintf() argument
408 if (he->branch_info) in hist_entry__dso_to_snprintf()
409 return _hist_entry__dso_snprintf(he->branch_info->to.map, in hist_entry__dso_to_snprintf()
450 static int hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_from_snprintf() argument
453 if (he->branch_info) { in hist_entry__sym_from_snprintf()
454 struct addr_map_symbol *from = &he->branch_info->from; in hist_entry__sym_from_snprintf()
457 he->level, bf, size, width); in hist_entry__sym_from_snprintf()
463 static int hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_to_snprintf() argument
466 if (he->branch_info) { in hist_entry__sym_to_snprintf()
467 struct addr_map_symbol *to = &he->branch_info->to; in hist_entry__sym_to_snprintf()
470 he->level, bf, size, width); in hist_entry__sym_to_snprintf()
517 static int hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, in hist_entry__mispredict_snprintf() argument
521 if (he->branch_info) { in hist_entry__mispredict_snprintf()
522 if (he->branch_info->flags.predicted) in hist_entry__mispredict_snprintf()
524 else if (he->branch_info->flags.mispred) in hist_entry__mispredict_snprintf()
545 static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__daddr_snprintf() argument
552 if (he->mem_info) { in hist_entry__daddr_snprintf()
553 addr = he->mem_info->daddr.addr; in hist_entry__daddr_snprintf()
554 map = he->mem_info->daddr.map; in hist_entry__daddr_snprintf()
555 sym = he->mem_info->daddr.sym; in hist_entry__daddr_snprintf()
557 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__daddr_snprintf()
575 static int hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_daddr_snprintf() argument
580 if (he->mem_info) in hist_entry__dso_daddr_snprintf()
581 map = he->mem_info->daddr.map; in hist_entry__dso_daddr_snprintf()
605 static int hist_entry__locked_snprintf(struct hist_entry *he, char *bf, in hist_entry__locked_snprintf() argument
611 if (he->mem_info) in hist_entry__locked_snprintf()
612 mask = he->mem_info->data_src.mem_lock; in hist_entry__locked_snprintf()
654 static int hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, in hist_entry__tlb_snprintf() argument
665 if (he->mem_info) in hist_entry__tlb_snprintf()
666 m = he->mem_info->data_src.mem_dtlb; in hist_entry__tlb_snprintf()
731 static int hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, in hist_entry__lvl_snprintf() argument
740 if (he->mem_info) in hist_entry__lvl_snprintf()
741 m = he->mem_info->data_src.mem_lvl; in hist_entry__lvl_snprintf()
799 static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, in hist_entry__snoop_snprintf() argument
809 if (he->mem_info) in hist_entry__snoop_snprintf()
810 m = he->mem_info->data_src.mem_snoop; in hist_entry__snoop_snprintf()
899 static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, in hist_entry__dcacheline_snprintf() argument
906 char level = he->level; in hist_entry__dcacheline_snprintf()
908 if (he->mem_info) { in hist_entry__dcacheline_snprintf()
909 addr = cl_address(he->mem_info->daddr.al_addr); in hist_entry__dcacheline_snprintf()
910 map = he->mem_info->daddr.map; in hist_entry__dcacheline_snprintf()
911 sym = he->mem_info->daddr.sym; in hist_entry__dcacheline_snprintf()
914 if ((he->cpumode != PERF_RECORD_MISC_KERNEL) && in hist_entry__dcacheline_snprintf()
934 static u64 he_weight(struct hist_entry *he) in he_weight() argument
936 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; in he_weight()
945 static int hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_weight_snprintf() argument
948 return repsep_snprintf(bf, size, "%-*llu", width, he_weight(he)); in hist_entry__local_weight_snprintf()
964 static int hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_weight_snprintf() argument
967 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); in hist_entry__global_weight_snprintf()
1036 static int hist_entry__abort_snprintf(struct hist_entry *he, char *bf, in hist_entry__abort_snprintf() argument
1041 if (he->branch_info) { in hist_entry__abort_snprintf()
1042 if (he->branch_info->flags.abort) in hist_entry__abort_snprintf()
1068 static int hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, in hist_entry__in_tx_snprintf() argument
1073 if (he->branch_info) { in hist_entry__in_tx_snprintf()
1074 if (he->branch_info->flags.in_tx) in hist_entry__in_tx_snprintf()
1131 static int hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, in hist_entry__transaction_snprintf() argument
1134 u64 t = he->transaction; in hist_entry__transaction_snprintf()
1294 struct hist_entry *he) in __sort__hpp_entry() argument
1302 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
1304 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()