/tools/perf/util/ |
D | dso.h | 94 #define DSO__SWAP(dso, type, val) \ argument 97 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \ 98 if (dso->needs_swap == DSO_SWAP__YES) { \ 138 struct dso { struct 205 #define dso__for_each_symbol(dso, pos, n, type) \ argument 206 symbols__for_each_entry(&(dso)->symbols[(type)], pos, n) 208 static inline void dso__set_loaded(struct dso *dso, enum map_type type) in dso__set_loaded() argument 210 dso->loaded |= (1 << type); in dso__set_loaded() 213 struct dso *dso__new(const char *name); 214 void dso__delete(struct dso *dso); [all …]
|
D | dso.c | 28 char dso__symtab_origin(const struct dso *dso) in dso__symtab_origin() argument 50 if (dso == NULL || dso->symtab_type == DSO_BINARY_TYPE__NOT_FOUND) in dso__symtab_origin() 52 return origin[dso->symtab_type]; in dso__symtab_origin() 55 int dso__read_binary_type_filename(const struct dso *dso, in dso__read_binary_type_filename() argument 71 len = __symbol__join_symfs(filename, size, dso->long_name); in dso__read_binary_type_filename() 102 if (dso__build_id_filename(dso, filename, size, false) == NULL) in dso__read_binary_type_filename() 107 if (dso__build_id_filename(dso, filename, size, true) == NULL) in dso__read_binary_type_filename() 113 snprintf(filename + len, size - len, "%s.debug", dso->long_name); in dso__read_binary_type_filename() 118 snprintf(filename + len, size - len, "%s", dso->long_name); in dso__read_binary_type_filename() 126 last_slash = dso->long_name + dso->long_name_len; in dso__read_binary_type_filename() [all …]
|
D | vdso.c | 124 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso() 127 struct dso *dso; in __machine__addnew_vdso() local 129 dso = dso__new(short_name); in __machine__addnew_vdso() 130 if (dso != NULL) { in __machine__addnew_vdso() 131 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso() 132 dso__set_long_name(dso, long_name, false); in __machine__addnew_vdso() 135 return dso; in __machine__addnew_vdso() 143 struct dso *dso; in machine__thread_dso_type() local 147 dso = map->dso; in machine__thread_dso_type() 148 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type() [all …]
|
D | srcline.c | 19 static const char *dso__name(struct dso *dso) in dso__name() argument 23 if (dso->symsrc_filename) in dso__name() 24 dso_name = dso->symsrc_filename; in dso__name() 26 dso_name = dso->long_name; in dso__name() 38 struct inline_node *node, struct dso *dso) in inline_list__append() argument 50 if (dso != NULL) { in inline_list__append() 51 demangled = dso__demangle_sym(dso, 0, funcname); in inline_list__append() 210 static int inline_list__append_dso_a2l(struct dso *dso, in inline_list__append_dso_a2l() argument 213 struct a2l_data *a2l = dso->a2l; in inline_list__append_dso_a2l() 217 return inline_list__append(filename, funcname, a2l->line, node, dso); in inline_list__append_dso_a2l() [all …]
|
D | symbol.c | 32 static int dso__load_kernel_sym(struct dso *dso, struct map *map); 33 static int dso__load_guest_kernel_sym(struct dso *dso, struct map *map); 489 void dso__reset_find_symbol_cache(struct dso *dso) in dso__reset_find_symbol_cache() argument 494 dso->last_find_result[type].addr = 0; in dso__reset_find_symbol_cache() 495 dso->last_find_result[type].symbol = NULL; in dso__reset_find_symbol_cache() 499 void dso__insert_symbol(struct dso *dso, enum map_type type, struct symbol *sym) in dso__insert_symbol() argument 501 __symbols__insert(&dso->symbols[type], sym, dso->kernel); in dso__insert_symbol() 504 if (dso->last_find_result[type].addr >= sym->start && in dso__insert_symbol() 505 (dso->last_find_result[type].addr < sym->end || in dso__insert_symbol() 507 dso->last_find_result[type].symbol = sym; in dso__insert_symbol() [all …]
|
D | srcline.h | 8 struct dso; 12 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym, 14 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym, 32 struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr);
|
D | symbol.h | 246 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, 251 int dso__load(struct dso *dso, struct map *map); 252 int dso__load_vmlinux(struct dso *dso, struct map *map, 254 int dso__load_vmlinux_path(struct dso *dso, struct map *map); 255 int __dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map, 257 int dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map); 259 void dso__insert_symbol(struct dso *dso, enum map_type type, 262 struct symbol *dso__find_symbol(struct dso *dso, enum map_type type, 264 struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type, 268 struct symbol *dso__first_symbol(struct dso *dso, enum map_type type); [all …]
|
D | map.c | 134 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument 141 map->dso = dso__get(dso); in map__init() 161 struct dso *dso; in map__new() local 200 dso = machine__findnew_vdso(machine, thread); in map__new() 202 dso = machine__findnew_dso(machine, filename); in map__new() 204 if (dso == NULL) in map__new() 207 map__init(map, type, start, start + len, pgoff, dso); in map__new() 218 dso__set_loaded(dso, map->type); in map__new() 220 dso->nsinfo = nsi; in map__new() 221 dso__put(dso); in map__new() [all …]
|
D | vdso.h | 20 struct dso; 22 bool dso__is_vdso(struct dso *dso); 27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
|
D | unwind-libunwind-local.c | 248 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument 257 r = dso__data_read_offset(dso, machine, offset, in unwind_spec_ehframe() 271 static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, in read_unwind_spec_eh_frame() argument 276 u64 offset = dso->data.eh_frame_hdr_offset; in read_unwind_spec_eh_frame() 279 fd = dso__data_get_fd(dso, machine); in read_unwind_spec_eh_frame() 285 dso->data.eh_frame_hdr_offset = offset; in read_unwind_spec_eh_frame() 286 dso__data_put_fd(dso); in read_unwind_spec_eh_frame() 290 ret = unwind_spec_ehframe(dso, machine, offset, in read_unwind_spec_eh_frame() 298 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument 302 u64 ofs = dso->data.debug_frame_offset; in read_unwind_spec_debug_frame() [all …]
|
D | db-export.h | 26 struct dso; 58 int (*export_dso)(struct db_export *dbe, struct dso *dso, 61 struct dso *dso); 94 int db_export__dso(struct db_export *dbe, struct dso *dso, 97 struct dso *dso);
|
D | unwind-libdw.c | 30 struct dso *dso = NULL; in __report_module() local 37 dso = al->map->dso; in __report_module() 39 if (!dso) in __report_module() 52 mod = dwfl_report_elf(ui->dwfl, dso->short_name, in __report_module() 53 …(dso->symsrc_filename ? dso->symsrc_filename : dso->long_name), -1, al->map->start - al->map->pgof… in __report_module() 123 if (!al.map->dso) in access_dso_mem() 126 size = dso__data_read_addr(al.map->dso, al.map, ui->machine, in access_dso_mem()
|
D | symbol-elf.c | 223 static char *demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in demangle_sym() argument 233 if (!want_demangle(dso->kernel || kmodule)) in demangle_sym() 266 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss, struct map *map) in dso__synthesize_plt_symbols() argument 376 demangled = demangle_sym(dso, 0, elf_name); in dso__synthesize_plt_symbols() 389 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols() 402 demangled = demangle_sym(dso, 0, elf_name); in dso__synthesize_plt_symbols() 415 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols() 425 __func__, dso->long_name); in dso__synthesize_plt_symbols() 429 char *dso__demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in dso__demangle_sym() argument 431 return demangle_sym(dso, kmodule, elf_name); in dso__demangle_sym() [all …]
|
D | db-export.c | 206 int db_export__dso(struct db_export *dbe, struct dso *dso, in db_export__dso() argument 209 if (dso->db_id) in db_export__dso() 212 dso->db_id = ++dbe->dso_last_db_id; in db_export__dso() 215 return dbe->export_dso(dbe, dso, machine); in db_export__dso() 221 struct dso *dso) in db_export__symbol() argument 231 return dbe->export_symbol(dbe, sym, dso); in db_export__symbol() 242 struct dso *dso = al->map->dso; in db_ids_from_al() local 244 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al() 247 *dso_db_id = dso->db_id; in db_ids_from_al() 252 dso__insert_symbol(dso, al->map->type, al->sym); in db_ids_from_al() [all …]
|
D | machine.c | 122 struct dso *pos, *n; in dsos__purge() 565 static struct dso *machine__findnew_module_dso(struct machine *machine, in machine__findnew_module_dso() 569 struct dso *dso; in machine__findnew_module_dso() local 573 dso = __dsos__find(&machine->dsos, m->name, true); in machine__findnew_module_dso() 574 if (!dso) { in machine__findnew_module_dso() 575 dso = __dsos__addnew(&machine->dsos, m->name); in machine__findnew_module_dso() 576 if (dso == NULL) in machine__findnew_module_dso() 579 dso__set_module_info(dso, m, machine); in machine__findnew_module_dso() 580 dso__set_long_name(dso, strdup(filename), true); in machine__findnew_module_dso() 583 dso__get(dso); in machine__findnew_module_dso() [all …]
|
D | symbol-minimal.c | 251 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, in symsrc__init() argument 269 dso->load_errno = errno; in symsrc__init() 290 int dso__synthesize_plt_symbols(struct dso *dso __maybe_unused, in dso__synthesize_plt_symbols() 335 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() 379 char *dso__demangle_sym(struct dso *dso __maybe_unused, in dso__demangle_sym()
|
D | build-id.c | 53 al.map->dso->hit = 1; in build_id__mark_dso_hit() 255 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size, in dso__build_id_filename() argument 258 bool is_kallsyms = dso__is_kallsyms((struct dso *)dso); in dso__build_id_filename() 259 bool is_vdso = dso__is_vdso((struct dso *)dso); in dso__build_id_filename() 265 if (!dso->has_build_id) in dso__build_id_filename() 268 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in dso__build_id_filename() 321 struct dso *pos; in machine__write_buildid_table() 382 struct dso *pos; in __dsos__hit_all() 812 static int dso__cache_build_id(struct dso *dso, struct machine *machine) in dso__cache_build_id() argument 814 bool is_kallsyms = dso__is_kallsyms(dso); in dso__cache_build_id() [all …]
|
D | build-id.h | 13 struct dso; 22 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size,
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | EventClass.py | 25 def create_event(name, comm, dso, symbol, raw_buf): argument 27 event = PebsEvent(name, comm, dso, symbol, raw_buf) 29 event = PebsNHM(name, comm, dso, symbol, raw_buf) 31 event = PerfEvent(name, comm, dso, symbol, raw_buf) 37 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument 40 self.dso = dso 47 … event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso) 56 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument 70 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type) 85 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument [all …]
|
/tools/perf/tests/ |
D | dso-data.c | 106 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument 108 int fd = dso__data_get_fd(dso, machine); in dso__data_fd() 111 dso__data_put_fd(dso); in dso__data_fd() 119 struct dso *dso; in test__dso_data() local 127 dso = dso__new((const char *)file); in test__dso_data() 130 dso__data_fd(dso, &machine) >= 0); in test__dso_data() 139 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data() 158 size = dso__data_read_offset(dso, &machine, 10, in test__dso_data() 172 dso__put(dso); in test__dso_data() 202 static struct dso **dsos; [all …]
|
D | hists_common.c | 127 struct dso *dso; in setup_fake_machine() local 129 dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); in setup_fake_machine() 130 if (dso == NULL) in setup_fake_machine() 134 dso__set_loaded(dso, MAP__FUNCTION); in setup_fake_machine() 143 dso__put(dso); in setup_fake_machine() 147 symbols__insert(&dso->symbols[MAP__FUNCTION], sym); in setup_fake_machine() 150 dso__put(dso); in setup_fake_machine() 182 he->ms.map->dso->short_name, in print_hists_in() 209 he->ms.map->dso->short_name, in print_hists_out()
|
D | vmlinux-kallsyms.c | 111 for (nd = rb_first(&vmlinux_map->dso->symbols[type]); nd; nd = rb_next(nd)) { in test__vmlinux_matches_kallsyms() 187 (map->dso->kernel ? in test__vmlinux_matches_kallsyms() 188 map->dso->short_name : in test__vmlinux_matches_kallsyms() 189 map->dso->name)); in test__vmlinux_matches_kallsyms() 220 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms() 224 pr_info(" %s\n", pair->dso->name); in test__vmlinux_matches_kallsyms()
|
/tools/perf/arch/powerpc/util/ |
D | skip-callchain-idx.c | 152 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument 162 const char *exec_file = dso->long_name; in check_return_addr() 164 dwfl = dso->dwfl; in check_return_addr() 186 dso->dwfl = dwfl; in check_return_addr() 245 struct dso *dso = NULL; in arch_skip_callchain_idx() local 259 dso = al.map->dso; in arch_skip_callchain_idx() 261 if (!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/scripts/python/ |
D | intel-pt-events.py | 83 def print_common_ip(sample, symbol, dso): argument 85 print "%16x %s (%s)" % (ip, symbol, dso) 96 dso = param_dict["dso"] 98 dso = "[unknown]" 108 print_common_ip(sample, symbol, dso) 112 print_common_ip(sample, symbol, dso) 116 print_common_ip(sample, symbol, dso) 120 print_common_ip(sample, symbol, dso) 124 print_common_ip(sample, symbol, dso) 128 print_common_ip(sample, symbol, dso)
|
D | event_analyzing_sample.py | 80 dso = param_dict["dso"] 82 dso = "Unknown_dso" 90 event = create_event(name, comm, dso, symbol, raw_buf) 96 (event.name, event.symbol, event.comm, event.dso)) 101 (event.name, event.symbol, event.comm, event.dso, event.flags,
|