notes 1665 fs/binfmt_elf.c struct memelfnote notes[0]; notes 1716 fs/binfmt_elf.c fill_note(&t->notes[0], "CORE", NT_PRSTATUS, notes 1718 fs/binfmt_elf.c *total += notesize(&t->notes[0]); notes 1743 fs/binfmt_elf.c fill_note(&t->notes[i], "LINUX", notes 1749 fs/binfmt_elf.c fill_note(&t->notes[i], "CORE", notes 1752 fs/binfmt_elf.c *total += notesize(&t->notes[i]); notes 1811 fs/binfmt_elf.c notes[info->thread_notes]), notes 1873 fs/binfmt_elf.c if (!writenote(&t->notes[0], cprm)) notes 1887 fs/binfmt_elf.c if (t->notes[i].data && notes 1888 fs/binfmt_elf.c !writenote(&t->notes[i], cprm)) notes 1905 fs/binfmt_elf.c WARN_ON(t->notes[0].data && t->notes[0].data != &t->prstatus); notes 1907 fs/binfmt_elf.c kfree(t->notes[i].data); notes 1926 fs/binfmt_elf.c struct memelfnote notes[3]; notes 1944 fs/binfmt_elf.c fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), notes 1947 fs/binfmt_elf.c sz += notesize(&t->notes[0]); notes 1951 fs/binfmt_elf.c fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), notes 1954 fs/binfmt_elf.c sz += notesize(&t->notes[1]); notes 1959 fs/binfmt_elf.c fill_note(&t->notes[2], "LINUX", ELF_CORE_XFPREG_TYPE, notes 1962 fs/binfmt_elf.c sz += notesize(&t->notes[2]); notes 1969 fs/binfmt_elf.c struct memelfnote *notes; notes 1989 fs/binfmt_elf.c info->notes = kmalloc_array(8, sizeof(struct memelfnote), GFP_KERNEL); notes 1990 fs/binfmt_elf.c if (!info->notes) notes 2048 fs/binfmt_elf.c fill_note(info->notes + 0, "CORE", NT_PRSTATUS, notes 2051 fs/binfmt_elf.c fill_note(info->notes + 1, "CORE", NT_PRPSINFO, notes 2054 fs/binfmt_elf.c fill_siginfo_note(info->notes + 2, &info->csigdata, siginfo); notes 2055 fs/binfmt_elf.c fill_auxv_note(info->notes + 3, current->mm); notes 2058 fs/binfmt_elf.c if (fill_files_note(info->notes + info->numnote) == 0) { notes 2059 fs/binfmt_elf.c info->notes_files = info->notes + info->numnote; notes 2067 fs/binfmt_elf.c fill_note(info->notes + info->numnote++, notes 2071 fs/binfmt_elf.c fill_note(info->notes + info->numnote++, notes 2085 fs/binfmt_elf.c sz += notesize(info->notes + i); notes 2099 fs/binfmt_elf.c if (!writenote(info->notes + i, cprm)) notes 2105 fs/binfmt_elf.c if (!writenote(&ets->notes[i], cprm)) notes 2126 fs/binfmt_elf.c kfree(info->notes); notes 1431 fs/binfmt_elf_fdpic.c struct memelfnote notes[3]; notes 1450 fs/binfmt_elf_fdpic.c fill_note(&t->notes[0], "CORE", NT_PRSTATUS, sizeof(t->prstatus), notes 1453 fs/binfmt_elf_fdpic.c sz += notesize(&t->notes[0]); notes 1457 fs/binfmt_elf_fdpic.c fill_note(&t->notes[1], "CORE", NT_PRFPREG, sizeof(t->fpu), notes 1460 fs/binfmt_elf_fdpic.c sz += notesize(&t->notes[1]); notes 1465 fs/binfmt_elf_fdpic.c fill_note(&t->notes[2], "LINUX", ELF_CORE_XFPREG_TYPE, notes 1468 fs/binfmt_elf_fdpic.c sz += notesize(&t->notes[2]); notes 1559 fs/binfmt_elf_fdpic.c struct memelfnote *notes = NULL; notes 1599 fs/binfmt_elf_fdpic.c notes = kmalloc_array(NUM_NOTES, sizeof(struct memelfnote), notes 1601 fs/binfmt_elf_fdpic.c if (!notes) notes 1655 fs/binfmt_elf_fdpic.c fill_note(notes + 0, "CORE", NT_PRSTATUS, sizeof(*prstatus), prstatus); notes 1657 fs/binfmt_elf_fdpic.c fill_note(notes + 1, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); notes 1667 fs/binfmt_elf_fdpic.c fill_note(¬es[numnote++], "CORE", NT_AUXV, notes 1673 fs/binfmt_elf_fdpic.c fill_note(notes + numnote++, notes 1677 fs/binfmt_elf_fdpic.c fill_note(notes + numnote++, notes 1692 fs/binfmt_elf_fdpic.c sz += notesize(notes + i); notes 1756 fs/binfmt_elf_fdpic.c if (!writenote(notes + i, cprm)) notes 1765 fs/binfmt_elf_fdpic.c if (!writenote(&tmp->notes[i], cprm)) notes 1803 fs/binfmt_elf_fdpic.c kfree(notes); notes 297 fs/proc/kcore.c static void append_kcore_note(char *notes, size_t *i, const char *name, notes 301 fs/proc/kcore.c struct elf_note *note = (struct elf_note *)¬es[*i]; notes 307 fs/proc/kcore.c memcpy(¬es[*i], name, note->n_namesz); notes 309 fs/proc/kcore.c memcpy(¬es[*i], desc, descsz); notes 421 fs/proc/kcore.c char *notes; notes 427 fs/proc/kcore.c notes = kzalloc(notes_len, GFP_KERNEL); notes 428 fs/proc/kcore.c if (!notes) { notes 433 fs/proc/kcore.c append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, notes 435 fs/proc/kcore.c append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo, notes 437 fs/proc/kcore.c append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current, notes 446 fs/proc/kcore.c append_kcore_note(notes, &i, VMCOREINFO_NOTE_NAME, 0, notes 451 fs/proc/kcore.c if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) { notes 452 fs/proc/kcore.c kfree(notes); notes 456 fs/proc/kcore.c kfree(notes); notes 805 include/asm-generic/vmlinux.lds.h .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ notes 1610 kernel/module.c unsigned int notes; notes 1639 kernel/module.c unsigned int notes, loaded, i; notes 1648 kernel/module.c notes = 0; notes 1652 kernel/module.c ++notes; notes 1654 kernel/module.c if (notes == 0) notes 1657 kernel/module.c notes_attrs = kzalloc(struct_size(notes_attrs, attrs, notes), notes 1662 kernel/module.c notes_attrs->notes = notes; notes 1683 kernel/module.c for (i = 0; i < notes; ++i) notes 1698 kernel/module.c free_notes_attrs(mod->notes_attrs, mod->notes_attrs->notes); notes 87 tools/perf/builtin-annotate.c struct annotation *notes = sym ? symbol__annotation(sym) : NULL; notes 114 tools/perf/builtin-annotate.c if (notes) notes 115 tools/perf/builtin-annotate.c notes->max_coverage = max(notes->max_coverage, entry->coverage); notes 318 tools/perf/builtin-annotate.c struct annotation *notes; notes 327 tools/perf/builtin-annotate.c notes = symbol__annotation(he->ms.sym); notes 328 tools/perf/builtin-annotate.c if (notes->src == NULL) { notes 384 tools/perf/builtin-annotate.c zfree(¬es->src->cycles_hist); notes 385 tools/perf/builtin-annotate.c zfree(¬es->src); notes 617 tools/perf/builtin-diff.c struct annotation *notes; notes 624 tools/perf/builtin-diff.c notes = symbol__annotation(he->ms.sym); notes 625 tools/perf/builtin-diff.c if (!notes || !notes->src || !notes->src->cycles_hist) notes 631 tools/perf/builtin-diff.c ch = notes->src->cycles_hist; notes 111 tools/perf/builtin-top.c struct annotation *notes; notes 134 tools/perf/builtin-top.c notes = symbol__annotation(sym); notes 135 tools/perf/builtin-top.c pthread_mutex_lock(¬es->lock); notes 138 tools/perf/builtin-top.c pthread_mutex_unlock(¬es->lock); notes 154 tools/perf/builtin-top.c pthread_mutex_unlock(¬es->lock); notes 196 tools/perf/builtin-top.c struct annotation *notes; notes 205 tools/perf/builtin-top.c notes = symbol__annotation(sym); notes 207 tools/perf/builtin-top.c if (pthread_mutex_trylock(¬es->lock)) notes 212 tools/perf/builtin-top.c pthread_mutex_unlock(¬es->lock); notes 237 tools/perf/builtin-top.c struct annotation *notes; notes 247 tools/perf/builtin-top.c notes = symbol__annotation(symbol); notes 249 tools/perf/builtin-top.c pthread_mutex_lock(¬es->lock); notes 253 tools/perf/builtin-top.c if (notes->src == NULL) notes 270 tools/perf/builtin-top.c pthread_mutex_unlock(¬es->lock); notes 48 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(browser); notes 50 tools/perf/ui/browsers/annotate.c return annotation_line__filter(al, notes); notes 55 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(browser); notes 59 tools/perf/ui/browsers/annotate.c if (nr == notes->max_jump_sources) notes 99 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(browser); notes 105 tools/perf/ui/browsers/annotate.c .change_color = (!notes->options->hide_src_code && notes 122 tools/perf/ui/browsers/annotate.c annotation_line__write(al, notes, &ops, ab->opts); notes 155 tools/perf/ui/browsers/annotate.c struct annotation *notes = symbol__annotation(sym); notes 156 tools/perf/ui/browsers/annotate.c u8 pcnt_width = annotation__pcnt_width(notes); notes 186 tools/perf/ui/browsers/annotate.c target = notes->offsets[cursor->ops.target.offset]; notes 193 tools/perf/ui/browsers/annotate.c if (notes->options->hide_src_code) { notes 201 tools/perf/ui/browsers/annotate.c width = annotation__cycles_width(notes); notes 205 tools/perf/ui/browsers/annotate.c pcnt_width + 2 + notes->widths.addr + width, notes 210 tools/perf/ui/browsers/annotate.c pcnt_width + 3 + notes->widths.addr + width, notes 218 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(browser); notes 220 tools/perf/ui/browsers/annotate.c int pcnt_width = annotation__pcnt_width(notes); notes 222 tools/perf/ui/browsers/annotate.c if (notes->options->jump_arrows) notes 268 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 278 tools/perf/ui/browsers/annotate.c if (annotation_line__filter(pos, notes)) notes 292 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 296 tools/perf/ui/browsers/annotate.c if (notes->options->hide_src_code) notes 307 tools/perf/ui/browsers/annotate.c struct annotation *notes = symbol__annotation(sym); notes 312 tools/perf/ui/browsers/annotate.c pthread_mutex_lock(¬es->lock); notes 316 tools/perf/ui/browsers/annotate.c list_for_each_entry(pos, ¬es->src->source, al.node) { notes 341 tools/perf/ui/browsers/annotate.c pthread_mutex_unlock(¬es->lock); notes 348 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 355 tools/perf/ui/browsers/annotate.c if (notes->options->hide_src_code) { notes 359 tools/perf/ui/browsers/annotate.c browser->b.nr_entries = notes->nr_entries; notes 360 tools/perf/ui/browsers/annotate.c notes->options->hide_src_code = false; notes 374 tools/perf/ui/browsers/annotate.c browser->b.nr_entries = notes->nr_asm_entries; notes 375 tools/perf/ui/browsers/annotate.c notes->options->hide_src_code = true; notes 386 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(browser); notes 388 tools/perf/ui/browsers/annotate.c browser->nr_entries = notes->nr_asm_entries; notes 415 tools/perf/ui/browsers/annotate.c struct annotation *notes; notes 423 tools/perf/ui/browsers/annotate.c notes = symbol__annotation(dl->ops.target.sym); notes 424 tools/perf/ui/browsers/annotate.c pthread_mutex_lock(¬es->lock); notes 427 tools/perf/ui/browsers/annotate.c pthread_mutex_unlock(¬es->lock); notes 433 tools/perf/ui/browsers/annotate.c pthread_mutex_unlock(¬es->lock); notes 444 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 448 tools/perf/ui/browsers/annotate.c list_for_each_entry(pos, ¬es->src->source, al.node) { notes 451 tools/perf/ui/browsers/annotate.c if (!annotation_line__filter(&pos->al, notes)) notes 490 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 494 tools/perf/ui/browsers/annotate.c list_for_each_entry_continue(al, ¬es->src->source, node) { notes 495 tools/perf/ui/browsers/annotate.c if (annotation_line__filter(al, notes)) notes 527 tools/perf/ui/browsers/annotate.c struct annotation *notes = browser__annotation(&browser->b); notes 531 tools/perf/ui/browsers/annotate.c list_for_each_entry_continue_reverse(al, ¬es->src->source, node) { notes 532 tools/perf/ui/browsers/annotate.c if (annotation_line__filter(al, notes)) notes 667 tools/perf/ui/browsers/annotate.c struct annotation *notes = symbol__annotation(ms->sym); notes 759 tools/perf/ui/browsers/annotate.c notes->options->show_linenr = !notes->options->show_linenr; notes 769 tools/perf/ui/browsers/annotate.c notes->options->use_offset = !notes->options->use_offset; notes 770 tools/perf/ui/browsers/annotate.c annotation__update_column_widths(notes); notes 773 tools/perf/ui/browsers/annotate.c if (++notes->options->offset_level > ANNOTATION__MAX_OFFSET_LEVEL) notes 774 tools/perf/ui/browsers/annotate.c notes->options->offset_level = ANNOTATION__MIN_OFFSET_LEVEL; notes 777 tools/perf/ui/browsers/annotate.c notes->options->jump_arrows = !notes->options->jump_arrows; notes 780 tools/perf/ui/browsers/annotate.c notes->options->show_nr_jumps = !notes->options->show_nr_jumps; notes 781 tools/perf/ui/browsers/annotate.c annotation__update_column_widths(notes); notes 807 tools/perf/ui/browsers/annotate.c notes->nr_asm_entries); notes 834 tools/perf/ui/browsers/annotate.c if (notes->options->show_total_period) { notes 835 tools/perf/ui/browsers/annotate.c notes->options->show_total_period = false; notes 836 tools/perf/ui/browsers/annotate.c notes->options->show_nr_samples = true; notes 837 tools/perf/ui/browsers/annotate.c } else if (notes->options->show_nr_samples) notes 838 tools/perf/ui/browsers/annotate.c notes->options->show_nr_samples = false; notes 840 tools/perf/ui/browsers/annotate.c notes->options->show_total_period = true; notes 841 tools/perf/ui/browsers/annotate.c annotation__update_column_widths(notes); notes 844 tools/perf/ui/browsers/annotate.c if (notes->options->show_minmax_cycle) notes 845 tools/perf/ui/browsers/annotate.c notes->options->show_minmax_cycle = false; notes 847 tools/perf/ui/browsers/annotate.c notes->options->show_minmax_cycle = true; notes 848 tools/perf/ui/browsers/annotate.c annotation__update_column_widths(notes); notes 896 tools/perf/ui/browsers/annotate.c struct annotation *notes = symbol__annotation(sym); notes 931 tools/perf/ui/browsers/annotate.c browser.b.width = notes->max_line_len; notes 932 tools/perf/ui/browsers/annotate.c browser.b.nr_entries = notes->nr_entries; notes 933 tools/perf/ui/browsers/annotate.c browser.b.entries = ¬es->src->source, notes 936 tools/perf/ui/browsers/annotate.c if (notes->options->hide_src_code) notes 941 tools/perf/ui/browsers/annotate.c annotated_source__purge(notes->src); notes 944 tools/perf/ui/browsers/annotate.c zfree(¬es->offsets); notes 2371 tools/perf/ui/browsers/hists.c struct annotation *notes; notes 2379 tools/perf/ui/browsers/hists.c notes = symbol__annotation(act->ms.sym); notes 2380 tools/perf/ui/browsers/hists.c if (!notes->src) notes 99 tools/perf/ui/gtk/annotate.c struct annotation *notes; notes 107 tools/perf/ui/gtk/annotate.c notes = symbol__annotation(sym); notes 126 tools/perf/ui/gtk/annotate.c list_for_each_entry(pos, ¬es->src->source, al.node) { notes 155 tools/perf/ui/gtk/annotate.c list_for_each_entry_safe(pos, n, ¬es->src->source, al.node) { notes 793 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 796 tools/perf/util/annotate.c notes->src->cycles_hist = calloc(size, sizeof(struct cyc_hist)); notes 797 tools/perf/util/annotate.c if (notes->src->cycles_hist == NULL) notes 804 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 806 tools/perf/util/annotate.c pthread_mutex_lock(¬es->lock); notes 807 tools/perf/util/annotate.c if (notes->src != NULL) { notes 808 tools/perf/util/annotate.c memset(notes->src->histograms, 0, notes 809 tools/perf/util/annotate.c notes->src->nr_histograms * notes->src->sizeof_sym_hist); notes 810 tools/perf/util/annotate.c if (notes->src->cycles_hist) notes 811 tools/perf/util/annotate.c memset(notes->src->cycles_hist, 0, notes 814 tools/perf/util/annotate.c pthread_mutex_unlock(¬es->lock); notes 900 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 902 tools/perf/util/annotate.c if (notes->src == NULL) { notes 903 tools/perf/util/annotate.c notes->src = annotated_source__new(); notes 904 tools/perf/util/annotate.c if (notes->src == NULL) notes 909 tools/perf/util/annotate.c if (!notes->src->cycles_hist) { notes 914 tools/perf/util/annotate.c return notes->src->cycles_hist; notes 919 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 921 tools/perf/util/annotate.c if (notes->src == NULL) { notes 922 tools/perf/util/annotate.c notes->src = annotated_source__new(); notes 923 tools/perf/util/annotate.c if (notes->src == NULL) notes 928 tools/perf/util/annotate.c if (notes->src->histograms == NULL) { notes 930 tools/perf/util/annotate.c annotated_source__alloc_histograms(notes->src, symbol__size(sym), notes 934 tools/perf/util/annotate.c return notes->src; notes 1011 tools/perf/util/annotate.c static unsigned annotation__count_insn(struct annotation *notes, u64 start, u64 end) notes 1017 tools/perf/util/annotate.c if (notes->offsets[offset]) notes 1023 tools/perf/util/annotate.c static void annotation__count_and_fill(struct annotation *notes, u64 start, u64 end, struct cyc_hist *ch) notes 1029 tools/perf/util/annotate.c n_insn = annotation__count_insn(notes, start, end); notes 1038 tools/perf/util/annotate.c struct annotation_line *al = notes->offsets[offset]; notes 1047 tools/perf/util/annotate.c notes->hit_cycles += ch->cycles; notes 1048 tools/perf/util/annotate.c notes->hit_insn += n_insn * ch->num; notes 1049 tools/perf/util/annotate.c notes->cover_insn += cover_insn; notes 1054 tools/perf/util/annotate.c void annotation__compute_ipc(struct annotation *notes, size_t size) notes 1058 tools/perf/util/annotate.c if (!notes->src || !notes->src->cycles_hist) notes 1061 tools/perf/util/annotate.c notes->total_insn = annotation__count_insn(notes, 0, size - 1); notes 1062 tools/perf/util/annotate.c notes->hit_cycles = 0; notes 1063 tools/perf/util/annotate.c notes->hit_insn = 0; notes 1064 tools/perf/util/annotate.c notes->cover_insn = 0; notes 1066 tools/perf/util/annotate.c pthread_mutex_lock(¬es->lock); notes 1070 tools/perf/util/annotate.c ch = ¬es->src->cycles_hist[offset]; notes 1075 tools/perf/util/annotate.c annotation__count_and_fill(notes, ch->start, offset, ch); notes 1076 tools/perf/util/annotate.c al = notes->offsets[offset]; notes 1082 tools/perf/util/annotate.c notes->have_cycles = true; notes 1085 tools/perf/util/annotate.c pthread_mutex_unlock(¬es->lock); notes 1380 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 1402 tools/perf/util/annotate.c list_for_each_entry_from(queue, ¬es->src->source, node) { notes 1493 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 1566 tools/perf/util/annotate.c annotation_line__add(&dl->al, ¬es->src->source); notes 1578 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 1579 tools/perf/util/annotate.c struct list_head *list = ¬es->src->source; notes 1714 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 1829 tools/perf/util/annotate.c ¬es->src->source); notes 1839 tools/perf/util/annotate.c annotation_line__add(&dl->al, ¬es->src->source); notes 2036 tools/perf/util/annotate.c static void annotation__calc_percent(struct annotation *notes, notes 2042 tools/perf/util/annotate.c list_for_each_entry(al, ¬es->src->source, node) { notes 2049 tools/perf/util/annotate.c next = annotation_line__next(al, ¬es->src->source); notes 2059 tools/perf/util/annotate.c sym_hist = annotation__histogram(notes, evsel->idx); notes 2069 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2071 tools/perf/util/annotate.c annotation__calc_percent(notes, evsel, symbol__size(sym)); notes 2079 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2110 tools/perf/util/annotate.c notes->start = map__rip_2objdump(map, sym->start); notes 2242 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2243 tools/perf/util/annotate.c struct sym_hist *h = annotation__histogram(notes, evsel->idx); notes 2274 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2275 tools/perf/util/annotate.c struct sym_hist *h = annotation__histogram(notes, evsel->idx); notes 2316 tools/perf/util/annotate.c addr_fmt_width = annotated_source__addr_fmt_width(¬es->src->source, start); notes 2318 tools/perf/util/annotate.c list_for_each_entry(pos, ¬es->src->source, node) { notes 2408 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2420 tools/perf/util/annotate.c list_for_each_entry(al, ¬es->src->source, node) { notes 2421 tools/perf/util/annotate.c if (annotation_line__filter(al, notes)) notes 2423 tools/perf/util/annotate.c annotation_line__write(al, notes, &wops, opts); notes 2465 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2466 tools/perf/util/annotate.c struct sym_hist *h = annotation__histogram(notes, evidx); notes 2468 tools/perf/util/annotate.c memset(h, 0, notes->src->sizeof_sym_hist); notes 2473 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2474 tools/perf/util/annotate.c struct sym_hist *h = annotation__histogram(notes, evidx); notes 2532 tools/perf/util/annotate.c void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym) notes 2541 tools/perf/util/annotate.c struct annotation_line *al = notes->offsets[offset]; notes 2549 tools/perf/util/annotate.c al = notes->offsets[dl->ops.target.offset]; notes 2558 tools/perf/util/annotate.c if (++al->jump_sources > notes->max_jump_sources) notes 2559 tools/perf/util/annotate.c notes->max_jump_sources = al->jump_sources; notes 2561 tools/perf/util/annotate.c ++notes->nr_jumps; notes 2565 tools/perf/util/annotate.c void annotation__set_offsets(struct annotation *notes, s64 size) notes 2569 tools/perf/util/annotate.c notes->max_line_len = 0; notes 2571 tools/perf/util/annotate.c list_for_each_entry(al, ¬es->src->source, node) { notes 2574 tools/perf/util/annotate.c if (notes->max_line_len < line_len) notes 2575 tools/perf/util/annotate.c notes->max_line_len = line_len; notes 2576 tools/perf/util/annotate.c al->idx = notes->nr_entries++; notes 2578 tools/perf/util/annotate.c al->idx_asm = notes->nr_asm_entries++; notes 2587 tools/perf/util/annotate.c notes->offsets[al->offset] = al; notes 2602 tools/perf/util/annotate.c static int annotation__max_ins_name(struct annotation *notes) notes 2607 tools/perf/util/annotate.c list_for_each_entry(al, ¬es->src->source, node) { notes 2619 tools/perf/util/annotate.c void annotation__init_column_widths(struct annotation *notes, struct symbol *sym) notes 2621 tools/perf/util/annotate.c notes->widths.addr = notes->widths.target = notes 2622 tools/perf/util/annotate.c notes->widths.min_addr = hex_width(symbol__size(sym)); notes 2623 tools/perf/util/annotate.c notes->widths.max_addr = hex_width(sym->end); notes 2624 tools/perf/util/annotate.c notes->widths.jumps = width_jumps(notes->max_jump_sources); notes 2625 tools/perf/util/annotate.c notes->widths.max_ins_name = annotation__max_ins_name(notes); notes 2628 tools/perf/util/annotate.c void annotation__update_column_widths(struct annotation *notes) notes 2630 tools/perf/util/annotate.c if (notes->options->use_offset) notes 2631 tools/perf/util/annotate.c notes->widths.target = notes->widths.min_addr; notes 2633 tools/perf/util/annotate.c notes->widths.target = notes->widths.max_addr; notes 2635 tools/perf/util/annotate.c notes->widths.addr = notes->widths.target; notes 2637 tools/perf/util/annotate.c if (notes->options->show_nr_jumps) notes 2638 tools/perf/util/annotate.c notes->widths.addr += notes->widths.jumps + 1; notes 2641 tools/perf/util/annotate.c static void annotation__calc_lines(struct annotation *notes, struct map *map, notes 2648 tools/perf/util/annotate.c list_for_each_entry(al, ¬es->src->source, node) { notes 2665 tools/perf/util/annotate.c al->path = get_srcline(map->dso, notes->start + al->offset, NULL, notes 2666 tools/perf/util/annotate.c false, true, notes->start + al->offset); notes 2677 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2679 tools/perf/util/annotate.c annotation__calc_lines(notes, map, root, opts); notes 2742 tools/perf/util/annotate.c struct annotation *notes, notes 2748 tools/perf/util/annotate.c for (i = 0; i < notes->nr_events; i++) { notes 2761 tools/perf/util/annotate.c static void disasm_line__write(struct disasm_line *dl, struct annotation *notes, notes 2789 tools/perf/util/annotate.c disasm_line__scnprintf(dl, bf, size, !notes->options->use_offset, notes->widths.max_ins_name); notes 2792 tools/perf/util/annotate.c static void ipc_coverage_string(char *bf, int size, struct annotation *notes) notes 2796 tools/perf/util/annotate.c if (notes->hit_cycles) notes 2797 tools/perf/util/annotate.c ipc = notes->hit_insn / ((double)notes->hit_cycles); notes 2799 tools/perf/util/annotate.c if (notes->total_insn) { notes 2800 tools/perf/util/annotate.c coverage = notes->cover_insn * 100.0 / notes 2801 tools/perf/util/annotate.c ((double)notes->total_insn); notes 2808 tools/perf/util/annotate.c static void __annotation_line__write(struct annotation_line *al, struct annotation *notes, notes 2818 tools/perf/util/annotate.c double percent_max = annotation_line__max_percent(al, notes, percent_type); notes 2819 tools/perf/util/annotate.c int pcnt_width = annotation__pcnt_width(notes), notes 2820 tools/perf/util/annotate.c cycles_width = annotation__cycles_width(notes); notes 2826 tools/perf/util/annotate.c if (notes->have_cycles) { notes 2836 tools/perf/util/annotate.c for (i = 0; i < notes->nr_events; i++) { notes 2842 tools/perf/util/annotate.c if (notes->options->show_total_period) { notes 2844 tools/perf/util/annotate.c } else if (notes->options->show_nr_samples) { notes 2858 tools/perf/util/annotate.c notes->options->show_total_period ? "Period" : notes 2859 tools/perf/util/annotate.c notes->options->show_nr_samples ? "Samples" : "Percent"); notes 2863 tools/perf/util/annotate.c if (notes->have_cycles) { notes 2871 tools/perf/util/annotate.c if (!notes->options->show_minmax_cycle) { notes 2905 tools/perf/util/annotate.c ipc_coverage_string(bf, sizeof(bf), notes); notes 2915 tools/perf/util/annotate.c if (al->line_nr && notes->options->show_linenr) notes 2916 tools/perf/util/annotate.c printed = scnprintf(bf, sizeof(bf), "%-*d ", notes->widths.addr + 1, al->line_nr); notes 2918 tools/perf/util/annotate.c printed = scnprintf(bf, sizeof(bf), "%-*s ", notes->widths.addr, " "); notes 2925 tools/perf/util/annotate.c if (!notes->options->use_offset) notes 2926 tools/perf/util/annotate.c addr += notes->start; notes 2928 tools/perf/util/annotate.c if (!notes->options->use_offset) { notes 2932 tools/perf/util/annotate.c notes->options->offset_level >= ANNOTATION__OFFSET_JUMP_TARGETS) { notes 2933 tools/perf/util/annotate.c if (notes->options->show_nr_jumps) { notes 2936 tools/perf/util/annotate.c notes->widths.jumps, notes 2945 tools/perf/util/annotate.c notes->widths.target, addr); notes 2947 tools/perf/util/annotate.c notes->options->offset_level >= ANNOTATION__OFFSET_CALL) { notes 2949 tools/perf/util/annotate.c } else if (notes->options->offset_level == ANNOTATION__MAX_OFFSET_LEVEL) { notes 2953 tools/perf/util/annotate.c notes->widths.addr, " "); notes 2963 tools/perf/util/annotate.c disasm_line__write(disasm_line(al), notes, obj, bf, sizeof(bf), obj__printf, obj__write_graph); notes 2970 tools/perf/util/annotate.c void annotation_line__write(struct annotation_line *al, struct annotation *notes, notes 2974 tools/perf/util/annotate.c __annotation_line__write(al, notes, wops->first_line, wops->current_entry, notes 2985 tools/perf/util/annotate.c struct annotation *notes = symbol__annotation(sym); notes 2989 tools/perf/util/annotate.c notes->offsets = zalloc(size * sizeof(struct annotation_line *)); notes 2990 tools/perf/util/annotate.c if (notes->offsets == NULL) notes 3000 tools/perf/util/annotate.c notes->options = options; notes 3004 tools/perf/util/annotate.c annotation__set_offsets(notes, size); notes 3005 tools/perf/util/annotate.c annotation__mark_jump_targets(notes, sym); notes 3006 tools/perf/util/annotate.c annotation__compute_ipc(notes, size); notes 3007 tools/perf/util/annotate.c annotation__init_column_widths(notes, sym); notes 3008 tools/perf/util/annotate.c notes->nr_events = nr_pcnt; notes 3010 tools/perf/util/annotate.c annotation__update_column_widths(notes); notes 3016 tools/perf/util/annotate.c zfree(¬es->offsets); notes 213 tools/perf/util/annotate.h void annotation_line__write(struct annotation_line *al, struct annotation *notes, notes 217 tools/perf/util/annotate.h int __annotation__scnprintf_samples_period(struct annotation *notes, notes 298 tools/perf/util/annotate.h static inline int annotation__cycles_width(struct annotation *notes) notes 300 tools/perf/util/annotate.h if (notes->have_cycles && notes->options->show_minmax_cycle) notes 303 tools/perf/util/annotate.h return notes->have_cycles ? ANNOTATION__IPC_WIDTH + ANNOTATION__CYCLES_WIDTH : 0; notes 306 tools/perf/util/annotate.h static inline int annotation__pcnt_width(struct annotation *notes) notes 308 tools/perf/util/annotate.h return (notes->options->show_total_period ? 12 : 7) * notes->nr_events; notes 311 tools/perf/util/annotate.h static inline bool annotation_line__filter(struct annotation_line *al, struct annotation *notes) notes 313 tools/perf/util/annotate.h return notes->options->hide_src_code && al->offset == -1; notes 316 tools/perf/util/annotate.h void annotation__set_offsets(struct annotation *notes, s64 size); notes 317 tools/perf/util/annotate.h void annotation__compute_ipc(struct annotation *notes, size_t size); notes 318 tools/perf/util/annotate.h void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym); notes 319 tools/perf/util/annotate.h void annotation__update_column_widths(struct annotation *notes); notes 320 tools/perf/util/annotate.h void annotation__init_column_widths(struct annotation *notes, struct symbol *sym); notes 327 tools/perf/util/annotate.h static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) notes 329 tools/perf/util/annotate.h return annotated_source__histogram(notes->src, idx); notes 111 tools/perf/util/build-id.c char notes[PATH_MAX]; notes 118 tools/perf/util/build-id.c scnprintf(notes, sizeof(notes), "%s/sys/kernel/notes", root_dir); notes 120 tools/perf/util/build-id.c ret = sysfs__read_build_id(notes, build_id, sizeof(build_id)); notes 449 tools/perf/util/sort.c struct annotation *notes; notes 456 tools/perf/util/sort.c notes = symbol__annotation(sym); notes 458 tools/perf/util/sort.c if (notes->hit_cycles) notes 459 tools/perf/util/sort.c ipc = notes->hit_insn / ((double)notes->hit_cycles); notes 461 tools/perf/util/sort.c if (notes->total_insn) { notes 462 tools/perf/util/sort.c coverage = notes->cover_insn * 100.0 / notes 463 tools/perf/util/sort.c ((double)notes->total_insn); notes 280 tools/perf/util/symbol.c struct annotation *notes = (void *)sym; notes 281 tools/perf/util/symbol.c pthread_mutex_init(¬es->lock, NULL);