Home
last modified time | relevance | path

Searched refs:dso (Results 1 – 72 of 72) sorted by relevance

/linux-4.4.14/tools/perf/util/
Ddso.c11 char dso__symtab_origin(const struct dso *dso) in dso__symtab_origin() argument
32 if (dso == NULL || dso->symtab_type == DSO_BINARY_TYPE__NOT_FOUND) in dso__symtab_origin()
34 return origin[dso->symtab_type]; in dso__symtab_origin()
37 int dso__read_binary_type_filename(const struct dso *dso, in dso__read_binary_type_filename() argument
49 len = __symbol__join_symfs(filename, size, dso->long_name); in dso__read_binary_type_filename()
62 (dso__build_id_filename(dso, filename, size) == NULL)) in dso__read_binary_type_filename()
68 snprintf(filename + len, size - len, "%s.debug", dso->long_name); in dso__read_binary_type_filename()
73 snprintf(filename + len, size - len, "%s", dso->long_name); in dso__read_binary_type_filename()
81 last_slash = dso->long_name + dso->long_name_len; in dso__read_binary_type_filename()
82 while (last_slash != dso->long_name && *last_slash != '/') in dso__read_binary_type_filename()
[all …]
Ddso.h90 #define DSO__SWAP(dso, type, val) \ argument
93 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \
94 if (dso->needs_swap == DSO_SWAP__YES) { \
134 struct dso { struct
199 #define dso__for_each_symbol(dso, pos, n, type) \ argument
200 symbols__for_each_entry(&(dso)->symbols[(type)], pos, n)
202 static inline void dso__set_loaded(struct dso *dso, enum map_type type) in dso__set_loaded() argument
204 dso->loaded |= (1 << type); in dso__set_loaded()
207 struct dso *dso__new(const char *name);
208 void dso__delete(struct dso *dso);
[all …]
Dvdso.c123 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso()
126 struct dso *dso; in __machine__addnew_vdso() local
128 dso = dso__new(short_name); in __machine__addnew_vdso()
129 if (dso != NULL) { in __machine__addnew_vdso()
130 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
131 dso__set_long_name(dso, long_name, false); in __machine__addnew_vdso()
134 return dso; in __machine__addnew_vdso()
144 struct dso *dso; in machine__thread_dso_type() local
148 dso = map->dso; in machine__thread_dso_type()
149 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
[all …]
Dsymbol.c26 static int dso__load_kernel_sym(struct dso *dso, struct map *map,
28 static int dso__load_guest_kernel_sym(struct dso *dso, struct map *map,
444 void dso__reset_find_symbol_cache(struct dso *dso) in dso__reset_find_symbol_cache() argument
449 dso->last_find_result[type].addr = 0; in dso__reset_find_symbol_cache()
450 dso->last_find_result[type].symbol = NULL; in dso__reset_find_symbol_cache()
454 struct symbol *dso__find_symbol(struct dso *dso, in dso__find_symbol() argument
457 if (dso->last_find_result[type].addr != addr) { in dso__find_symbol()
458 dso->last_find_result[type].addr = addr; in dso__find_symbol()
459 dso->last_find_result[type].symbol = symbols__find(&dso->symbols[type], addr); in dso__find_symbol()
462 return dso->last_find_result[type].symbol; in dso__find_symbol()
[all …]
Dsrcline.c155 char **file, unsigned int *line, struct dso *dso, in addr2line() argument
159 struct a2l_data *a2l = dso->a2l; in addr2line()
162 dso->a2l = addr2line_init(dso_name); in addr2line()
163 a2l = dso->a2l; in addr2line()
196 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
198 struct a2l_data *a2l = dso->a2l; in dso__free_a2l()
205 dso->a2l = NULL; in dso__free_a2l()
212 struct dso *dso __maybe_unused, in addr2line()
258 void dso__free_a2l(struct dso *dso __maybe_unused) in dso__free_a2l()
270 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in __get_srcline() argument
[all …]
Dsymbol.h224 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name,
229 int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter);
230 int dso__load_vmlinux(struct dso *dso, struct map *map,
233 int dso__load_vmlinux_path(struct dso *dso, struct map *map,
235 int dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map,
238 struct symbol *dso__find_symbol(struct dso *dso, enum map_type type,
240 struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type,
244 struct symbol *dso__first_symbol(struct dso *dso, enum map_type type);
271 int dso__load_sym(struct dso *dso, struct map *map, struct symsrc *syms_ss,
274 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss,
Dmap.c128 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
135 map->dso = dso__get(dso); in map__init()
153 struct dso *dso; in map__new() local
180 dso = machine__findnew_vdso(machine, thread); in map__new()
182 dso = machine__findnew_dso(machine, filename); in map__new()
184 if (dso == NULL) in map__new()
187 map__init(map, type, start, start + len, pgoff, dso); in map__new()
198 dso__set_loaded(dso, map->type); in map__new()
200 dso__put(dso); in map__new()
213 struct map *map__new2(u64 start, struct dso *dso, enum map_type type) in map__new2() argument
[all …]
Dunwind-libunwind.c241 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument
250 r = dso__data_read_offset(dso, machine, offset, in unwind_spec_ehframe()
264 static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, in read_unwind_spec_eh_frame() argument
269 u64 offset = dso->data.eh_frame_hdr_offset; in read_unwind_spec_eh_frame()
272 fd = dso__data_get_fd(dso, machine); in read_unwind_spec_eh_frame()
278 dso->data.eh_frame_hdr_offset = offset; in read_unwind_spec_eh_frame()
279 dso__data_put_fd(dso); in read_unwind_spec_eh_frame()
283 ret = unwind_spec_ehframe(dso, machine, offset, in read_unwind_spec_eh_frame()
291 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument
295 u64 ofs = dso->data.debug_frame_offset; in read_unwind_spec_debug_frame()
[all …]
Ddb-export.h26 struct dso;
56 int (*export_dso)(struct db_export *dbe, struct dso *dso,
59 struct dso *dso);
91 int db_export__dso(struct db_export *dbe, struct dso *dso,
94 struct dso *dso);
Dsymbol-elf.c215 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss, struct map *map, in dso__synthesize_plt_symbols() argument
307 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols()
329 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols()
340 __func__, dso->long_name); in dso__synthesize_plt_symbols()
552 static int dso__swap_init(struct dso *dso, unsigned char eidata) in dso__swap_init() argument
556 dso->needs_swap = DSO_SWAP__NO; in dso__swap_init()
562 dso->needs_swap = DSO_SWAP__YES; in dso__swap_init()
568 dso->needs_swap = DSO_SWAP__YES; in dso__swap_init()
579 static int decompress_kmodule(struct dso *dso, const char *name, in decompress_kmodule() argument
592 name = dso->long_name; in decompress_kmodule()
[all …]
Ddb-export.c204 int db_export__dso(struct db_export *dbe, struct dso *dso, in db_export__dso() argument
207 if (dso->db_id) in db_export__dso()
210 dso->db_id = ++dbe->dso_last_db_id; in db_export__dso()
213 return dbe->export_dso(dbe, dso, machine); in db_export__dso()
219 struct dso *dso) in db_export__symbol() argument
229 return dbe->export_symbol(dbe, sym, dso); in db_export__symbol()
251 struct dso *dso = al->map->dso; in db_ids_from_al() local
253 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
256 *dso_db_id = dso->db_id; in db_ids_from_al()
261 symbols__insert(&dso->symbols[al->map->type], in db_ids_from_al()
[all …]
Dvdso.h19 struct dso;
21 bool dso__is_vdso(struct dso *dso);
26 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
Dbuild-id.c44 al.map->dso->hit = 1; in build_id__mark_dso_hit()
158 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size) in dso__build_id_filename() argument
162 if (!dso->has_build_id) in dso__build_id_filename()
165 build_id__sprintf(dso->build_id, sizeof(dso->build_id), build_id_hex); in dso__build_id_filename()
202 struct dso *pos; in machine__write_buildid_table()
258 struct dso *pos; in __dsos__hit_all()
477 static int dso__cache_build_id(struct dso *dso, struct machine *machine) in dso__cache_build_id() argument
479 bool is_kallsyms = dso->kernel && dso->long_name[0] != '/'; in dso__cache_build_id()
480 bool is_vdso = dso__is_vdso(dso); in dso__cache_build_id()
481 const char *name = dso->long_name; in dso__cache_build_id()
[all …]
Dunwind-libdw.c27 struct dso *dso = NULL; in __report_module() local
34 dso = al->map->dso; in __report_module()
36 if (!dso) in __report_module()
41 mod = dwfl_report_elf(ui->dwfl, dso->short_name, in __report_module()
42 dso->long_name, -1, al->map->start, in __report_module()
99 if (!al.map->dso) in access_dso_mem()
102 size = dso__data_read_addr(al.map->dso, al.map, ui->machine, in access_dso_mem()
Dmachine.c88 struct dso *pos, *n; in dsos__purge()
506 static struct dso *machine__findnew_module_dso(struct machine *machine, in machine__findnew_module_dso()
510 struct dso *dso; in machine__findnew_module_dso() local
514 dso = __dsos__find(&machine->dsos, m->name, true); in machine__findnew_module_dso()
515 if (!dso) { in machine__findnew_module_dso()
516 dso = __dsos__addnew(&machine->dsos, m->name); in machine__findnew_module_dso()
517 if (dso == NULL) in machine__findnew_module_dso()
521 dso->symtab_type = DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE; in machine__findnew_module_dso()
523 dso->symtab_type = DSO_BINARY_TYPE__GUEST_KMODULE; in machine__findnew_module_dso()
527 dso->symtab_type++; in machine__findnew_module_dso()
[all …]
Dsymbol-minimal.c249 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, in symsrc__init() argument
267 dso->load_errno = errno; in symsrc__init()
288 int dso__synthesize_plt_symbols(struct dso *dso __maybe_unused, in dso__synthesize_plt_symbols()
334 int dso__load_sym(struct dso *dso, struct map *map __maybe_unused, in dso__load_sym() argument
345 dso->is_64_bit = ret; in dso__load_sym()
348 dso__set_build_id(dso, build_id); in dso__load_sym()
Dbuild-id.h12 struct dso;
18 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size);
Dmap.h22 struct dso;
52 struct dso *dso; member
122 dso__for_each_symbol(map->dso, pos, n, map->type)
144 u64 start, u64 end, u64 pgoff, struct dso *dso);
149 struct map *map__new2(u64 start, struct dso *dso, enum map_type type);
Dannotate.c1077 struct dso *dso = map->dso; in symbol__annotate() local
1078 char *filename = dso__build_id_filename(dso, NULL, 0); in symbol__annotate()
1093 if (dso->has_build_id) { in symbol__annotate()
1099 } else if (dso__is_kcore(dso)) { in symbol__annotate()
1111 filename = (char *)dso->long_name; in symbol__annotate()
1116 if (dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in symbol__annotate()
1117 !dso__is_kcore(dso)) { in symbol__annotate()
1121 if (dso->annotate_warned) in symbol__annotate()
1124 if (dso->has_build_id) { in symbol__annotate()
1125 build_id__sprintf(dso->build_id, in symbol__annotate()
[all …]
Dmachine.h168 struct dso *machine__findnew_dso(struct machine *machine, const char *filename);
210 bool (skip)(struct dso *dso, int parm), int parm);
213 bool (skip)(struct dso *dso, int parm), int parm);
216 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel);
Dutil.h312 struct dso;
316 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
318 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
Dintel-pt.c336 static unsigned int intel_pt_cache_size(struct dso *dso, in intel_pt_cache_size() argument
341 size = dso__data_size(dso, machine); in intel_pt_cache_size()
350 static struct auxtrace_cache *intel_pt_cache(struct dso *dso, in intel_pt_cache() argument
356 if (dso->auxtrace_cache) in intel_pt_cache()
357 return dso->auxtrace_cache; in intel_pt_cache()
359 bits = intel_pt_cache_size(dso, machine); in intel_pt_cache()
364 dso->auxtrace_cache = c; in intel_pt_cache()
369 static int intel_pt_cache_add(struct dso *dso, struct machine *machine, in intel_pt_cache_add() argument
373 struct auxtrace_cache *c = intel_pt_cache(dso, machine); in intel_pt_cache_add()
399 intel_pt_cache_lookup(struct dso *dso, struct machine *machine, u64 offset) in intel_pt_cache_lookup() argument
[all …]
Devent.c385 size = PERF_ALIGN(pos->dso->long_name_len + 1, sizeof(u64)); in perf_event__synthesize_modules()
395 memcpy(event->mmap.filename, pos->dso->long_name, in perf_event__synthesize_modules()
396 pos->dso->long_name_len + 1); in perf_event__synthesize_modules()
1016 al->map ? al->map->dso->long_name : in perf_event__preprocess_sample()
1034 struct dso *dso = al->map->dso; in perf_event__preprocess_sample() local
1037 (!dso || !(strlist__has_entry(symbol_conf.dso_list, in perf_event__preprocess_sample()
1038 dso->short_name) || in perf_event__preprocess_sample()
1039 (dso->short_name != dso->long_name && in perf_event__preprocess_sample()
1041 dso->long_name))))) { in perf_event__preprocess_sample()
Dprobe-event.c176 if (strncmp(pos->dso->short_name + 1, module, in kernel_get_module_map()
177 pos->dso->short_name_len - 2) == 0) { in kernel_get_module_map()
270 static int kernel_get_module_dso(const char *module, struct dso **pdso) in kernel_get_module_dso()
272 struct dso *dso; in kernel_get_module_dso() local
283 dso = map->dso; in kernel_get_module_dso()
291 dso = map->dso; in kernel_get_module_dso()
294 dso->load_errno = 0; in kernel_get_module_dso()
296 ret = dso__load_vmlinux(dso, map, vmlinux_name, false, NULL); in kernel_get_module_dso()
298 ret = dso__load_vmlinux_path(dso, map, NULL); in kernel_get_module_dso()
300 *pdso = dso; in kernel_get_module_dso()
[all …]
Dsession.h99 bool (fn)(struct dso *dso, int parm), int parm);
Dthread-stack.h28 struct dso;
Dsort.c128 struct dso *dso_l = map_l ? map_l->dso : NULL; in _sort__dso_cmp()
129 struct dso *dso_r = map_r ? map_r->dso : NULL; in _sort__dso_cmp()
155 if (map && map->dso) { in _hist_entry__dso_snprintf()
156 const char *dso_name = !verbose ? map->dso->short_name : in _hist_entry__dso_snprintf()
157 map->dso->long_name; in _hist_entry__dso_snprintf()
235 char o = map ? dso__symtab_origin(map->dso) : '!'; in _hist_entry__sym_snprintf()
292 left->srcline = get_srcline(map->dso, in sort__srcline_cmp()
302 right->srcline = get_srcline(map->dso, in sort__srcline_cmp()
332 sf = __get_srcline(map->dso, map__rip_2objdump(map, e->ip), in get_srcfile()
Dhist.c48 static void hists__set_unres_dso_col_len(struct hists *hists, int dso) in hists__set_unres_dso_col_len() argument
52 if (hists__col_len(hists, dso) < unresolved_col_width && in hists__set_unres_dso_col_len()
55 hists__set_col_len(hists, dso, unresolved_col_width); in hists__set_unres_dso_col_len()
85 len = dso__name_len(h->ms.map->dso); in hists__calc_col_len()
99 symlen = dso__name_len(h->branch_info->from.map->dso); in hists__calc_col_len()
113 symlen = dso__name_len(h->branch_info->to.map->dso); in hists__calc_col_len()
148 symlen = dso__name_len(h->mem_info->daddr.map->dso); in hists__calc_col_len()
1223 (he->ms.map == NULL || he->ms.map->dso != hists->dso_filter)) { in hists__filter_entry_by_dso()
Dheader.h119 struct dso *pos, u16 misc,
Dheader.c1231 struct dso *dso; in __event_process_build_id() local
1255 dso = machine__findnew_dso(machine, filename); in __event_process_build_id()
1256 if (dso != NULL) { in __event_process_build_id()
1259 dso__set_build_id(dso, &bev->build_id); in __event_process_build_id()
1262 dso->kernel = dso_type; in __event_process_build_id()
1264 build_id__sprintf(dso->build_id, sizeof(dso->build_id), in __event_process_build_id()
1267 dso->long_name, sbuild_id); in __event_process_build_id()
1268 dso__put(dso); in __event_process_build_id()
2835 struct dso *pos, u16 misc, in perf_event__synthesize_build_id()
Dhist.h59 struct dso;
69 const struct dso *dso_filter;
Dprobe-finder.c120 struct dso *dso; in debuginfo__new() local
124 dso = dso__new(path); in debuginfo__new()
125 if (!dso) in debuginfo__new()
131 if (dso__read_binary_type_filename(dso, *type, &nil, in debuginfo__new()
136 dso__put(dso); in debuginfo__new()
Dintel-bts.c335 if (!al.map || !al.map->dso) in intel_bts_get_next_insn()
338 len = dso__data_read_addr(al.map->dso, al.map, machine, ip, buf, bufsz); in intel_bts_get_next_insn()
345 x86_64 = al.map->dso->is_64_bit; in intel_bts_get_next_insn()
Dcallchain.c781 cl->srcline = get_srcline(cl->ms.map->dso, in callchain_list__sym_name()
796 cl->ms.map->dso->short_name : in callchain_list__sym_name()
DBuild36 libperf-y += dso.o
Dsession.c1745 bool (skip)(struct dso *dso, int parm), int parm) in perf_session__fprintf_dsos_buildid() argument
/linux-4.4.14/tools/perf/tests/
Ddso-data.c103 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
105 int fd = dso__data_get_fd(dso, machine); in dso__data_fd()
108 dso__data_put_fd(dso); in dso__data_fd()
116 struct dso *dso; in test__dso_data() local
124 dso = dso__new((const char *)file); in test__dso_data()
127 dso__data_fd(dso, &machine) >= 0); in test__dso_data()
136 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data()
155 size = dso__data_read_offset(dso, &machine, 10, in test__dso_data()
169 dso__put(dso); in test__dso_data()
199 static struct dso **dsos;
[all …]
Dhists_common.c122 struct dso *dso; in setup_fake_machine() local
124 dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); in setup_fake_machine()
125 if (dso == NULL) in setup_fake_machine()
129 dso__set_loaded(dso, MAP__FUNCTION); in setup_fake_machine()
138 dso__put(dso); in setup_fake_machine()
142 symbols__insert(&dso->symbols[MAP__FUNCTION], sym); in setup_fake_machine()
145 dso__put(dso); in setup_fake_machine()
178 he->ms.map->dso->short_name, in print_hists_in()
205 he->ms.map->dso->short_name, in print_hists_out()
Dvmlinux-kallsyms.c111 for (nd = rb_first(&vmlinux_map->dso->symbols[type]); nd; nd = rb_next(nd)) { in test__vmlinux_matches_kallsyms()
197 (map->dso->kernel ? in test__vmlinux_matches_kallsyms()
198 map->dso->short_name : in test__vmlinux_matches_kallsyms()
199 map->dso->name)); in test__vmlinux_matches_kallsyms()
221 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms()
225 pr_info(" %s\n", pair->dso->name); in test__vmlinux_matches_kallsyms()
Dcode-reading.c190 if (!al.map || !al.map->dso) { in read_object_code()
195 pr_debug("File is: %s\n", al.map->dso->long_name); in read_object_code()
197 if (al.map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in read_object_code()
198 !dso__is_kcore(al.map->dso)) { in read_object_code()
213 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
228 if (dso__is_kcore(al.map->dso)) { in read_object_code()
247 ret = read_via_objdump(al.map->dso->long_name, objdump_addr, buf2, len); in read_object_code()
258 } else if (dso__is_kcore(al.map->dso)) { in read_object_code()
482 have_vmlinux = dso__is_vmlinux(map->dso); in do_test_code_reading()
483 have_kcore = dso__is_kcore(map->dso); in do_test_code_reading()
Dhists_cumulate.c154 #define DSO(he) (he->ms.map->dso->short_name)
159 #define CDSO(cl) (cl->ms.map->dso->short_name)
166 const char *dso; member
173 const char *dso; member
213 !strcmp(DSO(he), expected[i].dso) && in do_test()
233 !strcmp(CDSO(clist), expected_callchain[i].node[c].dso) && in do_test()
Dhists_filter.c199 hists->dso_filter = fake_samples[0].map->dso; in test__hists_filter()
293 hists->dso_filter = fake_samples[1].map->dso; in test__hists_filter()
DBuild3 perf-y += dso-data.o
Dhists_output.c120 #define DSO(he) (he->ms.map->dso->short_name)
/linux-4.4.14/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py24 def create_event(name, comm, dso, symbol, raw_buf): argument
26 event = PebsEvent(name, comm, dso, symbol, raw_buf)
28 event = PebsNHM(name, comm, dso, symbol, raw_buf)
30 event = PerfEvent(name, comm, dso, symbol, raw_buf)
36 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument
39 self.dso = dso
46 … event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso)
55 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument
69 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
84 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument
[all …]
/linux-4.4.14/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c148 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument
158 const char *exec_file = dso->long_name; in check_return_addr()
160 dwfl = dso->dwfl; in check_return_addr()
182 dso->dwfl = dwfl; in check_return_addr()
241 struct dso *dso = NULL; in arch_skip_callchain_idx() local
255 dso = al.map->dso; in arch_skip_callchain_idx()
257 if (!dso) { in arch_skip_callchain_idx()
262 rc = check_return_addr(dso, al.map->start, ip); in arch_skip_callchain_idx()
265 dso->long_name, al.sym->name, ip, rc); in arch_skip_callchain_idx()
Dsym-handling.c77 if (!pev->uprobes && map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS) { in arch__fix_tev_from_maps()
/linux-4.4.14/tools/perf/
Dbuiltin-inject.c313 static int dso__read_build_id(struct dso *dso) in dso__read_build_id() argument
315 if (dso->has_build_id) in dso__read_build_id()
318 if (filename__read_build_id(dso->long_name, dso->build_id, in dso__read_build_id()
319 sizeof(dso->build_id)) > 0) { in dso__read_build_id()
320 dso->has_build_id = true; in dso__read_build_id()
327 static int dso__inject_build_id(struct dso *dso, struct perf_tool *tool, in dso__inject_build_id() argument
333 if (dso__read_build_id(dso) < 0) { in dso__inject_build_id()
334 pr_debug("no build_id found for %s\n", dso->long_name); in dso__inject_build_id()
338 if (dso->kernel) in dso__inject_build_id()
341 err = perf_event__synthesize_build_id(tool, dso, misc, perf_event__repipe, in dso__inject_build_id()
[all …]
Dbuiltin-buildid-list.c44 static bool dso__skip_buildid(struct dso *dso, int with_hits) in dso__skip_buildid() argument
46 return with_hits && !dso->hit; in dso__skip_buildid()
Dbuiltin-buildid-cache.c239 static bool dso__missing_buildid_cache(struct dso *dso, int parm __maybe_unused) in dso__missing_buildid_cache() argument
244 if (dso__build_id_filename(dso, filename, sizeof(filename)) && in dso__missing_buildid_cache()
252 } else if (memcmp(dso->build_id, build_id, sizeof(dso->build_id))) { in dso__missing_buildid_cache()
Dbuiltin-mem.c80 al.map->dso->hit = 1; in dump_raw_samples()
104 al.map ? (al.map->dso ? al.map->dso->long_name : "???") : "???", in dump_raw_samples()
Dbuiltin-annotate.c68 &al->map->dso->symbols[al->map->type]); in perf_evsel__add_sample()
70 dso__reset_find_symbol_cache(al->map->dso); in perf_evsel__add_sample()
132 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations()
Dbuiltin-top.c106 if (map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in perf_top__parse_source()
107 !dso__is_kcore(map->dso)) { in perf_top__parse_source()
161 ip, map->dso->long_name, dso__symtab_origin(map->dso), in ui__warn_map_erange()
747 al.map && !RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION]) ? in perf_event__process_sample()
769 RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION])) { in perf_event__process_sample()
772 dso__strerror_load(al.map->dso, serr, sizeof(serr)); in perf_event__process_sample()
Dbuiltin-report.c183 al.map->dso->hit = 1; in process_sample_event()
394 (kernel_map->dso->hit && in report__warn_kptr_restrict()
402 const struct dso *kdso = kernel_map->dso; in report__warn_kptr_restrict()
Dbuiltin-trace.c2208 fprintf(f, "%s@", al->map->dso->long_name); in print_location()
/linux-4.4.14/tools/perf/scripts/python/
Devent_analyzing_sample.py79 dso = param_dict["dso"]
81 dso = "Unknown_dso"
89 event = create_event(name, comm, dso, symbol, raw_buf)
95 (event.name, event.symbol, event.comm, event.dso))
100 (event.name, event.symbol, event.comm, event.dso, event.flags,
Dcall-graph-from-postgresql.py136 def addChild(self, call_path_id, name, dso, count, time, branch_count): argument
144 if dso == "[kernel.kallsyms]":
145 dso = "[kernel]"
146 child_item.data[1] = dso
168 dso = ""
181 self.addChild(last_call_path_id, name, dso, count, time, branch_count)
184 dso = query.value(6)
191 self.addChild(last_call_path_id, name, dso, count, time, branch_count)
/linux-4.4.14/tools/perf/util/scripting-engines/
Dtrace-event-python.c363 if (map && map->dso && (map->dso->name || map->dso->long_name)) { in python_process_callchain()
364 if (symbol_conf.show_kernel_path && map->dso->long_name) in python_process_callchain()
365 dsoname = map->dso->long_name; in python_process_callchain()
366 else if (map->dso->name) in python_process_callchain()
367 dsoname = map->dso->name; in python_process_callchain()
607 static int python_export_dso(struct db_export *dbe, struct dso *dso, in python_export_dso() argument
614 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in python_export_dso()
618 tuple_set_u64(t, 0, dso->db_id); in python_export_dso()
620 tuple_set_string(t, 2, dso->short_name); in python_export_dso()
621 tuple_set_string(t, 3, dso->long_name); in python_export_dso()
[all …]
/linux-4.4.14/tools/perf/Documentation/
Dperf-trace.txt133 <min|maj>fault [<ip.symbol>+<ip.offset>] => <addr.dso@addr.offset> (<map type><addr level>).
138 - addr.dso shows DSO for the faulted address;
140 - addr level is either 'k' for kernel dso or '.' for user dso.
148 for both IP and fault address in the form of dso@symbol+offset.
Dperf-annotate.txt28 --dsos=<dso[,dso...]>::
Dperf-report.txt71 pid, comm, dso, symbol, parent, cpu, socket, srcline, weight, local_weight.
77 - dso: name of library or module executed at the time of sample
101 By default, comm, dso and symbol keys are used.
102 (i.e. --sort comm,dso,symbol)
143 And default sort keys are changed to local_weight, mem, sym, dso,
329 Zoom operations on the TUI (thread, dso, etc).
Dperf-diff.txt23 If no parameters are passed the samples will be sorted by dso and symbol.
61 Sort by key(s): pid, comm, dso, symbol, cpu, parent, srcline.
Dperf-buildid-cache.txt54 to update kallsyms and kernel dso to vmlinux in order to support
Dperf-top.txt118 Sort by key(s): pid, comm, dso, symbol, parent, srcline, weight,
194 Zoom operations on the TUI (thread, dso, etc).
Dexamples.txt104 titan:~/git> perf report --sort comm,dso,symbol
Dperf-script.txt118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff,
Dintel-pt.txt100 perf script -Fcomm,tid,pid,time,cpu,event,trace,ip,sym,dso,addr,symoff,flags
/linux-4.4.14/tools/perf/ui/browsers/
Dmap.c74 if (ui_browser__show(&browser->b, browser->map->dso->long_name, in map_browser__run()
104 .entries = &map->dso->symbols[map->type], in map__browse()
Dhists.c1273 const struct dso *dso = hists->dso_filter; in hists__browser_title() local
1326 if (dso) in hists__browser_title()
1328 ", DSO: %s", dso->short_name); in hists__browser_title()
1483 if (sym == NULL || map->dso->annotate_warned) in add_annotate_opt()
1551 __map__is_kernel(map) ? "the Kernel" : map->dso->short_name); in do_zoom_dso()
1552 browser->hists->dso_filter = map->dso; in do_zoom_dso()
1571 __map__is_kernel(map) ? "the Kernel" : map->dso->short_name) < 0) in add_dso_opt()
1869 browser->selection->map->dso->annotate_warned) in perf_evsel__hists_browse()
Dannotate.c480 return snprintf(title, sz, "%s %s", sym->name, map->dso->long_name); in sym_title()
1039 if (map->dso->annotate_warned) in symbol__tui_annotate()
/linux-4.4.14/Documentation/trace/
Dtracepoint-analysis.txt253 # (For more details, try: perf report --sort comm,dso,symbol)
280 # (For more details, try: perf report --sort comm,dso,symbol)
286 $ perf report --sort comm,dso,symbol
/linux-4.4.14/tools/perf/ui/gtk/
Dannotate.c166 if (map->dso->annotate_warned) in symbol__gtk_annotate()