Lines Matching refs:sym_hist
791 if (size > (SIZE_MAX - sizeof(struct sym_hist)) / sizeof(struct sym_hist_entry))
794 sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeof(struct sym_hist_entry));
889 struct sym_hist *h;
2107 static void calc_percent(struct sym_hist *sym_hist,
2116 hits += sym_hist->addr[offset].nr_samples;
2117 period += sym_hist->addr[offset].period;
2121 if (sym_hist->nr_samples) {
2124 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples;
2130 if (sym_hist->period)
2131 data->percent[PERCENT_PERIOD_LOCAL] = 100.0 * period / sym_hist->period;
2156 struct sym_hist *sym_hist;
2160 sym_hist = annotation__histogram(notes, evsel->idx);
2163 calc_percent(sym_hist, hists, data, al->offset, end);
2343 struct sym_hist *h = annotation__histogram(notes, evsel->idx);
2376 struct sym_hist *h = annotation__histogram(notes, evsel->idx);
2567 struct sym_hist *h = annotation__histogram(notes, evidx);
2575 struct sym_hist *h = annotation__histogram(notes, evidx);