Lines Matching refs:sym_hist
792 if (size > (SIZE_MAX - sizeof(struct sym_hist)) / sizeof(struct sym_hist_entry)) in annotated_source__alloc_histograms()
795 sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeof(struct sym_hist_entry)); in annotated_source__alloc_histograms()
890 struct sym_hist *h; in __symbol__inc_addr_samples()
2139 static void calc_percent(struct sym_hist *sym_hist, in calc_percent() argument
2148 hits += sym_hist->addr[offset].nr_samples; in calc_percent()
2149 period += sym_hist->addr[offset].period; in calc_percent()
2153 if (sym_hist->nr_samples) { in calc_percent()
2156 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples; in calc_percent()
2162 if (sym_hist->period) in calc_percent()
2163 data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period; in calc_percent()
2188 struct sym_hist *sym_hist; in annotation__calc_percent() local
2192 sym_hist = annotation__histogram(notes, evsel->core.idx); in annotation__calc_percent()
2195 calc_percent(sym_hist, hists, data, al->offset, end); in annotation__calc_percent()
2378 struct sym_hist *h = annotation__histogram(notes, evsel->core.idx); in symbol__annotate_hits()
2411 struct sym_hist *h = annotation__histogram(notes, evsel->core.idx); in symbol__annotate_printf()
2602 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_zero_histogram()
2610 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_decay_histogram()