Home
last modified time | relevance | path

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

/tools/perf/util/
Dannotate.c431 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_init() local
432 pthread_mutex_init(&notes->lock, NULL); in symbol__annotate_init()
438 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist() local
449 if (sizeof_sym_hist > (SIZE_MAX - sizeof(*notes->src)) in symbol__alloc_hist()
453 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist()
454 if (notes->src == NULL) in symbol__alloc_hist()
456 notes->src->sizeof_sym_hist = sizeof_sym_hist; in symbol__alloc_hist()
457 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist()
458 INIT_LIST_HEAD(&notes->src->source); in symbol__alloc_hist()
464 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms() local
[all …]
Dannotate.h73 double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset,
123 static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) in annotation__histogram() argument
125 return (((void *)&notes->src->histograms) + in annotation__histogram()
126 (notes->src->sizeof_sym_hist * idx)); in annotation__histogram()
/tools/perf/ui/browsers/
Dannotate.c342 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent() local
348 pthread_mutex_lock(&notes->lock); in annotate_browser__calc_percent()
350 list_for_each_entry(pos, &notes->src->source, node) { in annotate_browser__calc_percent()
361 next = disasm__get_next_ip_line(&notes->src->source, pos); in annotate_browser__calc_percent()
364 bpos->percent[i] = disasm__calc_percent(notes, in annotate_browser__calc_percent()
381 pthread_mutex_unlock(&notes->lock); in annotate_browser__calc_percent()
445 struct annotation *notes; in annotate_browser__callq() local
463 notes = symbol__annotation(target.sym); in annotate_browser__callq()
464 pthread_mutex_lock(&notes->lock); in annotate_browser__callq()
466 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq()
[all …]
Dhists.c1621 struct annotation *notes; in perf_evsel__hists_browse() local
1623 notes = symbol__annotation(browser->selection->sym); in perf_evsel__hists_browse()
1625 if (notes->src && in perf_evsel__hists_browse()
1686 struct annotation *notes; in perf_evsel__hists_browse() local
1710 notes = symbol__annotation(he->ms.sym); in perf_evsel__hists_browse()
1711 if (!notes->src) in perf_evsel__hists_browse()
/tools/perf/
Dbuiltin-top.c93 struct annotation *notes; in perf_top__parse_source() local
114 notes = symbol__annotation(sym); in perf_top__parse_source()
115 if (notes->src != NULL) { in perf_top__parse_source()
116 pthread_mutex_lock(&notes->lock); in perf_top__parse_source()
120 pthread_mutex_lock(&notes->lock); in perf_top__parse_source()
123 pthread_mutex_unlock(&notes->lock); in perf_top__parse_source()
136 pthread_mutex_unlock(&notes->lock); in perf_top__parse_source()
177 struct annotation *notes; in perf_top__record_precise_ip() local
187 notes = symbol__annotation(sym); in perf_top__record_precise_ip()
189 if (pthread_mutex_trylock(&notes->lock)) in perf_top__record_precise_ip()
[all …]
Dbuiltin-buildid-cache.c28 char notes[PATH_MAX]; in build_id_cache__kcore_buildid() local
39 scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); in build_id_cache__kcore_buildid()
41 if (sysfs__read_build_id(notes, build_id, sizeof(build_id))) in build_id_cache__kcore_buildid()
Dbuiltin-annotate.c123 struct annotation *notes; in hists__find_annotations() local
128 notes = symbol__annotation(he->ms.sym); in hists__find_annotations()
129 if (notes->src == NULL) { in hists__find_annotations()
184 zfree(&notes->src); in hists__find_annotations()
/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