Home
last modified time | relevance | path

Searched refs:sym_hist (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/util/
Dannotate.h228 struct sym_hist { struct
270 struct sym_hist *histograms;
324 static inline struct sym_hist *annotated_source__histogram(struct annotated_source *src, int idx) in annotated_source__histogram()
329 static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) in annotation__histogram()
Dannotate.c783 if (size > (SIZE_MAX - sizeof(struct sym_hist)) / sizeof(struct sym_hist_entry)) in annotated_source__alloc_histograms()
786 sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeof(struct sym_hist_entry)); in annotated_source__alloc_histograms()
881 struct sym_hist *h; in __symbol__inc_addr_samples()
2095 static void calc_percent(struct sym_hist *sym_hist, in calc_percent() argument
2104 hits += sym_hist->addr[offset].nr_samples; in calc_percent()
2105 period += sym_hist->addr[offset].period; in calc_percent()
2109 if (sym_hist->nr_samples) { in calc_percent()
2112 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2118 if (sym_hist->period) in calc_percent()
2119 data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period; in calc_percent()
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
Dannotate.c31 struct sym_hist *symhist; in perf_gtk__get_percent()