Lines Matching refs:notes

445 	struct annotation *notes = symbol__annotation(sym);  in symbol__annotate_init()  local
446 pthread_mutex_init(&notes->lock, NULL); in symbol__annotate_init()
452 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist() local
463 if (sizeof_sym_hist > (SIZE_MAX - sizeof(*notes->src)) in symbol__alloc_hist()
467 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist()
468 if (notes->src == NULL) in symbol__alloc_hist()
470 notes->src->sizeof_sym_hist = sizeof_sym_hist; in symbol__alloc_hist()
471 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist()
472 INIT_LIST_HEAD(&notes->src->source); in symbol__alloc_hist()
478 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms() local
480 pthread_mutex_lock(&notes->lock); in symbol__annotate_zero_histograms()
481 if (notes->src != NULL) in symbol__annotate_zero_histograms()
482 memset(notes->src->histograms, 0, in symbol__annotate_zero_histograms()
483 notes->src->nr_histograms * notes->src->sizeof_sym_hist); in symbol__annotate_zero_histograms()
484 pthread_mutex_unlock(&notes->lock); in symbol__annotate_zero_histograms()
488 struct annotation *notes, int evidx, u64 addr) in __symbol__inc_addr_samples() argument
499 h = annotation__histogram(notes, evidx); in __symbol__inc_addr_samples()
512 struct annotation *notes; in symbol__inc_addr_samples() local
517 notes = symbol__annotation(sym); in symbol__inc_addr_samples()
518 if (notes->src == NULL) { in symbol__inc_addr_samples()
523 return __symbol__inc_addr_samples(sym, map, notes, evidx, addr); in symbol__inc_addr_samples()
649 double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, in disasm__calc_percent() argument
652 struct source_line *src_line = notes->src->lines; in disasm__calc_percent()
660 src_line = (void *)notes->src->lines + in disasm__calc_percent()
670 struct sym_hist *h = annotation__histogram(notes, evidx); in disasm__calc_percent()
696 struct annotation *notes = symbol__annotation(sym); in disasm_line__print() local
701 next = disasm__get_next_ip_line(&notes->src->source, dl); in disasm_line__print()
711 percent = disasm__calc_percent(notes, in disasm_line__print()
712 notes->src->lines ? i : evsel->idx + i, in disasm_line__print()
729 list_for_each_entry_from(queue, &notes->src->source, node) { in disasm_line__print()
810 struct annotation *notes = symbol__annotation(sym); in symbol__parse_objdump_line() local
892 disasm__add(&notes->src->source, dl); in symbol__parse_objdump_line()
904 struct annotation *notes = symbol__annotation(sym); in delete_last_nop() local
905 struct list_head *list = &notes->src->source; in delete_last_nop()
1169 struct annotation *notes = symbol__annotation(sym); in symbol__free_source_line() local
1170 struct source_line *src_line = notes->src->lines; in symbol__free_source_line()
1182 zfree(&notes->src->lines); in symbol__free_source_line()
1194 struct annotation *notes = symbol__annotation(sym); in symbol__get_source_line() local
1195 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__get_source_line()
1203 h = annotation__histogram(notes, evidx + i); in symbol__get_source_line()
1213 src_line = notes->src->lines = calloc(len, sizeof_src_line); in symbol__get_source_line()
1214 if (!notes->src->lines) in symbol__get_source_line()
1226 h = annotation__histogram(notes, evidx + k); in symbol__get_source_line()
1288 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_hits() local
1289 struct sym_hist *h = annotation__histogram(notes, evsel->idx); in symbol__annotate_hits()
1307 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_printf() local
1342 list_for_each_entry(pos, &notes->src->source, node) { in symbol__annotate_printf()
1386 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histogram() local
1387 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_zero_histogram()
1389 memset(h, 0, notes->src->sizeof_sym_hist); in symbol__annotate_zero_histogram()
1394 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_decay_histogram() local
1395 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_decay_histogram()