Home
last modified time | relevance | path

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

/tools/perf/tests/
Dhists_output.c90 struct hist_entry *he; in del_hist_entries() local
105 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
107 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
108 hist_entry__delete(he); in del_hist_entries()
114 #define COMM(he) (thread__comm_str(he->thread)) argument
115 #define DSO(he) (he->ms.map->dso->short_name) argument
116 #define SYM(he) (he->ms.sym->name) argument
117 #define CPU(he) (he->cpu) argument
118 #define PID(he) (he->thread->tid) argument
125 struct hist_entry *he; in test1() local
[all …]
Dhists_common.c172 struct hist_entry *he; in print_hists_in() local
174 he = rb_entry(node, struct hist_entry, rb_node_in); in print_hists_in()
176 if (!he->filtered) { in print_hists_in()
178 i, thread__comm_str(he->thread), in print_hists_in()
179 he->ms.map->dso->short_name, in print_hists_in()
180 he->ms.sym->name, he->stat.period); in print_hists_in()
199 struct hist_entry *he; in print_hists_out() local
201 he = rb_entry(node, struct hist_entry, rb_node); in print_hists_out()
203 if (!he->filtered) { in print_hists_out()
205 i, thread__comm_str(he->thread), he->thread->tid, in print_hists_out()
[all …]
Dhists_link.c66 struct hist_entry *he; in add_hist_entries() local
87 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
89 if (he == NULL) { in add_hist_entries()
106 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
108 if (he == NULL) { in add_hist_entries()
155 struct hist_entry *he; in __validate_match() local
157 he = rb_entry(node, struct hist_entry, rb_node_in); in __validate_match()
159 if (hist_entry__has_pairs(he)) { in __validate_match()
162 he->thread, he->ms.map, he->ms.sym)) { in __validate_match()
207 struct hist_entry *he; in __validate_link() local
[all …]
Dhists_cumulate.c124 struct hist_entry *he; in del_hist_entries() local
139 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries()
141 rb_erase(&he->rb_node_in, root_in); in del_hist_entries()
142 hist_entry__delete(he); in del_hist_entries()
148 #define COMM(he) (thread__comm_str(he->thread)) argument
149 #define DSO(he) (he->ms.map->dso->short_name) argument
150 #define SYM(he) (he->ms.sym->name) argument
151 #define CPU(he) (he->cpu) argument
152 #define PID(he) (he->thread->tid) argument
153 #define DEPTH(he) (he->callchain->max_depth) argument
[all …]
/tools/perf/util/
Dhist.c14 struct hist_entry *he);
16 struct hist_entry *he);
18 struct hist_entry *he);
20 struct hist_entry *he);
261 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
263 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument
265 u64 prev_period = he->stat.period; in hists__decay_entry()
271 he_stat__decay(&he->stat); in hists__decay_entry()
273 he_stat__decay(he->stat_acc); in hists__decay_entry()
274 decay_callchain(he->callchain); in hists__decay_entry()
[all …]
Dsort.c77 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument
80 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf()
83 return repsep_snprintf(bf, size, "%7d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf()
87 static int hist_entry__thread_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__thread_filter() argument
94 return th && he->thread != th; in hist_entry__thread_filter()
127 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument
130 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf()
183 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument
186 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
189 static int hist_entry__dso_filter(struct hist_entry *he, int type, const void *arg) in hist_entry__dso_filter() argument
[all …]
Dsort.h146 static inline bool hist_entry__has_pairs(struct hist_entry *he) in hist_entry__has_pairs() argument
148 return !list_empty(&he->pairs.node); in hist_entry__has_pairs()
151 static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) in hist_entry__next_pair() argument
153 if (hist_entry__has_pairs(he)) in hist_entry__next_pair()
154 return list_entry(he->pairs.node.next, struct hist_entry, pairs.node); in hist_entry__next_pair()
159 struct hist_entry *he) in hist_entry__add_pair() argument
161 list_add_tail(&pair->pairs.node, &he->pairs.head); in hist_entry__add_pair()
164 static inline float hist_entry__get_percent_limit(struct hist_entry *he) in hist_entry__get_percent_limit() argument
166 u64 period = he->stat.period; in hist_entry__get_percent_limit()
167 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
[all …]
Dhist.h109 struct hist_entry *he; member
150 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size,
152 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
154 void hist_entry__delete(struct hist_entry *he);
156 typedef int (*hists__resort_cb_t)(struct hist_entry *he);
196 void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
237 struct hist_entry *he);
239 struct hist_entry *he);
360 int hist_entry__filter(struct hist_entry *he, int type, const void *arg);
380 typedef u64 (*hpp_field_fn)(struct hist_entry *he);
[all …]
Dannotate.h154 int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 addr);
Dcallchain.h229 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample);
Dcallchain.c810 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample) in hist_entry__append_callchain() argument
814 return callchain_append(he->callchain, &callchain_cursor, sample->period); in hist_entry__append_callchain()
Dannotate.c708 int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 ip) in hist_entry__inc_addr_samples() argument
710 return symbol__inc_addr_samples(he->ms.sym, he->ms.map, evidx, ip); in hist_entry__inc_addr_samples()
/tools/perf/
Dbuiltin-diff.c220 static double period_percent(struct hist_entry *he, u64 period) in period_percent() argument
222 u64 total = hists__total_period(he->hists); in period_percent()
227 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument
229 double old_percent = period_percent(he, he->stat.period); in compute_delta()
237 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument
239 double old_period = he->stat.period ?: 1; in compute_ratio()
247 static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair) in compute_wdiff() argument
249 u64 old_period = he->stat.period; in compute_wdiff()
259 static int formula_delta(struct hist_entry *he, struct hist_entry *pair, in formula_delta() argument
262 u64 he_total = he->hists->stats.total_period; in formula_delta()
[all …]
Dbuiltin-annotate.c153 struct hist_entry *he; in perf_evsel__add_sample() local
182 he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); in perf_evsel__add_sample()
183 if (he == NULL) in perf_evsel__add_sample()
186 ret = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in perf_evsel__add_sample()
220 static int hist_entry__tty_annotate(struct hist_entry *he, in hist_entry__tty_annotate() argument
224 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, in hist_entry__tty_annotate()
236 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() local
239 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations()
242 notes = symbol__annotation(he->ms.sym); in hists__find_annotations()
254 int (*annotate)(struct hist_entry *he, in hists__find_annotations()
[all …]
Dbuiltin-top.c97 static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) in perf_top__parse_source() argument
104 if (!he || !he->ms.sym) in perf_top__parse_source()
107 sym = he->ms.sym; in perf_top__parse_source()
108 map = he->ms.map; in perf_top__parse_source()
140 top->sym_filter_entry = he; in perf_top__parse_source()
151 static void __zero_source_counters(struct hist_entry *he) in __zero_source_counters() argument
153 struct symbol *sym = he->ms.sym; in __zero_source_counters()
185 struct hist_entry *he, in perf_top__record_precise_ip() argument
189 struct symbol *sym = he->ms.sym; in perf_top__record_precise_ip()
202 err = hist_entry__inc_addr_samples(he, counter, ip); in perf_top__record_precise_ip()
[all …]
Dbuiltin-report.c106 struct hist_entry *he = iter->he; in hist_iter__report_callback() local
118 bi = he->branch_info; in hist_iter__report_callback()
126 mi = he->mem_info; in hist_iter__report_callback()
131 err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in hist_iter__report_callback()
135 err = hist_entry__inc_addr_samples(he, evsel->idx, in hist_iter__report_callback()
138 err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in hist_iter__report_callback()
/tools/perf/ui/browsers/
Dhists.c45 struct hist_entry *he = in hist_browser__get_folding() local
48 if (he->leaf && he->unfolded) in hist_browser__get_folding()
49 unfolded_rows += he->nr_rows; in hist_browser__get_folding()
132 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument
134 return he->has_children ? tree__folded_sign(he->unfolded) : ' '; in hist_entry__folded()
241 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument
248 if (he->leaf) in hierarchy_count_rows()
249 return callchain__count_rows(&he->sorted_chain); in hierarchy_count_rows()
251 if (he->has_no_entry) in hierarchy_count_rows()
254 node = rb_first(&he->hroot_out); in hierarchy_count_rows()
[all …]
Dannotate.c886 int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, in hist_entry__tui_annotate() argument
893 return map_symbol__tui_annotate(&he->ms, evsel, hbt); in hist_entry__tui_annotate()
/tools/perf/ui/stdio/
Dhist.c343 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument
347 u64 parent_samples = he->stat.period; in hist_entry_callchain__fprintf()
350 parent_samples = he->stat_acc->period; in hist_entry_callchain__fprintf()
354 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
358 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf()
362 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
365 return callchain__fprintf_folded(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf()
376 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
385 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf()
389 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
[all …]
/tools/perf/ui/gtk/
Dhists.c39 static u64 he_get_##_field(struct hist_entry *he) \
41 return he->stat._field; \
46 struct hist_entry *he) \
48 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
53 static u64 he_get_acc_##_field(struct hist_entry *he) \
55 return he->stat_acc->_field; \
60 struct hist_entry *he) \
62 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
408 struct hist_entry *he; in perf_gtk__add_hierarchy_entries() local
419 he = rb_entry(node, struct hist_entry, rb_node); in perf_gtk__add_hierarchy_entries()
[all …]
Dgtk.h62 int hist_entry__gtk_annotate(struct hist_entry *he,
Dannotate.c233 int hist_entry__gtk_annotate(struct hist_entry *he, in hist_entry__gtk_annotate() argument
237 return symbol__gtk_annotate(he->ms.sym, he->ms.map, evsel, hbt); in hist_entry__gtk_annotate()
/tools/perf/ui/
Dhist.c19 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
24 struct hists *hists = he->hists; in __hpp__fmt()
34 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
38 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
47 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt()
109 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt() argument
115 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
124 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
128 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt_acc() argument
136 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