Searched refs:notes (Results 1 – 11 of 11) sorted by relevance
/tools/perf/util/ |
D | annotate.c | 497 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist() local 508 if (sizeof_sym_hist > (SIZE_MAX - sizeof(*notes->src)) in symbol__alloc_hist() 512 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist() 513 if (notes->src == NULL) in symbol__alloc_hist() 515 notes->src->sizeof_sym_hist = sizeof_sym_hist; in symbol__alloc_hist() 516 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist() 517 INIT_LIST_HEAD(¬es->src->source); in symbol__alloc_hist() 524 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist_cycles() local 527 notes->src->cycles_hist = calloc(size, sizeof(struct cyc_hist)); in symbol__alloc_hist_cycles() 528 if (notes->src->cycles_hist == NULL) in symbol__alloc_hist_cycles() [all …]
|
D | annotate.h | 77 double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, 137 static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) in annotation__histogram() argument 139 return (((void *)¬es->src->histograms) + in annotation__histogram() 140 (notes->src->sizeof_sym_hist * idx)); in annotation__histogram()
|
D | build-id.c | 99 char notes[PATH_MAX]; in sysfs__sprintf_build_id() local 106 scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); in sysfs__sprintf_build_id() 108 ret = sysfs__read_build_id(notes, build_id, sizeof(build_id)); in sysfs__sprintf_build_id()
|
D | symbol.c | 244 struct annotation *notes = (void *)sym; in symbol__new() local 245 pthread_mutex_init(¬es->lock, NULL); in symbol__new()
|
/tools/perf/ui/browsers/ |
D | annotate.c | 382 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent() local 388 pthread_mutex_lock(¬es->lock); in annotate_browser__calc_percent() 390 list_for_each_entry(pos, ¬es->src->source, node) { in annotate_browser__calc_percent() 401 next = disasm__get_next_ip_line(¬es->src->source, pos); in annotate_browser__calc_percent() 406 bpos->samples[i].percent = disasm__calc_percent(notes, in annotate_browser__calc_percent() 424 pthread_mutex_unlock(¬es->lock); in annotate_browser__calc_percent() 488 struct annotation *notes; in annotate_browser__callq() local 506 notes = symbol__annotation(target.sym); in annotate_browser__callq() 507 pthread_mutex_lock(¬es->lock); in annotate_browser__callq() 509 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq() [all …]
|
D | hists.c | 2349 struct annotation *notes; in do_annotate() local 2356 notes = symbol__annotation(act->ms.sym); in do_annotate() 2357 if (!notes->src) in do_annotate()
|
/tools/perf/ |
D | builtin-annotate.c | 79 struct annotation *notes = sym ? symbol__annotation(sym) : NULL; in process_basic_block() local 106 if (notes) in process_basic_block() 107 notes->max_coverage = max(notes->max_coverage, entry->coverage); in process_basic_block() 237 struct annotation *notes; in hists__find_annotations() local 242 notes = symbol__annotation(he->ms.sym); in hists__find_annotations() 243 if (notes->src == NULL) { in hists__find_annotations() 298 zfree(¬es->src->cycles_hist); in hists__find_annotations() 299 zfree(¬es->src); in hists__find_annotations()
|
D | builtin-top.c | 100 struct annotation *notes; in perf_top__parse_source() local 121 notes = symbol__annotation(sym); in perf_top__parse_source() 122 if (notes->src != NULL) { in perf_top__parse_source() 123 pthread_mutex_lock(¬es->lock); in perf_top__parse_source() 127 pthread_mutex_lock(¬es->lock); in perf_top__parse_source() 130 pthread_mutex_unlock(¬es->lock); in perf_top__parse_source() 147 pthread_mutex_unlock(¬es->lock); in perf_top__parse_source() 188 struct annotation *notes; in perf_top__record_precise_ip() local 197 notes = symbol__annotation(sym); in perf_top__record_precise_ip() 199 if (pthread_mutex_trylock(¬es->lock)) in perf_top__record_precise_ip() [all …]
|
/tools/perf/ui/gtk/ |
D | annotate.c | 93 struct annotation *notes; in perf_gtk__annotate_symbol() local 101 notes = symbol__annotation(sym); in perf_gtk__annotate_symbol() 120 list_for_each_entry(pos, ¬es->src->source, node) { in perf_gtk__annotate_symbol() 149 list_for_each_entry_safe(pos, n, ¬es->src->source, node) { in perf_gtk__annotate_symbol()
|
/tools/perf/Documentation/ |
D | perf-kvm.txt | 47 for use by perf report. As buildid is read from /sys/kernel/notes in os, then
|
D | perf.data-file-format.txt | 256 Some notes on parsing:
|