Home
last modified time | relevance | path

Searched refs:he (Results 1 – 25 of 25) sorted by relevance

/tools/perf/tests/
Dhists_output.c93 struct hist_entry *he; in del_hist_entries() local
108 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
110 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
111 hist_entry__delete(he); in del_hist_entries()
117 #define COMM(he) (thread__comm_str(he->thread)) argument
118 #define DSO(he) (he->ms.map->dso->short_name) argument
119 #define SYM(he) (he->ms.sym->name) argument
120 #define CPU(he) (he->cpu) argument
121 #define PID(he) (he->thread->tid) argument
128 struct hist_entry *he; in test1() local
[all …]
Dhists_common.c175 struct hist_entry *he; in print_hists_in() local
177 he = rb_entry(node, struct hist_entry, rb_node_in); in print_hists_in()
179 if (!he->filtered) { in print_hists_in()
181 i, thread__comm_str(he->thread), in print_hists_in()
182 he->ms.map->dso->short_name, in print_hists_in()
183 he->ms.sym->name, he->stat.period); in print_hists_in()
202 struct hist_entry *he; in print_hists_out() local
204 he = rb_entry(node, struct hist_entry, rb_node); in print_hists_out()
206 if (!he->filtered) { in print_hists_out()
208 i, thread__comm_str(he->thread), he->thread->tid, in print_hists_out()
[all …]
Dhists_link.c69 struct hist_entry *he; in add_hist_entries() local
90 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
92 if (he == NULL) { in add_hist_entries()
109 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
111 if (he == NULL) { in add_hist_entries()
158 struct hist_entry *he; in __validate_match() local
160 he = rb_entry(node, struct hist_entry, rb_node_in); in __validate_match()
162 if (hist_entry__has_pairs(he)) { in __validate_match()
165 he->thread, he->ms.map, he->ms.sym)) { in __validate_match()
210 struct hist_entry *he; in __validate_link() local
[all …]
Dhists_cumulate.c127 struct hist_entry *he; in del_hist_entries() local
142 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
144 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
145 hist_entry__delete(he); in del_hist_entries()
151 #define COMM(he) (thread__comm_str(he->thread)) argument
152 #define DSO(he) (he->ms.map->dso->short_name) argument
153 #define SYM(he) (he->ms.sym->name) argument
154 #define CPU(he) (he->cpu) argument
155 #define PID(he) (he->thread->tid) argument
156 #define DEPTH(he) (he->callchain->max_depth) argument
[all …]
/tools/perf/util/
Dhist.c20 struct hist_entry *he);
22 struct hist_entry *he);
24 struct hist_entry *he);
26 struct hist_entry *he);
272 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
274 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument
276 u64 prev_period = he->stat.period; in hists__decay_entry()
282 he_stat__decay(&he->stat); in hists__decay_entry()
284 he_stat__decay(he->stat_acc); in hists__decay_entry()
285 decay_callchain(he->callchain); in hists__decay_entry()
[all …]
Dsort.c84 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
87 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
90 return repsep_snprintf(bf, size, "%7d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf()
94 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() argument
101 return th && he->thread != th; in hist_entry__thread_filter()
134 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
137 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
190 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
193 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
196 static int hist_entry__dso_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__dso_filter() argument
[all …]
Dsort.h155 static inline bool hist_entry__has_pairs(struct hist_entry *he) in hist_entry__has_pairs() argument
157 return !list_empty(&he->pairs.node); in hist_entry__has_pairs()
160 static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) in hist_entry__next_pair() argument
162 if (hist_entry__has_pairs(he)) in hist_entry__next_pair()
163 return list_entry(he->pairs.node.next, struct hist_entry, pairs.node); in hist_entry__next_pair()
168 struct hist_entry *he) in hist_entry__add_pair() argument
170 list_add_tail(&pair->pairs.node, &he->pairs.head); in hist_entry__add_pair()
173 static inline float hist_entry__get_percent_limit(struct hist_entry *he) in hist_entry__get_percent_limit() argument
175 u64 period = he->stat.period; in hist_entry__get_percent_limit()
176 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
[all …]
Dhist.h113 struct hist_entry *he; member
154 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size,
156 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
158 void hist_entry__delete(struct hist_entry *he);
160 typedef int (*hists__resort_cb_t)(struct hist_entry *he);
200 void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
241 struct hist_entry *he);
243 struct hist_entry *he);
364 int hist_entry__filter(struct hist_entry *he, int type, const void *arg);
384 typedef u64 (*hpp_field_fn)(struct hist_entry *he);
[all …]
Dannotate.h166 int hist_entry__inc_addr_samples(struct hist_entry *he, struct perf_sample *sample,
Dcallchain.h251 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample);
Dannotate.c837 int hist_entry__inc_addr_samples(struct hist_entry *he, struct perf_sample *sample, in hist_entry__inc_addr_samples() argument
840 return symbol__inc_addr_samples(he->ms.sym, he->ms.map, evidx, ip, sample); in hist_entry__inc_addr_samples()
Dcallchain.c1071 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample) in hist_entry__append_callchain() argument
1076 return callchain_append(he->callchain, &callchain_cursor, sample->period); in hist_entry__append_callchain()
/tools/perf/
Dbuiltin-c2c.c64 struct hist_entry he; member
137 return &c2c_he->he; in c2c_he_zalloc()
140 static void c2c_he_free(void *he) in c2c_he_free() argument
144 c2c_he = container_of(he, struct c2c_hist_entry, he); in c2c_he_free()
165 he__get_c2c_hists(struct hist_entry *he, in he__get_c2c_hists() argument
173 c2c_he = container_of(he, struct c2c_hist_entry, he); in he__get_c2c_hists()
223 struct hist_entry *he; in process_sample_event() local
249 he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, in process_sample_event()
252 if (he == NULL) in process_sample_event()
255 c2c_he = container_of(he, struct c2c_hist_entry, he); in process_sample_event()
[all …]
Dbuiltin-diff.c232 static double period_percent(struct hist_entry *he, u64 period) in period_percent() argument
234 u64 total = hists__total_period(he->hists); in period_percent()
239 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
241 double old_percent = period_percent(he, he->stat.period); in compute_delta()
249 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
251 double old_period = he->stat.period ?: 1; in compute_ratio()
259 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument
261 u64 old_period = he->stat.period; in compute_wdiff()
271 static int formula_delta(struct hist_entry *he, struct hist_entry *pair, in formula_delta() argument
274 u64 he_total = he->hists->stats.total_period; in formula_delta()
[all …]
Dbuiltin-annotate.c155 struct hist_entry *he; in perf_evsel__add_sample() local
181 he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); in perf_evsel__add_sample()
182 if (he == NULL) in perf_evsel__add_sample()
185 ret = hist_entry__inc_addr_samples(he, sample, evsel->idx, al->addr); in perf_evsel__add_sample()
219 static int hist_entry__tty_annotate(struct hist_entry *he, in hist_entry__tty_annotate() argument
223 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, in hist_entry__tty_annotate()
235 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() local
238 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations()
241 notes = symbol__annotation(he->ms.sym); in hists__find_annotations()
253 int (*annotate)(struct hist_entry *he, in hists__find_annotations()
[all …]
Dbuiltin-top.c101 static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) in perf_top__parse_source() argument
108 if (!he || !he->ms.sym) in perf_top__parse_source()
111 sym = he->ms.sym; in perf_top__parse_source()
112 map = he->ms.map; in perf_top__parse_source()
144 top->sym_filter_entry = he; in perf_top__parse_source()
155 static void __zero_source_counters(struct hist_entry *he) in __zero_source_counters() argument
157 struct symbol *sym = he->ms.sym; in __zero_source_counters()
189 struct hist_entry *he, in perf_top__record_precise_ip() argument
194 struct symbol *sym = he->ms.sym; in perf_top__record_precise_ip()
207 err = hist_entry__inc_addr_samples(he, sample, counter, ip); in perf_top__record_precise_ip()
[all …]
Dbuiltin-report.c117 struct hist_entry *he = iter->he; in hist_iter__report_callback() local
130 bi = he->branch_info; in hist_iter__report_callback()
138 mi = he->mem_info; in hist_iter__report_callback()
143 err = hist_entry__inc_addr_samples(he, sample, evsel->idx, al->addr); in hist_iter__report_callback()
147 err = hist_entry__inc_addr_samples(he, sample, evsel->idx, in hist_iter__report_callback()
150 err = hist_entry__inc_addr_samples(he, sample, evsel->idx, al->addr); in hist_iter__report_callback()
162 struct hist_entry *he = iter->he; in hist_iter__branch_callback() local
175 bi = he->branch_info; in hist_iter__branch_callback()
/tools/perf/ui/browsers/
Dhists.c56 struct hist_entry *he = in hist_browser__get_folding() local
59 if (he->leaf && he->unfolded) in hist_browser__get_folding()
60 unfolded_rows += he->nr_rows; in hist_browser__get_folding()
143 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument
145 return he->has_children ? tree__folded_sign(he->unfolded) : ' '; in hist_entry__folded()
312 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument
319 if (he->leaf) in hierarchy_count_rows()
320 return callchain__count_rows(&he->sorted_chain); in hierarchy_count_rows()
322 if (he->has_no_entry) in hierarchy_count_rows()
325 node = rb_first(&he->hroot_out); in hierarchy_count_rows()
[all …]
Dannotate.c22 struct sym_hist_entry he; member
159 bdl->samples[i].he.period); in annotate_browser__write()
162 bdl->samples[i].he.nr_samples); in annotate_browser__write()
475 bpos->samples[i].he = sample; in annotate_browser__calc_percent()
960 int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, in hist_entry__tui_annotate() argument
967 return map_symbol__tui_annotate(&he->ms, evsel, hbt); in hist_entry__tui_annotate()
/tools/perf/ui/stdio/
Dhist.c441 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument
445 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf()
448 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf()
452 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
456 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
460 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
463 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
474 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
483 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf()
487 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
[all …]
/tools/perf/ui/gtk/
Dhists.c42 static u64 he_get_##_field(struct hist_entry *he) \
44 return he->stat._field; \
49 struct hist_entry *he) \
51 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
56 static u64 he_get_acc_##_field(struct hist_entry *he) \
58 return he->stat_acc->_field; \
63 struct hist_entry *he) \
65 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
411 struct hist_entry *he; in perf_gtk__add_hierarchy_entries() local
422 he = rb_entry(node, struct hist_entry, rb_node); in perf_gtk__add_hierarchy_entries()
[all …]
Dgtk.h63 int hist_entry__gtk_annotate(struct hist_entry *he,
Dannotate.c236 int hist_entry__gtk_annotate(struct hist_entry *he, in hist_entry__gtk_annotate() argument
240 return symbol__gtk_annotate(he->ms.sym, he->ms.map, evsel, hbt); in hist_entry__gtk_annotate()
/tools/perf/ui/
Dhist.c21 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
26 struct hists *hists = he->hists; in __hpp__fmt()
36 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
40 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
49 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt()
111 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt() argument
117 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
126 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
130 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt_acc() argument
138 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
[all …]
/tools/usb/usbip/
DCOPYING222 system; it is up to the author/donor to decide if he or she is willing