/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | addr_location.c | 7 void addr_location__init(struct addr_location *al) in addr_location__init() argument 9 al->thread = NULL; in addr_location__init() 10 al->maps = NULL; in addr_location__init() 11 al->map = NULL; in addr_location__init() 12 al->sym = NULL; in addr_location__init() 13 al->srcline = NULL; in addr_location__init() 14 al->addr = 0; in addr_location__init() 15 al->level = 0; in addr_location__init() 16 al->filtered = 0; in addr_location__init() 17 al in addr_location__init() 28 addr_location__exit(struct addr_location *al) addr_location__exit() argument [all...] |
H A D | event.c | 511 struct addr_location al; in perf_event__fprintf_text_poke() local 513 addr_location__init(&al); in perf_event__fprintf_text_poke() 514 al.map = map__get(maps__find(machine__kernel_maps(machine), tp->addr)); in perf_event__fprintf_text_poke() 515 if (al.map && map__load(al.map) >= 0) { in perf_event__fprintf_text_poke() 516 al.addr = map__map_ip(al.map, tp->addr); in perf_event__fprintf_text_poke() 517 al.sym = map__find_symbol(al.map, al in perf_event__fprintf_text_poke() 598 thread__find_map(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_map() argument 663 thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_map_fb() argument 676 thread__find_symbol(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_symbol() argument 685 thread__find_symbol_fb(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_symbol_fb() argument 711 machine__resolve(struct machine *machine, struct addr_location *al, struct perf_sample *sample) machine__resolve() argument 819 thread__resolve(struct thread *thread, struct addr_location *al, struct perf_sample *sample) thread__resolve() argument [all...] |
H A D | dlfilter.c | 28 static void al_to_d_al(struct addr_location *al, struct perf_dlfilter_al *d_al) in al_to_d_al() argument 30 struct symbol *sym = al->sym; in al_to_d_al() 33 if (al->map) { in al_to_d_al() 34 struct dso *dso = map__dso(al->map); in al_to_d_al() 53 if (al->addr < sym->end) in al_to_d_al() 54 d_al->symoff = al->addr - sym->start; in al_to_d_al() 56 d_al->symoff = al->addr - map__start(al->map) - sym->start; in al_to_d_al() 65 d_al->addr = al->addr; in al_to_d_al() 73 struct addr_location *al in get_al() local 82 struct addr_location *al = get_al(d); get_thread() local 91 struct addr_location *al; dlfilter__resolve_ip() local 166 struct addr_location al; dlfilter__resolve_address() local 198 struct addr_location *al; dlfilter__al_cleanup() local 226 struct addr_location *al = d->al; dlfilter__insn() local 250 struct addr_location *al; dlfilter__srcline() local 298 struct addr_location *al; dlfilter__object_code() local 488 dlfilter__do_filter_event(struct dlfilter *d, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine, struct addr_location *al, struct addr_location *addr_al, bool early) dlfilter__do_filter_event() argument [all...] |
H A D | unwind-libdw.c | 44 static int __report_module(struct addr_location *al, u64 ip, in __report_module() argument 51 * Some callers will use al->sym, so we can't just use the in __report_module() 54 thread__find_symbol(ui->thread, PERF_RECORD_MISC_USER, ip, al); in __report_module() 56 if (al->map) in __report_module() 57 dso = map__dso(al->map); in __report_module() 70 base = map__start(al->map); in __report_module() 72 base = map__start(al->map) - map__pgoff(al->map); in __report_module() 110 struct addr_location al; in report_module() local 113 addr_location__init(&al); in report_module() 127 struct addr_location al; entry() local 161 struct addr_location al; access_dso_mem() local [all...] |
H A D | symbol_fprintf.c | 20 const struct addr_location *al, in __symbol__fprintf_symname_offs() 29 if (al && print_offsets) { in __symbol__fprintf_symname_offs() 30 if (al->addr < sym->end) in __symbol__fprintf_symname_offs() 31 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs() 33 offset = al->addr - map__start(al->map) - sym->start; in __symbol__fprintf_symname_offs() 37 } else if (al && unknown_as_addr) in __symbol__fprintf_symname_offs() 38 return fprintf(fp, "[%#" PRIx64 "]", al->addr); in __symbol__fprintf_symname_offs() 44 const struct addr_location *al, in symbol__fprintf_symname_offs() 47 return __symbol__fprintf_symname_offs(sym, al, fals in symbol__fprintf_symname_offs() 19 __symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, bool print_offsets, FILE *fp) __symbol__fprintf_symname_offs() argument 43 symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, FILE *fp) symbol__fprintf_symname_offs() argument 50 __symbol__fprintf_symname(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, FILE *fp) __symbol__fprintf_symname() argument [all...] |
H A D | db-export.c | 176 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument 181 if (al->map) { in db_ids_from_al() 182 struct dso *dso = map__dso(al->map); in db_ids_from_al() 184 err = db_export__dso(dbe, dso, maps__machine(al->maps)); in db_ids_from_al() 189 if (!al->sym) { in db_ids_from_al() 190 al->sym = symbol__new(al->addr, 0, 0, 0, "unknown"); in db_ids_from_al() 191 if (al->sym) in db_ids_from_al() 192 dso__insert_symbol(dso, al->sym); in db_ids_from_al() 195 if (al in db_ids_from_al() 241 struct addr_location al; call_path_from_sample() local 348 db_export__sample(struct db_export *dbe, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al) db_export__sample() argument [all...] |
H A D | annotate.c | 1101 struct annotation_line *al = notes->offsets[offset]; in annotation__count_and_fill() local 1103 if (al && al->ipc == 0.0) { in annotation__count_and_fill() 1104 al->ipc = ipc; in annotation__count_and_fill() 1135 struct annotation_line *al; in annotation__compute_ipc() local 1139 al = notes->offsets[offset]; in annotation__compute_ipc() 1140 if (al && ch->num_aggr) { in annotation__compute_ipc() 1141 al->cycles = ch->cycles_aggr / ch->num_aggr; in annotation__compute_ipc() 1142 al->cycles_max = ch->cycles_max; in annotation__compute_ipc() 1143 al in annotation__compute_ipc() 1213 annotation_line__init(struct annotation_line *al, struct annotate_args *args, int nr) annotation_line__init() argument 1224 annotation_line__exit(struct annotation_line *al) annotation_line__exit() argument 1232 struct annotation_line *al; disasm_line_size() local 1357 annotation_line__add(struct annotation_line *al, struct list_head *head) annotation_line__add() argument 1468 annotation_line__print(struct annotation_line *al, struct symbol *sym, u64 start, struct evsel *evsel, u64 len, int min_pcnt, int printed, int max_lines, struct annotation_line *queue, int addr_fmt_width, int percent_type) annotation_line__print() argument 2267 struct annotation_line *al, *next; annotation__calc_percent() local 2345 insert_source_line(struct rb_root *root, struct annotation_line *al, struct annotation_options *opts) insert_source_line() argument 2394 __resort_source_line(struct rb_root *root, struct annotation_line *al) __resort_source_line() argument 2416 struct annotation_line *al; resort_source_line() local 2434 struct annotation_line *al; print_summary() local 2649 struct annotation_line *al; symbol__annotate_fprintf2() local 2717 struct annotation_line *al, *n; annotated_source__purge() local 2772 struct annotation_line *al = notes->offsets[offset]; annotation__mark_jump_targets() local 2796 struct annotation_line *al; annotation__set_offsets() local 2836 struct annotation_line *al; annotation__max_ins_name() local 2890 struct annotation_line *al; annotation__calc_lines() local 3001 annotation_line__max_percent(struct annotation_line *al, struct annotation *notes, unsigned int percent_type) annotation_line__max_percent() argument 3068 __annotation_line__write(struct annotation_line *al, struct annotation *notes, bool first_line, bool current_entry, bool change_color, int width, void *obj, unsigned int percent_type, int (*obj__set_color)(void *obj, int color), void (*obj__set_percent_color)(void *obj, double percent, bool current), int (*obj__set_jumps_percent_color)(void *obj, int nr, bool current), void (*obj__printf)(void *obj, const char *fmt, ...), void (*obj__write_graph)(void *obj, int graph)) __annotation_line__write() argument 3230 annotation_line__write(struct annotation_line *al, struct annotation *notes, struct annotation_write_ops *wops, struct annotation_options *opts) annotation_line__write() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | event.c | 451 struct addr_location al; in perf_event__fprintf_text_poke() local 453 al.map = maps__find(&machine->kmaps, tp->addr); in perf_event__fprintf_text_poke() 454 if (al.map && map__load(al.map) >= 0) { in perf_event__fprintf_text_poke() 455 al.addr = al.map->map_ip(al.map, tp->addr); in perf_event__fprintf_text_poke() 456 al.sym = map__find_symbol(al.map, al in perf_event__fprintf_text_poke() 533 thread__find_map(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_map() argument 598 thread__find_map_fb(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_map_fb() argument 611 thread__find_symbol(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_symbol() argument 620 thread__find_symbol_fb(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) thread__find_symbol_fb() argument 633 machine__resolve(struct machine *machine, struct addr_location *al, struct perf_sample *sample) machine__resolve() argument 708 addr_location__put(struct addr_location *al) addr_location__put() argument 734 thread__resolve(struct thread *thread, struct addr_location *al, struct perf_sample *sample) thread__resolve() argument [all...] |
H A D | db-export.c | 176 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument 181 if (al->map) { in db_ids_from_al() 182 struct dso *dso = al->map->dso; in db_ids_from_al() 184 err = db_export__dso(dbe, dso, al->maps->machine); in db_ids_from_al() 189 if (!al->sym) { in db_ids_from_al() 190 al->sym = symbol__new(al->addr, 0, 0, 0, "unknown"); in db_ids_from_al() 191 if (al->sym) in db_ids_from_al() 192 dso__insert_symbol(dso, al->sym); in db_ids_from_al() 195 if (al in db_ids_from_al() 239 struct addr_location al; call_path_from_sample() local 344 db_export__sample(struct db_export *dbe, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct addr_location *al) db_export__sample() argument [all...] |
H A D | unwind-libdw.c | 43 static int __report_module(struct addr_location *al, u64 ip, in __report_module() argument 49 * Some callers will use al->sym, so we can't just use the in __report_module() 52 thread__find_symbol(ui->thread, PERF_RECORD_MISC_USER, ip, al); in __report_module() 54 if (al->map) in __report_module() 55 dso = al->map->dso; in __report_module() 65 if (s != al->map->start - al->map->pgoff) in __report_module() 71 al->map->start - al->map->pgoff, false); in __report_module() 77 al in __report_module() 92 struct addr_location al; report_module() local 105 struct addr_location al; entry() local 135 struct addr_location al; access_dso_mem() local [all...] |
H A D | symbol_fprintf.c | 20 const struct addr_location *al, in __symbol__fprintf_symname_offs() 29 if (al && print_offsets) { in __symbol__fprintf_symname_offs() 30 if (al->addr < sym->end) in __symbol__fprintf_symname_offs() 31 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs() 33 offset = al->addr - al->map->start - sym->start; in __symbol__fprintf_symname_offs() 37 } else if (al && unknown_as_addr) in __symbol__fprintf_symname_offs() 38 return fprintf(fp, "[%#" PRIx64 "]", al->addr); in __symbol__fprintf_symname_offs() 44 const struct addr_location *al, in symbol__fprintf_symname_offs() 47 return __symbol__fprintf_symname_offs(sym, al, fals in symbol__fprintf_symname_offs() 19 __symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, bool print_offsets, FILE *fp) __symbol__fprintf_symname_offs() argument 43 symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, FILE *fp) symbol__fprintf_symname_offs() argument 50 __symbol__fprintf_symname(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, FILE *fp) __symbol__fprintf_symname() argument [all...] |
H A D | annotate.c | 1059 struct annotation_line *al = notes->offsets[offset]; in annotation__count_and_fill() local 1061 if (al && al->ipc == 0.0) { in annotation__count_and_fill() 1062 al->ipc = ipc; in annotation__count_and_fill() 1093 struct annotation_line *al; in annotation__compute_ipc() local 1097 al = notes->offsets[offset]; in annotation__compute_ipc() 1098 if (al && ch->num_aggr) { in annotation__compute_ipc() 1099 al->cycles = ch->cycles_aggr / ch->num_aggr; in annotation__compute_ipc() 1100 al->cycles_max = ch->cycles_max; in annotation__compute_ipc() 1101 al in annotation__compute_ipc() 1170 annotation_line__init(struct annotation_line *al, struct annotate_args *args, int nr) annotation_line__init() argument 1180 annotation_line__exit(struct annotation_line *al) annotation_line__exit() argument 1188 struct annotation_line *al; disasm_line_size() local 1255 annotation_line__add(struct annotation_line *al, struct list_head *head) annotation_line__add() argument 1366 annotation_line__print(struct annotation_line *al, struct symbol *sym, u64 start, struct evsel *evsel, u64 len, int min_pcnt, int printed, int max_lines, struct annotation_line *queue, int addr_fmt_width, int percent_type) annotation_line__print() argument 2140 struct annotation_line *al, *next; annotation__calc_percent() local 2215 insert_source_line(struct rb_root *root, struct annotation_line *al, struct annotation_options *opts) insert_source_line() argument 2264 __resort_source_line(struct rb_root *root, struct annotation_line *al) __resort_source_line() argument 2286 struct annotation_line *al; resort_source_line() local 2304 struct annotation_line *al; print_summary() local 2519 struct annotation_line *al; symbol__annotate_fprintf2() local 2587 struct annotation_line *al, *n; annotated_source__purge() local 2642 struct annotation_line *al = notes->offsets[offset]; annotation__mark_jump_targets() local 2666 struct annotation_line *al; annotation__set_offsets() local 2706 struct annotation_line *al; annotation__max_ins_name() local 2746 struct annotation_line *al; annotation__calc_lines() local 2841 annotation_line__max_percent(struct annotation_line *al, struct annotation *notes, unsigned int percent_type) annotation_line__max_percent() argument 2908 __annotation_line__write(struct annotation_line *al, struct annotation *notes, bool first_line, bool current_entry, bool change_color, int width, void *obj, unsigned int percent_type, int (*obj__set_color)(void *obj, int color), void (*obj__set_percent_color)(void *obj, double percent, bool current), int (*obj__set_jumps_percent_color)(void *obj, int nr, bool current), void (*obj__printf)(void *obj, const char *fmt, ...), void (*obj__write_graph)(void *obj, int graph)) __annotation_line__write() argument 3070 annotation_line__write(struct annotation_line *al, struct annotation *notes, struct annotation_write_ops *wops, struct annotation_options *opts) annotation_line__write() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/ui/browsers/ |
H A D | annotate.c | 44 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in disasm_line__filter() local 45 return annotation_line__filter(al, notes); in disasm_line__filter() 95 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in annotate_browser__write() local 117 annotation_line__write(al, notes, &ops, ab->opts); in annotate_browser__write() 120 ab->selection = al; in annotate_browser__write() 125 struct disasm_line *pos = list_prev_entry(cursor, al.node); in is_fused() 129 while (pos && pos->al.offset == -1) { in is_fused() 130 pos = list_prev_entry(pos, al.node); in is_fused() 199 from = cursor->al.idx_asm; in annotate_browser__draw_current_jump() 202 from = (u64)cursor->al in annotate_browser__draw_current_jump() 249 disasm_rb_tree__insert(struct annotate_browser *browser, struct annotation_line *al) disasm_rb_tree__insert() argument 351 annotate_browser__find_next_asm_line( struct annotate_browser *browser, struct annotation_line *al) annotate_browser__find_next_asm_line() argument 377 struct annotation_line *al; annotate_browser__toggle_source() local 421 struct annotation_line *al = &cursor->al; annotate_browser__show_full_location() local 543 struct annotation_line *al = browser->selection; annotate_browser__find_string() local 561 struct annotation_line *al; __annotate_browser__search() local 580 struct annotation_line *al = browser->selection; annotate_browser__find_string_reverse() local 598 struct annotation_line *al; __annotate_browser__search_reverse() local [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | attrlist.c | 297 typeof(ni->attr_list) *al = &ni->attr_list; in al_add_le() 303 old_size = al->size; in al_add_le() 310 off = PtrOffset(al->le, le); in al_add_le() 318 memcpy(ptr, al->le, off); in al_add_le() 321 kvfree(al->le); in al_add_le() 322 al->le = ptr; in al_add_le() 328 al->size = new_size; in al_add_le() 339 err = attr_set_size(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le() 344 al->size = old_size; in al_add_le() 348 al in al_add_le() [all...] |
/kernel/linux/linux-5.10/arch/arm/lib/ |
H A D | ashrdi3.S | 33 #define al r1 define 36 #define al r0 define 45 movmi al, al, lsr r2 46 movpl al, ah, asr r3 47 ARM( orrmi al, al, ah, lsl ip ) 49 THUMB( orrmi al, al, r3 )
|
H A D | lshrdi3.S | 33 #define al r1 define 36 #define al r0 define 45 movmi al, al, lsr r2 46 movpl al, ah, lsr r3 47 ARM( orrmi al, al, ah, lsl ip ) 49 THUMB( orrmi al, al, r3 )
|
H A D | ashldi3.S | 33 #define al r1 define 36 #define al r0 define 46 movpl ah, al, lsl r3 47 ARM( orrmi ah, ah, al, lsr ip ) 48 THUMB( lsrmi r3, al, ip ) 50 mov al, al, lsl r2
|
/kernel/linux/linux-6.6/arch/arm/lib/ |
H A D | lshrdi3.S | 33 #define al r1 define 36 #define al r0 define 45 movmi al, al, lsr r2 46 movpl al, ah, lsr r3 47 ARM( orrmi al, al, ah, lsl ip ) 49 THUMB( orrmi al, al, r3 )
|
H A D | ashrdi3.S | 33 #define al r1 define 36 #define al r0 define 45 movmi al, al, lsr r2 46 movpl al, ah, asr r3 47 ARM( orrmi al, al, ah, lsl ip ) 49 THUMB( orrmi al, al, r3 )
|
H A D | ashldi3.S | 33 #define al r1 define 36 #define al r0 define 46 movpl ah, al, lsl r3 47 ARM( orrmi ah, ah, al, lsr ip ) 48 THUMB( lsrmi r3, al, ip ) 50 mov al, al, lsl r2
|
/kernel/linux/linux-5.10/tools/perf/ui/browsers/ |
H A D | annotate.c | 49 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in disasm_line__filter() local 50 return annotation_line__filter(al, notes); in disasm_line__filter() 100 struct annotation_line *al = list_entry(entry, struct annotation_line, node); in annotate_browser__write() local 122 annotation_line__write(al, notes, &ops, ab->opts); in annotate_browser__write() 125 ab->selection = al; in annotate_browser__write() 130 struct disasm_line *pos = list_prev_entry(cursor, al.node); in is_fused() 194 from = cursor->al.idx_asm; in annotate_browser__draw_current_jump() 197 from = (u64)cursor->al.idx; in annotate_browser__draw_current_jump() 245 struct annotation_line *al) in disasm_rb_tree__insert() 256 if (disasm__cmp(al, in disasm_rb_tree__insert() 244 disasm_rb_tree__insert(struct annotate_browser *browser, struct annotation_line *al) disasm_rb_tree__insert() argument 349 struct annotation_line *al; annotate_browser__toggle_source() local 494 struct annotation_line *al = browser->selection; annotate_browser__find_string() local 512 struct annotation_line *al; __annotate_browser__search() local 531 struct annotation_line *al = browser->selection; annotate_browser__find_string_reverse() local 549 struct annotation_line *al; __annotate_browser__search_reverse() local [all...] |
/kernel/linux/linux-5.10/lib/mpi/ |
H A D | longlong.h | 114 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 121 "%r" ((USItype)(al)), \ 123 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ 130 "r" ((USItype)(al)), \ 176 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 183 "%r" ((USItype)(al)), \ 185 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ 192 "r" ((USItype)(al)), \ 263 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 270 "%1" ((USItype)(al)), \ [all...] |
/kernel/linux/linux-6.6/lib/crypto/mpi/ |
H A D | longlong.h | 114 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 121 "%r" ((USItype)(al)), \ 123 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ 130 "r" ((USItype)(al)), \ 176 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 183 "%r" ((USItype)(al)), \ 185 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ 192 "r" ((USItype)(al)), \ 263 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ 270 "%1" ((USItype)(al)), \ [all...] |
/kernel/linux/linux-6.6/tools/perf/dlfilters/ |
H A D | dlfilter-test-api-v2.c | 110 * Return information about address (al->size must be set before 112 * when 'al' data is no longer needed. 114 __s32 (*resolve_address)(void *ctx, __u64 address, struct perf_dlfilter_al *al); 127 void (*al_cleanup)(void *ctx, struct perf_dlfilter_al *al); 246 const struct perf_dlfilter_al *al; in check_al() local 248 al = perf_dlfilter_fns.resolve_ip(ctx); in check_al() 249 if (!al) in check_al() 252 CHECK(al->sym && !strcmp("foo", al->sym)); in check_al() 253 CHECK(!al in check_al() 275 const struct perf_dlfilter_al *al; check_address_al() local [all...] |
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-mem.c | 149 struct addr_location al; in dump_raw_samples() local 152 if (machine__resolve(machine, &al, sample) < 0) { in dump_raw_samples() 158 if (al.filtered || (mem->hide_unresolved && al.sym == NULL)) in dump_raw_samples() 161 if (al.map != NULL) in dump_raw_samples() 162 al.map->dso->hit = 1; in dump_raw_samples() 190 al.map ? (al.map->dso ? al.map->dso->long_name : "???") : "???", in dump_raw_samples() 191 al in dump_raw_samples() [all...] |