• Home
  • Raw
  • Download

Lines Matching refs:he

97 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf,  in hist_entry__thread_snprintf()  argument
100 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
103 return repsep_snprintf(bf, size, "%7d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf()
107 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() argument
114 return th && he->thread != th; in hist_entry__thread_filter()
150 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
153 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
206 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
209 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
212 static int hist_entry__dso_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__dso_filter() argument
219 return dso && (!he->ms.map || he->ms.map->dso != dso); in hist_entry__dso_filter()
325 static int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_snprintf() argument
328 return _hist_entry__sym_snprintf(he->ms.map, he->ms.sym, he->ip, in hist_entry__sym_snprintf()
329 he->level, bf, size, width); in hist_entry__sym_snprintf()
332 static int hist_entry__sym_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__sym_filter() argument
339 return sym && (!he->ms.sym || !strstr(he->ms.sym->name, sym)); in hist_entry__sym_filter()
353 char *hist_entry__srcline(struct hist_entry *he) in hist_entry__srcline() argument
355 return map__srcline(he->ms.map, he->ip, he->ms.sym); in hist_entry__srcline()
369 static int hist_entry__srcline_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_snprintf() argument
372 if (!he->srcline) in hist_entry__srcline_snprintf()
373 he->srcline = hist_entry__srcline(he); in hist_entry__srcline_snprintf()
375 return repsep_snprintf(bf, size, "%-.*s", width, he->srcline); in hist_entry__srcline_snprintf()
404 static int hist_entry__srcline_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_from_snprintf() argument
407 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_from); in hist_entry__srcline_from_snprintf()
431 static int hist_entry__srcline_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcline_to_snprintf() argument
434 return repsep_snprintf(bf, size, "%-*.*s", width, width, he->branch_info->srcline_to); in hist_entry__srcline_to_snprintf()
444 static int hist_entry__sym_ipc_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_ipc_snprintf() argument
448 struct symbol *sym = he->ms.sym; in hist_entry__sym_ipc_snprintf()
477 static int hist_entry__sym_ipc_null_snprintf(struct hist_entry *he in hist_entry__sym_ipc_null_snprintf()
531 static int hist_entry__srcfile_snprintf(struct hist_entry *he, char *bf, in hist_entry__srcfile_snprintf() argument
534 if (!he->srcfile) in hist_entry__srcfile_snprintf()
535 he->srcfile = hist_entry__get_srcfile(he); in hist_entry__srcfile_snprintf()
537 return repsep_snprintf(bf, size, "%-.*s", width, he->srcfile); in hist_entry__srcfile_snprintf()
561 static int hist_entry__parent_snprintf(struct hist_entry *he, char *bf, in hist_entry__parent_snprintf() argument
565 he->parent ? he->parent->name : "[other]"); in hist_entry__parent_snprintf()
583 static int hist_entry__cpu_snprintf(struct hist_entry *he, char *bf, in hist_entry__cpu_snprintf() argument
586 return repsep_snprintf(bf, size, "%*.*d", width, width, he->cpu); in hist_entry__cpu_snprintf()
621 static int hist_entry__cgroup_id_snprintf(struct hist_entry *he, in hist_entry__cgroup_id_snprintf() argument
625 return repsep_snprintf(bf, size, "%lu/0x%lx", he->cgroup_id.dev, in hist_entry__cgroup_id_snprintf()
626 he->cgroup_id.ino); in hist_entry__cgroup_id_snprintf()
644 static int hist_entry__socket_snprintf(struct hist_entry *he, char *bf, in hist_entry__socket_snprintf() argument
647 return repsep_snprintf(bf, size, "%*.*d", width, width-3, he->socket); in hist_entry__socket_snprintf()
650 static int hist_entry__socket_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__socket_filter() argument
657 return sk >= 0 && he->socket != sk; in hist_entry__socket_filter()
676 static int hist_entry__time_snprintf(struct hist_entry *he, char *bf, in hist_entry__time_snprintf() argument
682 timestamp__scnprintf_nsec(he->time, he_time, in hist_entry__time_snprintf()
685 timestamp__scnprintf_usec(he->time, he_time, in hist_entry__time_snprintf()
700 static char *get_trace_output(struct hist_entry *he) in get_trace_output() argument
705 .data = he->raw_data, in get_trace_output()
706 .size = he->raw_size, in get_trace_output()
709 evsel = hists_to_evsel(he->hists); in get_trace_output()
713 tep_print_fields(&seq, he->raw_data, he->raw_size, in get_trace_output()
743 static int hist_entry__trace_snprintf(struct hist_entry *he, char *bf, in hist_entry__trace_snprintf() argument
748 evsel = hists_to_evsel(he->hists); in hist_entry__trace_snprintf()
752 if (he->trace_output == NULL) in hist_entry__trace_snprintf()
753 he->trace_output = get_trace_output(he); in hist_entry__trace_snprintf()
754 return repsep_snprintf(bf, size, "%-.*s", width, he->trace_output); in hist_entry__trace_snprintf()
776 static int hist_entry__dso_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_from_snprintf() argument
779 if (he->branch_info) in hist_entry__dso_from_snprintf()
780 return _hist_entry__dso_snprintf(he->branch_info->from.map, in hist_entry__dso_from_snprintf()
786 static int hist_entry__dso_from_filter(struct hist_entry *he, int type, in hist_entry__dso_from_filter() argument
794 return dso && (!he->branch_info || !he->branch_info->from.map || in hist_entry__dso_from_filter()
795 he->branch_info->from.map->dso != dso); in hist_entry__dso_from_filter()
808 static int hist_entry__dso_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_to_snprintf() argument
811 if (he->branch_info) in hist_entry__dso_to_snprintf()
812 return _hist_entry__dso_snprintf(he->branch_info->to.map, in hist_entry__dso_to_snprintf()
818 static int hist_entry__dso_to_filter(struct hist_entry *he, int type, in hist_entry__dso_to_filter() argument
826 return dso && (!he->branch_info || !he->branch_info->to.map || in hist_entry__dso_to_filter()
827 he->branch_info->to.map->dso != dso); in hist_entry__dso_to_filter()
865 static int hist_entry__sym_from_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_from_snprintf() argument
868 if (he->branch_info) { in hist_entry__sym_from_snprintf()
869 struct addr_map_symbol *from = &he->branch_info->from; in hist_entry__sym_from_snprintf()
872 he->level, bf, size, width); in hist_entry__sym_from_snprintf()
878 static int hist_entry__sym_to_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_to_snprintf() argument
881 if (he->branch_info) { in hist_entry__sym_to_snprintf()
882 struct addr_map_symbol *to = &he->branch_info->to; in hist_entry__sym_to_snprintf()
885 he->level, bf, size, width); in hist_entry__sym_to_snprintf()
891 static int hist_entry__sym_from_filter(struct hist_entry *he, int type, in hist_entry__sym_from_filter() argument
899 return sym && !(he->branch_info && he->branch_info->from.sym && in hist_entry__sym_from_filter()
900 strstr(he->branch_info->from.sym->name, sym)); in hist_entry__sym_from_filter()
903 static int hist_entry__sym_to_filter(struct hist_entry *he, int type, in hist_entry__sym_to_filter() argument
911 return sym && !(he->branch_info && he->branch_info->to.sym && in hist_entry__sym_to_filter()
912 strstr(he->branch_info->to.sym->name, sym)); in hist_entry__sym_to_filter()
960 static int hist_entry__mispredict_snprintf(struct hist_entry *he, char *bf, in hist_entry__mispredict_snprintf() argument
964 if (he->branch_info) { in hist_entry__mispredict_snprintf()
965 if (he->branch_info->flags.predicted) in hist_entry__mispredict_snprintf()
967 else if (he->branch_info->flags.mispred) in hist_entry__mispredict_snprintf()
984 static int hist_entry__cycles_snprintf(struct hist_entry *he, char *bf, in hist_entry__cycles_snprintf() argument
987 if (!he->branch_info) in hist_entry__cycles_snprintf()
989 if (he->branch_info->flags.cycles == 0) in hist_entry__cycles_snprintf()
992 he->branch_info->flags.cycles); in hist_entry__cycles_snprintf()
1016 static int hist_entry__daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__daddr_snprintf() argument
1023 if (he->mem_info) { in hist_entry__daddr_snprintf()
1024 addr = he->mem_info->daddr.addr; in hist_entry__daddr_snprintf()
1025 map = he->mem_info->daddr.map; in hist_entry__daddr_snprintf()
1026 sym = he->mem_info->daddr.sym; in hist_entry__daddr_snprintf()
1028 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__daddr_snprintf()
1045 static int hist_entry__iaddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__iaddr_snprintf() argument
1052 if (he->mem_info) { in hist_entry__iaddr_snprintf()
1053 addr = he->mem_info->iaddr.addr; in hist_entry__iaddr_snprintf()
1054 map = he->mem_info->iaddr.map; in hist_entry__iaddr_snprintf()
1055 sym = he->mem_info->iaddr.sym; in hist_entry__iaddr_snprintf()
1057 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__iaddr_snprintf()
1075 static int hist_entry__dso_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_daddr_snprintf() argument
1080 if (he->mem_info) in hist_entry__dso_daddr_snprintf()
1081 map = he->mem_info->daddr.map; in hist_entry__dso_daddr_snprintf()
1105 static int hist_entry__locked_snprintf(struct hist_entry *he, char *bf, in hist_entry__locked_snprintf() argument
1110 perf_mem__lck_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__locked_snprintf()
1133 static int hist_entry__tlb_snprintf(struct hist_entry *he, char *bf, in hist_entry__tlb_snprintf() argument
1138 perf_mem__tlb_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__tlb_snprintf()
1161 static int hist_entry__lvl_snprintf(struct hist_entry *he, char *bf, in hist_entry__lvl_snprintf() argument
1166 perf_mem__lvl_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__lvl_snprintf()
1189 static int hist_entry__snoop_snprintf(struct hist_entry *he, char *bf, in hist_entry__snoop_snprintf() argument
1194 perf_mem__snp_scnprintf(out, sizeof(out), he->mem_info); in hist_entry__snoop_snprintf()
1262 static int hist_entry__dcacheline_snprintf(struct hist_entry *he, char *bf, in hist_entry__dcacheline_snprintf() argument
1269 char level = he->level; in hist_entry__dcacheline_snprintf()
1271 if (he->mem_info) { in hist_entry__dcacheline_snprintf()
1272 addr = cl_address(he->mem_info->daddr.al_addr); in hist_entry__dcacheline_snprintf()
1273 map = he->mem_info->daddr.map; in hist_entry__dcacheline_snprintf()
1274 sym = he->mem_info->daddr.sym; in hist_entry__dcacheline_snprintf()
1277 if ((he->cpumode != PERF_RECORD_MISC_KERNEL) && in hist_entry__dcacheline_snprintf()
1297 static u64 he_weight(struct hist_entry *he) in he_weight() argument
1299 return he->stat.nr_events ? he->stat.weight / he->stat.nr_events : 0; in he_weight()
1308 static int hist_entry__local_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__local_weight_snprintf() argument
1311 return repsep_snprintf(bf, size, "%-*llu", width, he_weight(he)); in hist_entry__local_weight_snprintf()
1327 static int hist_entry__global_weight_snprintf(struct hist_entry *he, char *bf, in hist_entry__global_weight_snprintf() argument
1330 return repsep_snprintf(bf, size, "%-*llu", width, he->stat.weight); in hist_entry__global_weight_snprintf()
1409 static int hist_entry__phys_daddr_snprintf(struct hist_entry *he, char *bf, in hist_entry__phys_daddr_snprintf() argument
1416 addr = he->mem_info->daddr.phys_addr; in hist_entry__phys_daddr_snprintf()
1418 ret += repsep_snprintf(bf + ret, size - ret, "[%c] ", he->level); in hist_entry__phys_daddr_snprintf()
1447 static int hist_entry__abort_snprintf(struct hist_entry *he, char *bf, in hist_entry__abort_snprintf() argument
1452 if (he->branch_info) { in hist_entry__abort_snprintf()
1453 if (he->branch_info->flags.abort) in hist_entry__abort_snprintf()
1479 static int hist_entry__in_tx_snprintf(struct hist_entry *he, char *bf, in hist_entry__in_tx_snprintf() argument
1484 if (he->branch_info) { in hist_entry__in_tx_snprintf()
1485 if (he->branch_info->flags.in_tx) in hist_entry__in_tx_snprintf()
1542 static int hist_entry__transaction_snprintf(struct hist_entry *he, char *bf, in hist_entry__transaction_snprintf() argument
1545 u64 t = he->transaction; in hist_entry__transaction_snprintf()
1599 static int hist_entry__sym_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_size_snprintf() argument
1602 return _hist_entry__sym_size_snprintf(he->ms.sym, bf, size, width); in hist_entry__sym_size_snprintf()
1639 static int hist_entry__dso_size_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_size_snprintf() argument
1642 return _hist_entry__dso_size_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_size_snprintf()
1786 struct hist_entry *he) in __sort__hpp_entry() argument
1794 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
1796 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
1933 int hist_entry__filter(struct hist_entry *he, int type, const void *arg) in hist_entry__filter() argument
1940 perf_hpp_list__for_each_format(he->hpp_list, fmt) { in hist_entry__filter()
1952 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2019 struct hist_entry *he) in update_dynamic_len() argument
2030 if (!he->trace_output) in update_dynamic_len()
2031 he->trace_output = get_trace_output(he); in update_dynamic_len()
2034 str = he->trace_output; in update_dynamic_len()
2102 struct hist_entry *he) in __sort__hde_entry() argument
2120 if (!he->trace_output) in __sort__hde_entry()
2121 he->trace_output = get_trace_output(he); in __sort__hde_entry()
2125 str = he->trace_output; in __sort__hde_entry()
2154 tep_print_field(&seq, he->raw_data, hde->field); in __sort__hde_entry()