Home
last modified time | relevance | path

Searched refs:al (Results 1 – 25 of 49) sorted by relevance

12

/tools/perf/util/
Dunwind-libdw.c26 static int __report_module(struct addr_location *al, u64 ip, in __report_module() argument
34 MAP__FUNCTION, ip, al); in __report_module()
36 if (al->map) in __report_module()
37 dso = al->map->dso; in __report_module()
47 if (s != al->map->start - al->map->pgoff) in __report_module()
53 …(dso->symsrc_filename ? dso->symsrc_filename : dso->long_name), -1, al->map->start - al->map->pgof… in __report_module()
61 struct addr_location al; in report_module() local
63 return __report_module(&al, ip, ui); in report_module()
74 struct addr_location al; in entry() local
76 if (__report_module(&al, ip, ui)) in entry()
[all …]
Dsymbol_fprintf.c18 const struct addr_location *al, in __symbol__fprintf_symname_offs() argument
27 if (al && print_offsets) { in __symbol__fprintf_symname_offs()
28 if (al->addr < sym->end) in __symbol__fprintf_symname_offs()
29 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs()
31 offset = al->addr - al->map->start - sym->start; in __symbol__fprintf_symname_offs()
35 } else if (al && unknown_as_addr) in __symbol__fprintf_symname_offs()
36 return fprintf(fp, "[%#" PRIx64 "]", al->addr); in __symbol__fprintf_symname_offs()
42 const struct addr_location *al, in symbol__fprintf_symname_offs() argument
45 return __symbol__fprintf_symname_offs(sym, al, false, true, fp); in symbol__fprintf_symname_offs()
49 const struct addr_location *al, in __symbol__fprintf_symname() argument
[all …]
Ddb-export.c236 static int db_ids_from_al(struct db_export *dbe, struct addr_location *al, in db_ids_from_al() argument
241 if (al->map) { in db_ids_from_al()
242 struct dso *dso = al->map->dso; in db_ids_from_al()
244 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
249 if (!al->sym) { in db_ids_from_al()
250 al->sym = symbol__new(al->addr, 0, 0, "unknown"); in db_ids_from_al()
251 if (al->sym) in db_ids_from_al()
252 dso__insert_symbol(dso, al->map->type, al->sym); in db_ids_from_al()
255 if (al->sym) { in db_ids_from_al()
256 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al()
[all …]
Devent.c1381 struct addr_location *al) in thread__find_addr_map() argument
1387 al->machine = machine; in thread__find_addr_map()
1388 al->thread = thread; in thread__find_addr_map()
1389 al->addr = addr; in thread__find_addr_map()
1390 al->cpumode = cpumode; in thread__find_addr_map()
1391 al->filtered = 0; in thread__find_addr_map()
1394 al->map = NULL; in thread__find_addr_map()
1399 al->level = 'k'; in thread__find_addr_map()
1403 al->level = '.'; in thread__find_addr_map()
1405 al->level = 'g'; in thread__find_addr_map()
[all …]
Dhist.c503 struct addr_location *al, in hists__findnew_entry() argument
572 he_stat__add_cpumode_period(&he->stat, al->cpumode, period); in hists__findnew_entry()
574 he_stat__add_cpumode_period(he->stat_acc, al->cpumode, period); in hists__findnew_entry()
580 struct addr_location *al, in __hists__add_entry() argument
588 struct namespaces *ns = thread__namespaces(al->thread); in __hists__add_entry()
590 .thread = al->thread, in __hists__add_entry()
591 .comm = thread__comm(al->thread), in __hists__add_entry()
597 .map = al->map, in __hists__add_entry()
598 .sym = al->sym, in __hists__add_entry()
600 .socket = al->socket, in __hists__add_entry()
[all …]
Devsel_fprintf.c221 int sample__fprintf_sym(struct perf_sample *sample, struct addr_location *al, in sample__fprintf_sym() argument
245 printed += __symbol__fprintf_symname_offs(al->sym, al, in sample__fprintf_sym()
249 printed += __symbol__fprintf_symname(al->sym, al, in sample__fprintf_sym()
256 printed += map__fprintf_dsoname(al->map, fp); in sample__fprintf_sym()
261 printed += map__fprintf_srcline(al->map, al->addr, "\n ", fp); in sample__fprintf_sym()
Dunwind-libunwind-local.c368 struct addr_location al; in find_map() local
371 MAP__FUNCTION, ip, &al); in find_map()
372 if (!al.map) { in find_map()
379 MAP__VARIABLE, ip, &al); in find_map()
381 return al.map; in find_map()
587 struct addr_location al; in entry() local
590 MAP__FUNCTION, ip, &al); in entry()
592 e.ip = al.addr; in entry()
593 e.map = al.map; in entry()
594 e.sym = al.sym; in entry()
[all …]
Dthread.h95 struct addr_location *al);
99 struct addr_location *al);
103 struct addr_location *al);
Dmachine.c1723 struct addr_location al; in ip__resolve_ams() local
1725 memset(&al, 0, sizeof(al)); in ip__resolve_ams()
1733 thread__find_cpumode_addr_location(thread, MAP__FUNCTION, ip, &al); in ip__resolve_ams()
1736 ams->al_addr = al.addr; in ip__resolve_ams()
1737 ams->sym = al.sym; in ip__resolve_ams()
1738 ams->map = al.map; in ip__resolve_ams()
1746 struct addr_location al; in ip__resolve_data() local
1748 memset(&al, 0, sizeof(al)); in ip__resolve_data()
1750 thread__find_addr_location(thread, m, MAP__VARIABLE, addr, &al); in ip__resolve_data()
1751 if (al.map == NULL) { in ip__resolve_data()
[all …]
Dcallchain.c1057 struct perf_evsel *evsel, struct addr_location *al, in sample__resolve_callchain() argument
1065 return thread__resolve_callchain(al->thread, cursor, evsel, sample, in sample__resolve_callchain()
1066 parent, al, max_stack); in sample__resolve_callchain()
1079 int fill_callchain_info(struct addr_location *al, struct callchain_cursor_node *node, in fill_callchain_info() argument
1082 al->map = node->map; in fill_callchain_info()
1083 al->sym = node->sym; in fill_callchain_info()
1085 al->addr = node->map->map_ip(node->map, node->ip); in fill_callchain_info()
1087 al->addr = node->ip; in fill_callchain_info()
1089 if (al->sym == NULL) { in fill_callchain_info()
1092 if (al->map == NULL) in fill_callchain_info()
[all …]
/tools/perf/
Dbuiltin-annotate.c123 static void process_branch_stack(struct branch_stack *bs, struct addr_location *al, in process_branch_stack() argument
133 bi = sample__resolve_bstack(sample, al); in process_branch_stack()
151 struct addr_location *al, in perf_evsel__add_sample() argument
159 (al->sym == NULL || in perf_evsel__add_sample()
160 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) { in perf_evsel__add_sample()
166 if (al->sym != NULL) { in perf_evsel__add_sample()
167 rb_erase(&al->sym->rb_node, in perf_evsel__add_sample()
168 &al->map->dso->symbols[al->map->type]); in perf_evsel__add_sample()
169 symbol__delete(al->sym); in perf_evsel__add_sample()
170 dso__reset_find_symbol_cache(al->map->dso); in perf_evsel__add_sample()
[all …]
Dbuiltin-mem.c155 struct addr_location al; in dump_raw_samples() local
158 if (machine__resolve(machine, &al, sample) < 0) { in dump_raw_samples()
164 if (al.filtered || (mem->hide_unresolved && al.sym == NULL)) in dump_raw_samples()
167 if (al.map != NULL) in dump_raw_samples()
168 al.map->dso->hit = 1; in dump_raw_samples()
196 al.map ? (al.map->dso ? al.map->dso->long_name : "???") : "???", in dump_raw_samples()
197 al.sym ? al.sym->name : "???"); in dump_raw_samples()
221 al.map ? (al.map->dso ? al.map->dso->long_name : "???") : "???", in dump_raw_samples()
222 al.sym ? al.sym->name : "???"); in dump_raw_samples()
225 addr_location__put(&al); in dump_raw_samples()
Dbuiltin-script.c712 struct addr_location al; in grab_bb() local
736 memset(&al, 0, sizeof(al)); in grab_bb()
745 thread__find_addr_map(thread, *cpumode, MAP__FUNCTION, start, &al); in grab_bb()
746 if (!al.map || !al.map->dso) { in grab_bb()
750 if (al.map->dso->data.status == DSO_DATA_STATUS_ERROR) { in grab_bb()
756 map__load(al.map); in grab_bb()
758 offset = al.map->map_ip(al.map, start); in grab_bb()
759 len = dso__data_read_offset(al.map->dso, machine, offset, (u8 *)buffer, in grab_bb()
762 *is64bit = al.map->dso->is_64_bit; in grab_bb()
792 struct addr_location al; in print_ip_sym() local
[all …]
Dbuiltin-report.c112 struct addr_location *al, bool single, in hist_iter__report_callback() argument
126 hist__account_cycles(sample->branch_stack, al, sample, in hist_iter__report_callback()
143 err = hist_entry__inc_addr_samples(he, sample, evsel->idx, al->addr); in hist_iter__report_callback()
148 al->addr); in hist_iter__report_callback()
150 err = hist_entry__inc_addr_samples(he, sample, evsel->idx, al->addr); in hist_iter__report_callback()
158 struct addr_location *al __maybe_unused, in hist_iter__branch_callback()
172 hist__account_cycles(sample->branch_stack, al, sample, in hist_iter__branch_callback()
196 struct addr_location al; in process_sample_event() local
208 if (machine__resolve(machine, &al, sample) < 0) { in process_sample_event()
214 if (symbol_conf.hide_unresolved && al.sym == NULL) in process_sample_event()
[all …]
Dbuiltin-top.c685 struct addr_location *al, bool single, in hist_iter__top_callback() argument
693 perf_top__record_precise_ip(top, he, iter->sample, evsel->idx, al->addr); in hist_iter__top_callback()
695 hist__account_cycles(iter->sample->branch_stack, al, iter->sample, in hist_iter__top_callback()
707 struct addr_location al; in perf_event__process_sample() local
733 if (machine__resolve(machine, &al, sample) < 0) in perf_event__process_sample()
738 al.cpumode == PERF_RECORD_MISC_KERNEL) { in perf_event__process_sample()
743 al.map && !RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION]) ? in perf_event__process_sample()
750 if (al.sym == NULL) { in perf_event__process_sample()
764 al.map == machine->vmlinux_maps[MAP__FUNCTION] && in perf_event__process_sample()
765 RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION])) { in perf_event__process_sample()
[all …]
/tools/perf/tests/
Dcode-reading.c228 struct addr_location al; in read_object_code() local
239 thread__find_addr_map(thread, cpumode, MAP__FUNCTION, addr, &al); in read_object_code()
240 if (!al.map || !al.map->dso) { in read_object_code()
250 pr_debug("File is: %s\n", al.map->dso->long_name); in read_object_code()
252 if (al.map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in read_object_code()
253 !dso__is_kcore(al.map->dso)) { in read_object_code()
258 pr_debug("On file address is: %#"PRIx64"\n", al.addr); in read_object_code()
264 if (addr + len > al.map->end) in read_object_code()
265 len = al.map->end - addr; in read_object_code()
268 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
[all …]
Dhists_link.c68 struct addr_location al; in add_hist_entries() local
87 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
90 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
93 addr_location__put(&al); in add_hist_entries()
97 fake_common_samples[k].thread = al.thread; in add_hist_entries()
98 fake_common_samples[k].map = al.map; in add_hist_entries()
99 fake_common_samples[k].sym = al.sym; in add_hist_entries()
106 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
109 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
112 addr_location__put(&al); in add_hist_entries()
[all …]
Dmmap-thread-lookup.c184 struct addr_location al; in mmap_events() local
193 (unsigned long) (td->map + 1), &al); in mmap_events()
197 if (!al.map) { in mmap_events()
203 pr_debug("map %p, addr %" PRIx64 "\n", al.map, al.map->start); in mmap_events()
Dhists_filter.c53 struct addr_location al; in add_hist_entries() local
82 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
85 al.socket = fake_samples[i].socket; in add_hist_entries()
86 if (hist_entry_iter__add(&iter, &al, in add_hist_entries()
88 addr_location__put(&al); in add_hist_entries()
92 fake_samples[i].thread = al.thread; in add_hist_entries()
93 fake_samples[i].map = al.map; in add_hist_entries()
94 fake_samples[i].sym = al.sym; in add_hist_entries()
Dhists_cumulate.c81 struct addr_location al; in add_hist_entries() local
104 if (machine__resolve(machine, &al, &sample) < 0) in add_hist_entries()
107 if (hist_entry_iter__add(&iter, &al, sysctl_perf_event_max_stack, in add_hist_entries()
109 addr_location__put(&al); in add_hist_entries()
113 fake_samples[i].thread = al.thread; in add_hist_entries()
114 fake_samples[i].map = al.map; in add_hist_entries()
115 fake_samples[i].sym = al.sym; in add_hist_entries()
/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c244 struct addr_location al; in arch_skip_callchain_idx() local
256 MAP__FUNCTION, ip, &al); in arch_skip_callchain_idx()
258 if (al.map) in arch_skip_callchain_idx()
259 dso = al.map->dso; in arch_skip_callchain_idx()
266 rc = check_return_addr(dso, al.map->start, ip); in arch_skip_callchain_idx()
269 dso->long_name, al.sym->name, ip, rc); in arch_skip_callchain_idx()
/tools/perf/util/scripting-engines/
Dtrace-event-python.c349 struct addr_location *al) in python_process_callchain() argument
360 if (thread__resolve_callchain(al->thread, &callchain_cursor, evsel, in python_process_callchain()
474 struct addr_location *al, in get_perf_sample_dict() argument
509 PyString_FromString(thread__comm_str(al->thread))); in get_perf_sample_dict()
510 if (al->map) { in get_perf_sample_dict()
512 PyString_FromString(al->map->dso->name)); in get_perf_sample_dict()
514 if (al->sym) { in get_perf_sample_dict()
516 PyString_FromString(al->sym->name)); in get_perf_sample_dict()
526 struct addr_location *al) in python_process_tracepoint() argument
539 const char *comm = thread__comm_str(al->thread); in python_process_tracepoint()
[all …]
Dtrace-event-perl.c260 struct addr_location *al) in perl_process_callchain() argument
271 if (thread__resolve_callchain(al->thread, &callchain_cursor, evsel, in perl_process_callchain()
338 struct addr_location *al) in perl_process_tracepoint() argument
340 struct thread *thread = al->thread; in perl_process_tracepoint()
386 XPUSHs(sv_2mortal(perl_process_callchain(sample, evsel, al))); in perl_process_tracepoint()
421 XPUSHs(sv_2mortal(perl_process_callchain(sample, evsel, al))); in perl_process_tracepoint()
457 struct addr_location *al) in perl_process_event() argument
459 perl_process_tracepoint(sample, evsel, al); in perl_process_event()
/tools/arch/x86/lib/
Dmemset_64.S61 movb %sil,%al
121 movb %al,(%rdi)
Dmemcpy_64.S208 movb (%rsi), %al
209 movb %al, (%rdi)
268 movb (%rsi), %al
269 movb %al, (%rdi)

12