Lines Matching full:he
114 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
117 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
120 return repsep_snprintf(bf, size, "%7d:%-*.*s", thread__tid(he->thread), in hist_entry__thread_snprintf()
124 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() argument
131 return th && RC_CHK_ACCESS(he->thread) != RC_CHK_ACCESS(th); in hist_entry__thread_filter()
163 static int hist_entry__simd_snprintf(struct hist_entry *he, char *bf, in hist_entry__simd_snprintf() argument
168 if (!he->simd_flags.arch) in hist_entry__simd_snprintf()
171 name = hist_entry__get_simd_name(&he->simd_flags); in hist_entry__simd_snprintf()
173 if (he->simd_flags.pred & SIMD_OP_FLAGS_PRED_EMPTY) in hist_entry__simd_snprintf()
175 else if (he->simd_flags.pred & SIMD_OP_FLAGS_PRED_PARTIAL) in hist_entry__simd_snprintf()
213 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
216 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
269 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
272 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
275 static int hist_entry__dso_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__dso_filter() argument
282 return dso && (!he->ms.map || map__dso(he->ms.map) != dso); in hist_entry__dso_filter()
396 int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, size_t size, unsigned int width) in hist_entry__sym_snprintf() argument
398 return _hist_entry__sym_snprintf(&he->ms, he->ip, in hist_entry__sym_snprintf()
399 he->level, bf, size, width); in hist_entry__sym_snprintf()
402 static int hist_entry__sym_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__sym_filter() argument
409 return sym && (!he->ms.sym || !strstr(he->ms.sym->name, sym)); in hist_entry__sym_filter()
423 char *hist_entry__srcline(struct hist_entry *he) in hist_entry__srcline() argument
425 return map__srcline(he->ms.map, he->ip, he->ms.sym); in hist_entry__srcline()
458 sort__srcline_init(struct hist_entry *he) in sort__srcline_init() argument
460 if (!he->srcline) in sort__srcline_init()
461 he->srcline = hist_entry__srcline(he); in sort__srcline_init()
464 static int hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_snprintf() argument
467 return repsep_snprintf(bf, size, "%-.*s", width, he->srcline); in hist_entry__srcline_snprintf()
511 static void sort__srcline_from_init(struct hist_entry *he) in sort__srcline_from_init() argument
513 if (!he->branch_info->srcline_from) in sort__srcline_from_init()
514 he->branch_info->srcline_from = addr_map_symbol__srcline(&he->branch_info->from); in sort__srcline_from_init()
517 static int hist_entry__srcline_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_from_snprintf() argument
520 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_from); in hist_entry__srcline_from_snprintf()
559 static void sort__srcline_to_init(struct hist_entry *he) in sort__srcline_to_init() argument
561 if (!he->branch_info->srcline_to) in sort__srcline_to_init()
562 he->branch_info->srcline_to = addr_map_symbol__srcline(&he->branch_info->to); in sort__srcline_to_init()
565 static int hist_entry__srcline_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_to_snprintf() argument
568 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_to); in hist_entry__srcline_to_snprintf()
581 static int hist_entry__sym_ipc_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_ipc_snprintf() argument
585 struct symbol *sym = he->ms.sym; in hist_entry__sym_ipc_snprintf()
614 static int hist_entry__sym_ipc_null_snprintf(struct hist_entry *he in hist_entry__sym_ipc_null_snprintf()
680 static void sort__srcfile_init(struct hist_entry *he) in sort__srcfile_init() argument
682 if (!he->srcfile) in sort__srcfile_init()
683 he->srcfile = hist_entry__get_srcfile(he); in sort__srcfile_init()
686 static int hist_entry__srcfile_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcfile_snprintf() argument
689 return repsep_snprintf(bf, size, "%-.*s", width, he->srcfile); in hist_entry__srcfile_snprintf()
716 static int hist_entry__parent_snprintf(struct hist_entry *he, char *bf, in hist_entry__parent_snprintf() argument
720 he->parent ? he->parent->name : "[other]"); in hist_entry__parent_snprintf()
738 static int hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, in hist_entry__cpu_snprintf() argument
741 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); in hist_entry__cpu_snprintf()
776 static int hist_entry__cgroup_id_snprintf(struct hist_entry *he, in hist_entry__cgroup_id_snprintf() argument
780 return repsep_snprintf(bf, size, "%lu/0x%lx", he->cgroup_id.dev, in hist_entry__cgroup_id_snprintf()
781 he->cgroup_id.ino); in hist_entry__cgroup_id_snprintf()
799 static int hist_entry__cgroup_snprintf(struct hist_entry *he, in hist_entry__cgroup_snprintf() argument
805 if (he->cgroup) { in hist_entry__cgroup_snprintf()
806 struct cgroup *cgrp = cgroup__find(maps__machine(he->ms.maps)->env, in hist_entry__cgroup_snprintf()
807 he->cgroup); in hist_entry__cgroup_snprintf()
832 static int hist_entry__socket_snprintf(struct hist_entry *he, char *bf, in hist_entry__socket_snprintf() argument
835 return repsep_snprintf(bf, size, "%*.*d", width, width-3, he->socket); in hist_entry__socket_snprintf()
838 static int hist_entry__socket_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__socket_filter() argument
845 return sk >= 0 && he->socket != sk; in hist_entry__socket_filter()
864 static int hist_entry__time_snprintf(struct hist_entry *he, char *bf, in hist_entry__time_snprintf() argument
870 timestamp__scnprintf_nsec(he->time, he_time, in hist_entry__time_snprintf()
873 timestamp__scnprintf_usec(he->time, he_time, in hist_entry__time_snprintf()
889 static char *get_trace_output(struct hist_entry *he) in get_trace_output() argument
894 .data = he->raw_data, in get_trace_output()
895 .size = he->raw_size, in get_trace_output()
898 evsel = hists_to_evsel(he->hists); in get_trace_output()
902 tep_print_fields(&seq, he->raw_data, he->raw_size, in get_trace_output()
932 static int hist_entry__trace_snprintf(struct hist_entry *he, char *bf, in hist_entry__trace_snprintf() argument
937 evsel = hists_to_evsel(he->hists); in hist_entry__trace_snprintf()
941 if (he->trace_output == NULL) in hist_entry__trace_snprintf()
942 he->trace_output = get_trace_output(he); in hist_entry__trace_snprintf()
943 return repsep_snprintf(bf, size, "%-.*s", width, he->trace_output); in hist_entry__trace_snprintf()
966 static int hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_from_snprintf() argument
969 if (he->branch_info) in hist_entry__dso_from_snprintf()
970 return _hist_entry__dso_snprintf(he->branch_info->from.ms.map, in hist_entry__dso_from_snprintf()
976 static int hist_entry__dso_from_filter(struct hist_entry *he, int type, in hist_entry__dso_from_filter() argument
984 return dso && (!he->branch_info || !he->branch_info->from.ms.map || in hist_entry__dso_from_filter()
985 map__dso(he->branch_info->from.ms.map) != dso); in hist_entry__dso_from_filter()
998 static int hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_to_snprintf() argument
1001 if (he->branch_info) in hist_entry__dso_to_snprintf()
1002 return _hist_entry__dso_snprintf(he->branch_info->to.ms.map, in hist_entry__dso_to_snprintf()
1008 static int hist_entry__dso_to_filter(struct hist_entry *he, int type, in hist_entry__dso_to_filter() argument
1016 return dso && (!he->branch_info || !he->branch_info->to.ms.map || in hist_entry__dso_to_filter()
1017 map__dso(he->branch_info->to.ms.map) != dso); in hist_entry__dso_to_filter()
1054 static int hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_from_snprintf() argument
1057 if (he->branch_info) { in hist_entry__sym_from_snprintf()
1058 struct addr_map_symbol *from = &he->branch_info->from; in hist_entry__sym_from_snprintf()
1067 static int hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_to_snprintf() argument
1070 if (he->branch_info) { in hist_entry__sym_to_snprintf()
1071 struct addr_map_symbol *to = &he->branch_info->to; in hist_entry__sym_to_snprintf()
1080 static int hist_entry__sym_from_filter(struct hist_entry *he, int type, in hist_entry__sym_from_filter() argument
1088 return sym && !(he->branch_info && he->branch_info->from.ms.sym && in hist_entry__sym_from_filter()
1089 strstr(he->branch_info->from.ms.sym->name, sym)); in hist_entry__sym_from_filter()
1092 static int hist_entry__sym_to_filter(struct hist_entry *he, int type, in hist_entry__sym_to_filter() argument
1100 return sym && !(he->branch_info && he->branch_info->to.ms.sym && in hist_entry__sym_to_filter()
1101 strstr(he->branch_info->to.ms.sym->name, sym)); in hist_entry__sym_to_filter()
1167 static int hist_entry__addr_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_from_snprintf() argument
1170 if (he->branch_info) { in hist_entry__addr_from_snprintf()
1171 struct addr_map_symbol *from = &he->branch_info->from; in hist_entry__addr_from_snprintf()
1174 he->level, bf, size, width); in hist_entry__addr_from_snprintf()
1180 static int hist_entry__addr_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_to_snprintf() argument
1183 if (he->branch_info) { in hist_entry__addr_to_snprintf()
1184 struct addr_map_symbol *to = &he->branch_info->to; in hist_entry__addr_to_snprintf()
1187 he->level, bf, size, width); in hist_entry__addr_to_snprintf()
1271 static int hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, in hist_entry__mispredict_snprintf() argument
1275 if (he->branch_info) { in hist_entry__mispredict_snprintf()
1276 if (he->branch_info->flags.predicted) in hist_entry__mispredict_snprintf()
1278 else if (he->branch_info->flags.mispred) in hist_entry__mispredict_snprintf()
1295 static int hist_entry__cycles_snprintf(struct hist_entry *he, char *bf, in hist_entry__cycles_snprintf() argument
1298 if (!he->branch_info) in hist_entry__cycles_snprintf()
1300 if (he->branch_info->flags.cycles == 0) in hist_entry__cycles_snprintf()
1303 he->branch_info->flags.cycles); in hist_entry__cycles_snprintf()
1327 static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__daddr_snprintf() argument
1333 if (he->mem_info) { in hist_entry__daddr_snprintf()
1334 addr = he->mem_info->daddr.addr; in hist_entry__daddr_snprintf()
1335 ms = &he->mem_info->daddr.ms; in hist_entry__daddr_snprintf()
1337 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__daddr_snprintf()
1353 static int hist_entry__iaddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__iaddr_snprintf() argument
1359 if (he->mem_info) { in hist_entry__iaddr_snprintf()
1360 addr = he->mem_info->iaddr.addr; in hist_entry__iaddr_snprintf()
1361 ms = &he->mem_info->iaddr.ms; in hist_entry__iaddr_snprintf()
1363 return _hist_entry__sym_snprintf(ms, addr, he->level, bf, size, width); in hist_entry__iaddr_snprintf()
1380 static int hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_daddr_snprintf() argument
1385 if (he->mem_info) in hist_entry__dso_daddr_snprintf()
1386 map = he->mem_info->daddr.ms.map; in hist_entry__dso_daddr_snprintf()
1410 static int hist_entry__locked_snprintf(struct hist_entry *he, char *bf, in hist_entry__locked_snprintf() argument
1415 perf_mem__lck_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__locked_snprintf()
1438 static int hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, in hist_entry__tlb_snprintf() argument
1443 perf_mem__tlb_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__tlb_snprintf()
1466 static int hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, in hist_entry__lvl_snprintf() argument
1471 perf_mem__lvl_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__lvl_snprintf()
1494 static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, in hist_entry__snoop_snprintf() argument
1499 perf_mem__snp_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__snoop_snprintf()
1563 static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, in hist_entry__dcacheline_snprintf() argument
1569 char level = he->level; in hist_entry__dcacheline_snprintf()
1571 if (he->mem_info) { in hist_entry__dcacheline_snprintf()
1572 struct map *map = he->mem_info->daddr.ms.map; in hist_entry__dcacheline_snprintf()
1575 addr = cl_address(he->mem_info->daddr.al_addr, chk_double_cl); in hist_entry__dcacheline_snprintf()
1576 ms = &he->mem_info->daddr.ms; in hist_entry__dcacheline_snprintf()
1579 if ((he->cpumode != PERF_RECORD_MISC_KERNEL) && in hist_entry__dcacheline_snprintf()
1603 static int hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_weight_snprintf() argument
1606 return repsep_snprintf(bf, size, "%-*llu", width, he->weight); in hist_entry__local_weight_snprintf()
1616 static int hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_weight_snprintf() argument
1620 he->weight * he->stat.nr_events); in hist_entry__global_weight_snprintf()
1636 static int hist_entry__local_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_ins_lat_snprintf() argument
1639 return repsep_snprintf(bf, size, "%-*u", width, he->ins_lat); in hist_entry__local_ins_lat_snprintf()
1649 static int hist_entry__global_ins_lat_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_ins_lat_snprintf() argument
1653 he->ins_lat * he->stat.nr_events); in hist_entry__global_ins_lat_snprintf()
1669 static int hist_entry__global_p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_p_stage_cyc_snprintf() argument
1673 he->p_stage_cyc * he->stat.nr_events); in hist_entry__global_p_stage_cyc_snprintf()
1677 static int hist_entry__p_stage_cyc_snprintf(struct hist_entry *he, char *bf, in hist_entry__p_stage_cyc_snprintf() argument
1680 return repsep_snprintf(bf, size, "%-*u", width, he->p_stage_cyc); in hist_entry__p_stage_cyc_snprintf()
1772 static int hist_entry__blocked_snprintf(struct hist_entry *he, char *bf, in hist_entry__blocked_snprintf() argument
1777 perf_mem__blk_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__blocked_snprintf()
1801 static int hist_entry__phys_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__phys_daddr_snprintf() argument
1808 addr = he->mem_info->daddr.phys_addr; in hist_entry__phys_daddr_snprintf()
1810 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", he->level); in hist_entry__phys_daddr_snprintf()
1842 static int hist_entry__data_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__data_page_size_snprintf() argument
1848 get_page_size_name(he->mem_info->daddr.data_page_size, str)); in hist_entry__data_page_size_snprintf()
1867 static int hist_entry__code_page_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__code_page_size_snprintf() argument
1873 get_page_size_name(he->code_page_size, str)); in hist_entry__code_page_size_snprintf()
1893 static int hist_entry__abort_snprintf(struct hist_entry *he, char *bf, in hist_entry__abort_snprintf() argument
1898 if (he->branch_info) { in hist_entry__abort_snprintf()
1899 if (he->branch_info->flags.abort) in hist_entry__abort_snprintf()
1925 static int hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, in hist_entry__in_tx_snprintf() argument
1930 if (he->branch_info) { in hist_entry__in_tx_snprintf()
1931 if (he->branch_info->flags.in_tx) in hist_entry__in_tx_snprintf()
1988 static int hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, in hist_entry__transaction_snprintf() argument
1991 u64 t = he->transaction; in hist_entry__transaction_snprintf()
2045 static int hist_entry__sym_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_size_snprintf() argument
2048 return _hist_entry__sym_size_snprintf(he->ms.sym, bf, size, width); in hist_entry__sym_size_snprintf()
2084 static int hist_entry__dso_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_size_snprintf() argument
2087 return _hist_entry__dso_size_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_size_snprintf()
2115 static int hist_entry__addr_snprintf(struct hist_entry *he, char *bf, in hist_entry__addr_snprintf() argument
2118 u64 ip = he->ip; in hist_entry__addr_snprintf()
2119 struct map *map = he->ms.map; in hist_entry__addr_snprintf()
2299 struct hist_entry *he) in __sort__hpp_entry() argument
2307 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
2309 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2398 static void hse_init(struct perf_hpp_fmt *fmt, struct hist_entry *he) in hse_init() argument
2408 hse->se->se_init(he); in hse_init()
2467 int hist_entry__filter(struct hist_entry *he, int type, const void *arg) in hist_entry__filter() argument
2474 perf_hpp_list__for_each_format(he->hpp_list, fmt) { in hist_entry__filter()
2486 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2564 struct hist_entry *he) in update_dynamic_len() argument
2575 if (!he->trace_output) in update_dynamic_len()
2576 he->trace_output = get_trace_output(he); in update_dynamic_len()
2579 str = he->trace_output; in update_dynamic_len()
2647 struct hist_entry *he) in __sort__hde_entry() argument
2665 if (!he->trace_output) in __sort__hde_entry()
2666 he->trace_output = get_trace_output(he); in __sort__hde_entry()
2670 str = he->trace_output; in __sort__hde_entry()
2699 tep_print_field(&seq, he->raw_data, hde->field); in __sort__hde_entry()
2764 static void __sort__hde_init(struct perf_hpp_fmt *fmt, struct hist_entry *he) in __sort__hde_init() argument
2772 update_dynamic_len(hde, he); in __sort__hde_init()