/tools/perf/tests/ |
D | hists_output.c | 91 struct hist_entry *he; in del_hist_entries() local 106 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 108 rb_erase(&he->rb_node_in, root_in); in del_hist_entries() 109 hist_entry__free(he); in del_hist_entries() 115 #define COMM(he) (thread__comm_str(he->thread)) argument 116 #define DSO(he) (he->ms.map->dso->short_name) argument 117 #define SYM(he) (he->ms.sym->name) argument 118 #define CPU(he) (he->cpu) argument 119 #define PID(he) (he->thread->tid) argument 126 struct hist_entry *he; in test1() local [all …]
|
D | hists_common.c | 167 struct hist_entry *he; in print_hists_in() local 169 he = rb_entry(node, struct hist_entry, rb_node_in); in print_hists_in() 171 if (!he->filtered) { in print_hists_in() 173 i, thread__comm_str(he->thread), in print_hists_in() 174 he->ms.map->dso->short_name, in print_hists_in() 175 he->ms.sym->name, he->stat.period); in print_hists_in() 194 struct hist_entry *he; in print_hists_out() local 196 he = rb_entry(node, struct hist_entry, rb_node); in print_hists_out() 198 if (!he->filtered) { in print_hists_out() 200 i, thread__comm_str(he->thread), he->thread->tid, in print_hists_out() [all …]
|
D | hists_cumulate.c | 125 struct hist_entry *he; in del_hist_entries() local 140 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 142 rb_erase(&he->rb_node_in, root_in); in del_hist_entries() 143 hist_entry__free(he); in del_hist_entries() 149 #define COMM(he) (thread__comm_str(he->thread)) argument 150 #define DSO(he) (he->ms.map->dso->short_name) argument 151 #define SYM(he) (he->ms.sym->name) argument 152 #define CPU(he) (he->cpu) argument 153 #define PID(he) (he->thread->tid) argument 154 #define DEPTH(he) (he->callchain->max_depth) argument [all …]
|
D | hists_link.c | 66 struct hist_entry *he; in add_hist_entries() local 92 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries() 94 if (he == NULL) in add_hist_entries() 116 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries() 118 if (he == NULL) in add_hist_entries() 163 struct hist_entry *he; in __validate_match() local 165 he = rb_entry(node, struct hist_entry, rb_node_in); in __validate_match() 167 if (hist_entry__has_pairs(he)) { in __validate_match() 170 he->thread, he->ms.map, he->ms.sym)) { in __validate_match() 215 struct hist_entry *he; in __validate_link() local [all …]
|
/tools/perf/util/ |
D | hist.c | 12 struct hist_entry *he); 14 struct hist_entry *he); 16 struct hist_entry *he); 225 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument 227 u64 prev_period = he->stat.period; in hists__decay_entry() 233 he_stat__decay(&he->stat); in hists__decay_entry() 235 he_stat__decay(he->stat_acc); in hists__decay_entry() 237 diff = prev_period - he->stat.period; in hists__decay_entry() 240 if (!he->filtered) in hists__decay_entry() 243 return he->stat.period == 0; in hists__decay_entry() [all …]
|
D | sort.h | 117 static inline bool hist_entry__has_pairs(struct hist_entry *he) in hist_entry__has_pairs() argument 119 return !list_empty(&he->pairs.node); in hist_entry__has_pairs() 122 static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he) in hist_entry__next_pair() argument 124 if (hist_entry__has_pairs(he)) in hist_entry__next_pair() 125 return list_entry(he->pairs.node.next, struct hist_entry, pairs.node); in hist_entry__next_pair() 130 struct hist_entry *he) in hist_entry__add_pair() argument 132 list_add_tail(&pair->pairs.node, &he->pairs.head); in hist_entry__add_pair() 135 static inline float hist_entry__get_percent_limit(struct hist_entry *he) in hist_entry__get_percent_limit() argument 137 u64 period = he->stat.period; in hist_entry__get_percent_limit() 138 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit() [all …]
|
D | sort.c | 69 static int hist_entry__thread_snprintf(struct hist_entry *he, char *bf, in hist_entry__thread_snprintf() argument 72 const char *comm = thread__comm_str(he->thread); in hist_entry__thread_snprintf() 75 return repsep_snprintf(bf, size, "%5d:%-*.*s", he->thread->tid, in hist_entry__thread_snprintf() 108 static int hist_entry__comm_snprintf(struct hist_entry *he, char *bf, in hist_entry__comm_snprintf() argument 111 return repsep_snprintf(bf, size, "%-*.*s", width, width, comm__str(he->comm)); in hist_entry__comm_snprintf() 163 static int hist_entry__dso_snprintf(struct hist_entry *he, char *bf, in hist_entry__dso_snprintf() argument 166 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf() 268 static int hist_entry__sym_snprintf(struct hist_entry *he, char *bf, in hist_entry__sym_snprintf() argument 271 return _hist_entry__sym_snprintf(he->ms.map, he->ms.sym, he->ip, in hist_entry__sym_snprintf() 272 he->level, bf, size, width); in hist_entry__sym_snprintf() [all …]
|
D | hist.h | 91 struct hist_entry *he; member 120 int hist_entry__sort_snprintf(struct hist_entry *he, char *bf, size_t size, 157 void hists__calc_col_len(struct hists *hists, struct hist_entry *he); 195 struct hist_entry *he); 197 struct hist_entry *he); 264 typedef u64 (*hpp_field_fn)(struct hist_entry *he); 269 struct hist_entry *he, hpp_field_fn get_field, 272 struct hist_entry *he, hpp_field_fn get_field, 303 int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, 322 static inline int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused, in hist_entry__tui_annotate()
|
D | annotate.h | 137 int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 addr); 144 int hist_entry__annotate(struct hist_entry *he, size_t privsize);
|
D | callchain.h | 168 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample);
|
D | annotate.c | 517 int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 ip) in hist_entry__inc_addr_samples() argument 519 return symbol__inc_addr_samples(he->ms.sym, he->ms.map, evidx, ip); in hist_entry__inc_addr_samples() 1407 int hist_entry__annotate(struct hist_entry *he, size_t privsize) in hist_entry__annotate() argument 1409 return symbol__annotate(he->ms.sym, he->ms.map, privsize); in hist_entry__annotate()
|
D | callchain.c | 763 int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *sample) in hist_entry__append_callchain() argument 767 return callchain_append(he->callchain, &callchain_cursor, sample->period); in hist_entry__append_callchain()
|
/tools/perf/ |
D | builtin-diff.c | 220 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 …]
|
D | builtin-annotate.c | 55 struct hist_entry *he; in perf_evsel__add_sample() local 70 he = __hists__add_entry(hists, al, NULL, NULL, NULL, 1, 1, 0, true); in perf_evsel__add_sample() 71 if (he == NULL) in perf_evsel__add_sample() 74 ret = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in perf_evsel__add_sample() 106 static int hist_entry__tty_annotate(struct hist_entry *he, in hist_entry__tty_annotate() argument 110 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, in hist_entry__tty_annotate() 122 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() local 125 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations() 128 notes = symbol__annotation(he->ms.sym); in hists__find_annotations() 140 int (*annotate)(struct hist_entry *he, in hists__find_annotations() [all …]
|
D | builtin-top.c | 90 static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) in perf_top__parse_source() argument 97 if (!he || !he->ms.sym) in perf_top__parse_source() 100 sym = he->ms.sym; in perf_top__parse_source() 101 map = he->ms.map; in perf_top__parse_source() 133 top->sym_filter_entry = he; in perf_top__parse_source() 140 static void __zero_source_counters(struct hist_entry *he) in __zero_source_counters() argument 142 struct symbol *sym = he->ms.sym; in __zero_source_counters() 174 struct hist_entry *he, in perf_top__record_precise_ip() argument 181 if (he == NULL || he->ms.sym == NULL || in perf_top__record_precise_ip() 183 top->sym_filter_entry->ms.sym != he->ms.sym) && use_browser != 1)) in perf_top__record_precise_ip() [all …]
|
D | builtin-report.c | 89 static void report__inc_stats(struct report *rep, struct hist_entry *he) in report__inc_stats() argument 96 if (he->stat.nr_events == 1) in report__inc_stats() 106 struct hist_entry *he = iter->he; in hist_iter__report_callback() local 111 report__inc_stats(rep, he); in hist_iter__report_callback() 117 bi = he->branch_info; in hist_iter__report_callback() 125 mi = he->mem_info; in hist_iter__report_callback() 130 err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in hist_iter__report_callback() 134 err = hist_entry__inc_addr_samples(he, evsel->idx, in hist_iter__report_callback() 137 err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); in hist_iter__report_callback()
|
/tools/perf/ui/ |
D | hist.c | 18 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument 23 struct hists *hists = he->hists; in __hpp__fmt() 33 percent = 100.0 * get_field(he) / total; in __hpp__fmt() 37 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt() 46 list_for_each_entry(pair, &he->pairs.head, pairs.node) { in __hpp__fmt() 108 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt() argument 114 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt() 123 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt() 127 struct hist_entry *he, hpp_field_fn get_field, in hpp__fmt_acc() argument 135 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc() [all …]
|
/tools/perf/ui/browsers/ |
D | hists.c | 125 static char hist_entry__folded(const struct hist_entry *he) in hist_entry__folded() argument 127 return map_symbol__folded(&he->ms); in hist_entry__folded() 252 static void hist_entry__init_have_children(struct hist_entry *he) in hist_entry__init_have_children() argument 254 if (!he->init_have_children) { in hist_entry__init_have_children() 255 he->ms.has_children = !RB_EMPTY_ROOT(&he->sorted_chain); in hist_entry__init_have_children() 256 callchain__init_have_children(&he->sorted_chain); in hist_entry__init_have_children() 257 he->init_have_children = true; in hist_entry__init_have_children() 264 struct hist_entry *he = browser->he_selection; in hist_browser__toggle_fold() local 266 hist_entry__init_have_children(he); in hist_browser__toggle_fold() 267 browser->b.nr_entries -= he->nr_rows; in hist_browser__toggle_fold() [all …]
|
D | annotate.c | 822 int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, in hist_entry__tui_annotate() argument 825 return symbol__tui_annotate(he->ms.sym, he->ms.map, evsel, hbt); in hist_entry__tui_annotate()
|
/tools/perf/ui/stdio/ |
D | hist.c | 268 static size_t hist_entry_callchain__fprintf(struct hist_entry *he, in hist_entry_callchain__fprintf() argument 274 return callchain__fprintf_graph(fp, &he->sorted_chain, in hist_entry_callchain__fprintf() 276 he->stat_acc->period : he->stat.period, in hist_entry_callchain__fprintf() 280 return callchain__fprintf_graph(fp, &he->sorted_chain, total_samples, in hist_entry_callchain__fprintf() 284 return callchain__fprintf_flat(fp, &he->sorted_chain, total_samples); in hist_entry_callchain__fprintf() 295 static size_t hist_entry__callchain_fprintf(struct hist_entry *he, in hist_entry__callchain_fprintf() argument 312 left_margin -= thread__comm_len(he->thread); in hist_entry__callchain_fprintf() 316 return hist_entry_callchain__fprintf(he, total_period, left_margin, fp); in hist_entry__callchain_fprintf() 319 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument 327 if (symbol_conf.exclude_other && !he->parent) in hist_entry__snprintf() [all …]
|
/tools/perf/ui/gtk/ |
D | hists.c | 39 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%%", \
|
D | gtk.h | 62 int hist_entry__gtk_annotate(struct hist_entry *he,
|
D | annotate.c | 229 int hist_entry__gtk_annotate(struct hist_entry *he, in hist_entry__gtk_annotate() argument 233 return symbol__gtk_annotate(he->ms.sym, he->ms.map, evsel, hbt); in hist_entry__gtk_annotate()
|
/tools/usb/usbip/ |
D | COPYING | 222 system; it is up to the author/donor to decide if he or she is willing
|