Lines Matching refs:h
55 void hists__calc_col_len(struct hists *hists, struct hist_entry *h) in hists__calc_col_len() argument
66 if (h->ms.sym) { in hists__calc_col_len()
67 symlen = h->ms.sym->namelen + 4; in hists__calc_col_len()
77 len = thread__comm_len(h->thread); in hists__calc_col_len()
81 if (h->ms.map) { in hists__calc_col_len()
82 len = dso__name_len(h->ms.map->dso); in hists__calc_col_len()
86 if (h->parent) in hists__calc_col_len()
87 hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen); in hists__calc_col_len()
89 if (h->branch_info) { in hists__calc_col_len()
90 if (h->branch_info->from.sym) { in hists__calc_col_len()
91 symlen = (int)h->branch_info->from.sym->namelen + 4; in hists__calc_col_len()
96 symlen = dso__name_len(h->branch_info->from.map->dso); in hists__calc_col_len()
104 if (h->branch_info->to.sym) { in hists__calc_col_len()
105 symlen = (int)h->branch_info->to.sym->namelen + 4; in hists__calc_col_len()
110 symlen = dso__name_len(h->branch_info->to.map->dso); in hists__calc_col_len()
119 if (h->mem_info) { in hists__calc_col_len()
120 if (h->mem_info->daddr.sym) { in hists__calc_col_len()
121 symlen = (int)h->mem_info->daddr.sym->namelen + 4 in hists__calc_col_len()
132 if (h->mem_info->daddr.map) { in hists__calc_col_len()
133 symlen = dso__name_len(h->mem_info->daddr.map->dso); in hists__calc_col_len()
153 if (h->srcline) in hists__calc_col_len()
154 hists__new_col_len(hists, HISTC_SRCLINE, strlen(h->srcline)); in hists__calc_col_len()
156 if (h->transaction) in hists__calc_col_len()
1084 static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) in hists__inc_filter_stats() argument
1087 hists->stats.total_non_filtered_period += h->stat.period; in hists__inc_filter_stats()
1090 void hists__inc_stats(struct hists *hists, struct hist_entry *h) in hists__inc_stats() argument
1092 if (!h->filtered) in hists__inc_stats()
1093 hists__inc_filter_stats(hists, h); in hists__inc_stats()
1096 hists->stats.total_period += h->stat.period; in hists__inc_stats()
1157 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, in hists__remove_entry_filter() argument
1160 h->filtered &= ~(1 << filter); in hists__remove_entry_filter()
1161 if (h->filtered) in hists__remove_entry_filter()
1165 h->ms.unfolded = false; in hists__remove_entry_filter()
1166 h->row_offset = 0; in hists__remove_entry_filter()
1168 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter()
1170 hists__inc_filter_stats(hists, h); in hists__remove_entry_filter()
1171 hists__calc_col_len(hists, h); in hists__remove_entry_filter()
1197 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_dso() local
1199 if (symbol_conf.exclude_other && !h->parent) in hists__filter_by_dso()
1202 if (hists__filter_entry_by_dso(hists, h)) in hists__filter_by_dso()
1205 hists__remove_entry_filter(hists, h, HIST_FILTER__DSO); in hists__filter_by_dso()
1231 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_thread() local
1233 if (hists__filter_entry_by_thread(hists, h)) in hists__filter_by_thread()
1236 hists__remove_entry_filter(hists, h, HIST_FILTER__THREAD); in hists__filter_by_thread()
1263 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_symbol() local
1265 if (hists__filter_entry_by_symbol(hists, h)) in hists__filter_by_symbol()
1268 hists__remove_entry_filter(hists, h, HIST_FILTER__SYMBOL); in hists__filter_by_symbol()