Lines Matching refs:sym_hist
833 if (size > (SIZE_MAX - sizeof(struct sym_hist)) / sizeof(struct sym_hist_entry))
836 sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeof(struct sym_hist_entry));
931 struct sym_hist *h;
2234 static void calc_percent(struct sym_hist *sym_hist,
2243 hits += sym_hist->addr[offset].nr_samples;
2244 period += sym_hist->addr[offset].period;
2248 if (sym_hist->nr_samples) {
2251 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples;
2257 if (sym_hist->period)
2258 data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period;
2283 struct sym_hist *sym_hist;
2287 sym_hist = annotation__histogram(notes, evsel->core.idx);
2290 calc_percent(sym_hist, hists, data, al->offset, end);
2473 struct sym_hist *h = annotation__histogram(notes, evsel->core.idx);
2506 struct sym_hist *h = annotation__histogram(notes, evsel->core.idx);
2697 struct sym_hist *h = annotation__histogram(notes, evidx);
2705 struct sym_hist *h = annotation__histogram(notes, evidx);