• Home
  • Raw
  • Download

Lines Matching refs:h

477 	struct sym_hist *h;  in __symbol__inc_addr_samples()  local
485 h = annotation__histogram(notes, evidx); in __symbol__inc_addr_samples()
486 h->sum++; in __symbol__inc_addr_samples()
487 h->addr[offset]++; in __symbol__inc_addr_samples()
491 addr, addr - sym->start, evidx, h->addr[offset]); in __symbol__inc_addr_samples()
654 struct sym_hist *h = annotation__histogram(notes, evidx); in disasm__calc_percent() local
658 hits += h->addr[offset++]; in disasm__calc_percent()
660 if (h->sum) in disasm__calc_percent()
661 percent = 100.0 * hits / h->sum; in disasm__calc_percent()
1131 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__get_source_line() local
1134 u64 h_sum = h->sum; in symbol__get_source_line()
1139 h = annotation__histogram(notes, evidx + i); in symbol__get_source_line()
1140 h_sum += h->sum; in symbol__get_source_line()
1162 h = annotation__histogram(notes, evidx + k); in symbol__get_source_line()
1163 src_line->p[k].percent = 100.0 * h->addr[i] / h->sum; in symbol__get_source_line()
1225 struct sym_hist *h = annotation__histogram(notes, evsel->idx); in symbol__annotate_hits() local
1229 if (h->addr[offset] != 0) in symbol__annotate_hits()
1231 sym->start + offset, h->addr[offset]); in symbol__annotate_hits()
1232 printf("%*s: %" PRIu64 "\n", BITS_PER_LONG / 2, "h->sum", h->sum); in symbol__annotate_hits()
1323 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_zero_histogram() local
1325 memset(h, 0, notes->src->sizeof_sym_hist); in symbol__annotate_zero_histogram()
1331 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_decay_histogram() local
1334 h->sum = 0; in symbol__annotate_decay_histogram()
1336 h->addr[offset] = h->addr[offset] * 7 / 8; in symbol__annotate_decay_histogram()
1337 h->sum += h->addr[offset]; in symbol__annotate_decay_histogram()