Lines Matching refs:notes
445 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_init() local
446 pthread_mutex_init(¬es->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(¬es->src->source); in symbol__alloc_hist()
479 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist_cycles() local
482 notes->src->cycles_hist = calloc(size, sizeof(struct cyc_hist)); in symbol__alloc_hist_cycles()
483 if (notes->src->cycles_hist == NULL) in symbol__alloc_hist_cycles()
490 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms() local
492 pthread_mutex_lock(¬es->lock); in symbol__annotate_zero_histograms()
493 if (notes->src != NULL) { in symbol__annotate_zero_histograms()
494 memset(notes->src->histograms, 0, in symbol__annotate_zero_histograms()
495 notes->src->nr_histograms * notes->src->sizeof_sym_hist); in symbol__annotate_zero_histograms()
496 if (notes->src->cycles_hist) in symbol__annotate_zero_histograms()
497 memset(notes->src->cycles_hist, 0, in symbol__annotate_zero_histograms()
500 pthread_mutex_unlock(¬es->lock); in symbol__annotate_zero_histograms()
503 static int __symbol__account_cycles(struct annotation *notes, in __symbol__account_cycles() argument
510 ch = notes->src->cycles_hist; in __symbol__account_cycles()
544 struct annotation *notes, int evidx, u64 addr) in __symbol__inc_addr_samples() argument
558 h = annotation__histogram(notes, evidx); in __symbol__inc_addr_samples()
570 struct annotation *notes = symbol__annotation(sym); in symbol__get_annotation() local
572 if (notes->src == NULL) { in symbol__get_annotation()
576 if (!notes->src->cycles_hist && cycles) { in symbol__get_annotation()
580 return notes; in symbol__get_annotation()
586 struct annotation *notes; in symbol__inc_addr_samples() local
590 notes = symbol__get_annotation(sym, false); in symbol__inc_addr_samples()
591 if (notes == NULL) in symbol__inc_addr_samples()
593 return __symbol__inc_addr_samples(sym, map, notes, evidx, addr); in symbol__inc_addr_samples()
599 struct annotation *notes; in symbol__account_cycles() local
604 notes = symbol__get_annotation(sym, true); in symbol__account_cycles()
605 if (notes == NULL) in symbol__account_cycles()
617 return __symbol__account_cycles(notes, in symbol__account_cycles()
780 double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, in disasm__calc_percent() argument
783 struct source_line *src_line = notes->src->lines; in disasm__calc_percent()
792 src_line = (void *)notes->src->lines + in disasm__calc_percent()
803 struct sym_hist *h = annotation__histogram(notes, evidx); in disasm__calc_percent()
833 struct annotation *notes = symbol__annotation(sym); in disasm_line__print() local
838 next = disasm__get_next_ip_line(¬es->src->source, dl); in disasm_line__print()
850 percent = disasm__calc_percent(notes, in disasm_line__print()
851 notes->src->lines ? i : evsel->idx + i, in disasm_line__print()
869 list_for_each_entry_from(queue, ¬es->src->source, node) { in disasm_line__print()
959 struct annotation *notes = symbol__annotation(sym); in symbol__parse_objdump_line() local
1041 disasm__add(¬es->src->source, dl); in symbol__parse_objdump_line()
1053 struct annotation *notes = symbol__annotation(sym); in delete_last_nop() local
1054 struct list_head *list = ¬es->src->source; in delete_last_nop()
1335 struct annotation *notes = symbol__annotation(sym); in symbol__free_source_line() local
1336 struct source_line *src_line = notes->src->lines; in symbol__free_source_line()
1348 zfree(¬es->src->lines); in symbol__free_source_line()
1360 struct annotation *notes = symbol__annotation(sym); in symbol__get_source_line() local
1361 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__get_source_line()
1369 h = annotation__histogram(notes, evidx + i); in symbol__get_source_line()
1379 src_line = notes->src->lines = calloc(len, sizeof_src_line); in symbol__get_source_line()
1380 if (!notes->src->lines) in symbol__get_source_line()
1392 h = annotation__histogram(notes, evidx + k); in symbol__get_source_line()
1454 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_hits() local
1455 struct sym_hist *h = annotation__histogram(notes, evsel->idx); in symbol__annotate_hits()
1473 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_printf() local
1508 list_for_each_entry(pos, ¬es->src->source, node) { in symbol__annotate_printf()
1552 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histogram() local
1553 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_zero_histogram()
1555 memset(h, 0, notes->src->sizeof_sym_hist); in symbol__annotate_zero_histogram()
1560 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_decay_histogram() local
1561 struct sym_hist *h = annotation__histogram(notes, evidx); in symbol__annotate_decay_histogram()