Home
last modified time | relevance | path

Searched refs:notes (Results 1 – 11 of 11) sorted by relevance

/tools/perf/util/
Dannotate.c497 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(&notes->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 …]
Dannotate.h77 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 *)&notes->src->histograms) + in annotation__histogram()
140 (notes->src->sizeof_sym_hist * idx)); in annotation__histogram()
Dbuild-id.c99 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()
Dsymbol.c244 struct annotation *notes = (void *)sym; in symbol__new() local
245 pthread_mutex_init(&notes->lock, NULL); in symbol__new()
/tools/perf/ui/browsers/
Dannotate.c382 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent() local
388 pthread_mutex_lock(&notes->lock); in annotate_browser__calc_percent()
390 list_for_each_entry(pos, &notes->src->source, node) { in annotate_browser__calc_percent()
401 next = disasm__get_next_ip_line(&notes->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(&notes->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(&notes->lock); in annotate_browser__callq()
509 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq()
[all …]
Dhists.c2349 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/
Dbuiltin-annotate.c79 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(&notes->src->cycles_hist); in hists__find_annotations()
299 zfree(&notes->src); in hists__find_annotations()
Dbuiltin-top.c100 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(&notes->lock); in perf_top__parse_source()
127 pthread_mutex_lock(&notes->lock); in perf_top__parse_source()
130 pthread_mutex_unlock(&notes->lock); in perf_top__parse_source()
147 pthread_mutex_unlock(&notes->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(&notes->lock)) in perf_top__record_precise_ip()
[all …]
/tools/perf/ui/gtk/
Dannotate.c93 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, &notes->src->source, node) { in perf_gtk__annotate_symbol()
149 list_for_each_entry_safe(pos, n, &notes->src->source, node) { in perf_gtk__annotate_symbol()
/tools/perf/Documentation/
Dperf-kvm.txt47 for use by perf report. As buildid is read from /sys/kernel/notes in os, then
Dperf.data-file-format.txt256 Some notes on parsing: