/tools/perf/ui/browsers/ |
D | annotate.c | 48 struct annotation *notes = browser__annotation(browser); in disasm_line__filter() local 50 return annotation_line__filter(al, notes); in disasm_line__filter() 55 struct annotation *notes = browser__annotation(browser); in ui_browser__jumps_percent_color() local 59 if (nr == notes->max_jump_sources) in ui_browser__jumps_percent_color() 99 struct annotation *notes = browser__annotation(browser); in annotate_browser__write() local 105 .change_color = (!notes->options->hide_src_code && in annotate_browser__write() 122 annotation_line__write(al, notes, &ops, ab->opts); in annotate_browser__write() 155 struct annotation *notes = symbol__annotation(sym); in annotate_browser__draw_current_jump() local 156 u8 pcnt_width = annotation__pcnt_width(notes); in annotate_browser__draw_current_jump() 186 target = notes->offsets[cursor->ops.target.offset]; in annotate_browser__draw_current_jump() [all …]
|
D | hists.c | 2430 struct annotation *notes; in do_annotate() local 2438 notes = symbol__annotation(act->ms.sym); in do_annotate() 2439 if (!notes->src) in do_annotate()
|
/tools/perf/util/ |
D | annotate.c | 801 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist_cycles() local 804 notes->src->cycles_hist = calloc(size, sizeof(struct cyc_hist)); in symbol__alloc_hist_cycles() 805 if (notes->src->cycles_hist == NULL) in symbol__alloc_hist_cycles() 812 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms() local 814 pthread_mutex_lock(¬es->lock); in symbol__annotate_zero_histograms() 815 if (notes->src != NULL) { in symbol__annotate_zero_histograms() 816 memset(notes->src->histograms, 0, in symbol__annotate_zero_histograms() 817 notes->src->nr_histograms * notes->src->sizeof_sym_hist); in symbol__annotate_zero_histograms() 818 if (notes->src->cycles_hist) in symbol__annotate_zero_histograms() 819 memset(notes->src->cycles_hist, 0, in symbol__annotate_zero_histograms() [all …]
|
D | annotate.h | 215 void annotation_line__write(struct annotation_line *al, struct annotation *notes, 219 int __annotation__scnprintf_samples_period(struct annotation *notes, 300 static inline int annotation__cycles_width(struct annotation *notes) in annotation__cycles_width() argument 302 if (notes->have_cycles && notes->options->show_minmax_cycle) in annotation__cycles_width() 305 return notes->have_cycles ? ANNOTATION__IPC_WIDTH + ANNOTATION__CYCLES_WIDTH : 0; in annotation__cycles_width() 308 static inline int annotation__pcnt_width(struct annotation *notes) in annotation__pcnt_width() argument 310 return (symbol_conf.show_total_period ? 12 : 7) * notes->nr_events; in annotation__pcnt_width() 313 static inline bool annotation_line__filter(struct annotation_line *al, struct annotation *notes) in annotation_line__filter() argument 315 return notes->options->hide_src_code && al->offset == -1; in annotation_line__filter() 318 void annotation__set_offsets(struct annotation *notes, s64 size); [all …]
|
D | block-info.c | 119 struct annotation *notes; in block_info__process_sym() local 131 notes = symbol__annotation(he->ms.sym); in block_info__process_sym() 132 if (!notes || !notes->src || !notes->src->cycles_hist) in block_info__process_sym() 134 ch = notes->src->cycles_hist; in block_info__process_sym()
|
D | build-id.c | 118 char notes[PATH_MAX]; in sysfs__sprintf_build_id() local 125 scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); in sysfs__sprintf_build_id() 127 ret = sysfs__read_build_id(notes, &bid); in sysfs__sprintf_build_id()
|
D | sort.c | 459 struct annotation *notes; in hist_entry__sym_ipc_snprintf() local 466 notes = symbol__annotation(sym); in hist_entry__sym_ipc_snprintf() 468 if (notes->hit_cycles) in hist_entry__sym_ipc_snprintf() 469 ipc = notes->hit_insn / ((double)notes->hit_cycles); in hist_entry__sym_ipc_snprintf() 471 if (notes->total_insn) { in hist_entry__sym_ipc_snprintf() 472 coverage = notes->cover_insn * 100.0 / in hist_entry__sym_ipc_snprintf() 473 ((double)notes->total_insn); in hist_entry__sym_ipc_snprintf()
|
D | symbol.c | 293 struct annotation *notes = (void *)sym; in symbol__new() local 294 pthread_mutex_init(¬es->lock, NULL); in symbol__new()
|
/tools/perf/ |
D | builtin-annotate.c | 87 struct annotation *notes = sym ? symbol__annotation(sym) : NULL; in process_basic_block() local 114 if (notes) in process_basic_block() 115 notes->max_coverage = max(notes->max_coverage, entry->coverage); in process_basic_block() 316 struct annotation *notes; in hists__find_annotations() local 325 notes = symbol__annotation(he->ms.sym); in hists__find_annotations() 326 if (notes->src == NULL) { in hists__find_annotations() 382 zfree(¬es->src->cycles_hist); in hists__find_annotations() 383 zfree(¬es->src); in hists__find_annotations()
|
D | builtin-top.c | 114 struct annotation *notes; in perf_top__parse_source() local 137 notes = symbol__annotation(sym); in perf_top__parse_source() 138 pthread_mutex_lock(¬es->lock); in perf_top__parse_source() 141 pthread_mutex_unlock(¬es->lock); in perf_top__parse_source() 157 pthread_mutex_unlock(¬es->lock); in perf_top__parse_source() 199 struct annotation *notes; in perf_top__record_precise_ip() local 208 notes = symbol__annotation(sym); in perf_top__record_precise_ip() 210 if (pthread_mutex_trylock(¬es->lock)) in perf_top__record_precise_ip() 215 pthread_mutex_unlock(¬es->lock); in perf_top__record_precise_ip() 240 struct annotation *notes; in perf_top__show_details() local [all …]
|
/tools/perf/ui/gtk/ |
D | annotate.c | 100 struct annotation *notes; in perf_gtk__annotate_symbol() local 108 notes = symbol__annotation(sym); in perf_gtk__annotate_symbol() 127 list_for_each_entry(pos, ¬es->src->source, al.node) { in perf_gtk__annotate_symbol() 156 list_for_each_entry_safe(pos, n, ¬es->src->source, al.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 | 420 Some notes on parsing:
|