Home
last modified time | relevance | path

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

1234

/tools/perf/util/
Ddso.h100 #define DSO__SWAP(dso, type, val) \ argument
103 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \
104 if (dso->needs_swap == DSO_SWAP__YES) { \
134 struct dso { struct
209 #define dso__for_each_symbol(dso, pos, n) \ argument
210 symbols__for_each_entry(&(dso)->symbols, pos, n)
212 static inline void dso__set_loaded(struct dso *dso) in dso__set_loaded() argument
214 dso->loaded = true; in dso__set_loaded()
217 struct dso *dso__new(const char *name);
218 void dso__delete(struct dso *dso);
[all …]
Ddso.c39 char dso__symtab_origin(const struct dso *dso) in dso__symtab_origin() argument
61 if (dso == NULL || dso->symtab_type == DSO_BINARY_TYPE__NOT_FOUND) in dso__symtab_origin()
63 return origin[dso->symtab_type]; in dso__symtab_origin()
66 int dso__read_binary_type_filename(const struct dso *dso, in dso__read_binary_type_filename() argument
82 len = __symbol__join_symfs(filename, size, dso->long_name); in dso__read_binary_type_filename()
113 if (dso__build_id_filename(dso, filename, size, false) == NULL) in dso__read_binary_type_filename()
118 if (dso__build_id_filename(dso, filename, size, true) == NULL) in dso__read_binary_type_filename()
124 snprintf(filename + len, size - len, "%s.debug", dso->long_name); in dso__read_binary_type_filename()
129 snprintf(filename + len, size - len, "%s", dso->long_name); in dso__read_binary_type_filename()
137 last_slash = dso->long_name + dso->long_name_len; in dso__read_binary_type_filename()
[all …]
Ddsos.c15 struct dso *pos; in __dsos__read_build_ids()
42 struct dso *__dsos__findnew_link_by_longname(struct rb_root *root, struct dso *dso, const char *nam… in __dsos__findnew_link_by_longname() argument
48 name = dso->long_name; in __dsos__findnew_link_by_longname()
53 struct dso *this = rb_entry(*p, struct dso, rb_node); in __dsos__findnew_link_by_longname()
63 if (!dso || (dso == this)) in __dsos__findnew_link_by_longname()
70 rc = strcmp(dso->short_name, this->short_name); in __dsos__findnew_link_by_longname()
81 if (dso) { in __dsos__findnew_link_by_longname()
83 rb_link_node(&dso->rb_node, parent, p); in __dsos__findnew_link_by_longname()
84 rb_insert_color(&dso->rb_node, root); in __dsos__findnew_link_by_longname()
85 dso->root = root; in __dsos__findnew_link_by_longname()
[all …]
Dvdso.c127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso()
130 struct dso *dso; in __machine__addnew_vdso() local
132 dso = dso__new(short_name); in __machine__addnew_vdso()
133 if (dso != NULL) { in __machine__addnew_vdso()
134 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
135 dso__set_long_name(dso, long_name, false); in __machine__addnew_vdso()
138 return dso; in __machine__addnew_vdso()
148 struct dso *dso = map->dso; in machine__thread_dso_type() local
149 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
151 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
[all …]
Ddsos.h11 struct dso;
23 void __dsos__add(struct dsos *dsos, struct dso *dso);
24 void dsos__add(struct dsos *dsos, struct dso *dso);
25 struct dso *__dsos__addnew(struct dsos *dsos, const char *name);
26 struct dso *__dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
27 struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
28 struct dso *__dsos__findnew(struct dsos *dsos, const char *name);
29 struct dso *dsos__findnew(struct dsos *dsos, const char *name);
31 struct dso *__dsos__findnew_link_by_longname(struct rb_root *root, struct dso *dso, const char *nam…
33 static inline struct dso *__dsos__findnew_by_longname(struct rb_root *root, const char *name) in __dsos__findnew_by_longname()
[all …]
Dsrcline.c21 static const char *dso__name(struct dso *dso) in dso__name() argument
25 if (dso->symsrc_filename) in dso__name()
26 dso_name = dso->symsrc_filename; in dso__name()
28 dso_name = dso->long_name; in dso__name()
83 static struct symbol *new_inline_sym(struct dso *dso, in new_inline_sym() argument
93 if (dso) { in new_inline_sym()
94 demangled = dso__demangle_sym(dso, 0, funcname); in new_inline_sym()
264 static int inline_list__append_dso_a2l(struct dso *dso, in inline_list__append_dso_a2l() argument
268 struct a2l_data *a2l = dso->a2l; in inline_list__append_dso_a2l()
269 struct symbol *inline_sym = new_inline_sym(dso, sym, a2l->funcname); in inline_list__append_dso_a2l()
[all …]
Dsymbol.c44 static int dso__load_kernel_sym(struct dso *dso, struct map *map);
45 static int dso__load_guest_kernel_sym(struct dso *dso, struct map *map);
504 void dso__reset_find_symbol_cache(struct dso *dso) in dso__reset_find_symbol_cache() argument
506 dso->last_find_result.addr = 0; in dso__reset_find_symbol_cache()
507 dso->last_find_result.symbol = NULL; in dso__reset_find_symbol_cache()
510 void dso__insert_symbol(struct dso *dso, struct symbol *sym) in dso__insert_symbol() argument
512 __symbols__insert(&dso->symbols, sym, dso->kernel); in dso__insert_symbol()
515 if (dso->last_find_result.addr >= sym->start && in dso__insert_symbol()
516 (dso->last_find_result.addr < sym->end || in dso__insert_symbol()
518 dso->last_find_result.symbol = sym; in dso__insert_symbol()
[all …]
Dsrcline.h9 struct dso;
13 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
15 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
19 char *get_srcline_split(struct dso *dso, u64 addr, unsigned *line);
43 struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr,
Dsymbol.h21 struct dso;
133 int dso__load(struct dso *dso, struct map *map);
134 int dso__load_vmlinux(struct dso *dso, struct map *map,
136 int dso__load_vmlinux_path(struct dso *dso, struct map *map);
137 int __dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map,
139 int dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map);
141 void dso__insert_symbol(struct dso *dso,
144 struct symbol *dso__find_symbol(struct dso *dso, u64 addr);
145 struct symbol *dso__find_symbol_by_name(struct dso *dso, const char *name);
149 struct symbol *dso__first_symbol(struct dso *dso);
[all …]
Dmap.c133 void map__init(struct map *map, u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
139 map->dso = dso__get(dso); in map__init()
159 struct dso *dso; in map__new() local
198 dso = machine__findnew_vdso(machine, thread); in map__new()
200 dso = machine__findnew_dso(machine, filename); in map__new()
202 if (dso == NULL) in map__new()
205 map__init(map, start, start + len, pgoff, dso); in map__new()
216 dso__set_loaded(dso); in map__new()
218 dso->nsinfo = nsi; in map__new()
219 dso__put(dso); in map__new()
[all …]
Dvdso.h20 struct dso;
22 bool dso__is_vdso(struct dso *dso);
27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
Dunwind-libunwind-local.c249 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument
258 r = dso__data_read_offset(dso, machine, offset, in unwind_spec_ehframe()
272 static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, in read_unwind_spec_eh_frame() argument
277 u64 offset = dso->data.eh_frame_hdr_offset; in read_unwind_spec_eh_frame()
280 fd = dso__data_get_fd(dso, machine); in read_unwind_spec_eh_frame()
286 dso->data.eh_frame_hdr_offset = offset; in read_unwind_spec_eh_frame()
287 dso__data_put_fd(dso); in read_unwind_spec_eh_frame()
291 ret = unwind_spec_ehframe(dso, machine, offset, in read_unwind_spec_eh_frame()
299 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument
303 u64 ofs = dso->data.debug_frame_offset; in read_unwind_spec_debug_frame()
[all …]
Ddb-export.h17 struct dso;
50 int (*export_dso)(struct db_export *dbe, struct dso *dso,
53 struct dso *dso);
92 int db_export__dso(struct db_export *dbe, struct dso *dso,
95 struct dso *dso);
Dunwind-libdw.c33 struct dso *dso = NULL; in __report_module() local
41 dso = al->map->dso; in __report_module()
43 if (!dso) in __report_module()
56 mod = dwfl_report_elf(ui->dwfl, dso->short_name, in __report_module()
57 …(dso->symsrc_filename ? dso->symsrc_filename : dso->long_name), -1, al->map->start - al->map->pgof… in __report_module()
115 if (!al.map->dso) in access_dso_mem()
118 size = dso__data_read_addr(al.map->dso, al.map, ui->machine, in access_dso_mem()
Dmap.h14 struct dso;
44 struct dso *dso; member
92 dso__for_each_symbol(map->dso, pos, n)
112 u64 start, u64 end, u64 pgoff, struct dso *dso);
117 struct map *map__new2(u64 start, struct dso *dso);
Dsymbol-elf.c238 static char *demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in demangle_sym() argument
248 if (!want_demangle(dso->kernel || kmodule)) in demangle_sym()
281 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss) in dso__synthesize_plt_symbols() argument
391 demangled = demangle_sym(dso, 0, elf_name); in dso__synthesize_plt_symbols()
404 symbols__insert(&dso->symbols, f); in dso__synthesize_plt_symbols()
417 demangled = demangle_sym(dso, 0, elf_name); in dso__synthesize_plt_symbols()
430 symbols__insert(&dso->symbols, f); in dso__synthesize_plt_symbols()
440 __func__, dso->long_name); in dso__synthesize_plt_symbols()
444 char *dso__demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in dso__demangle_sym() argument
446 return demangle_sym(dso, kmodule, elf_name); in dso__demangle_sym()
[all …]
Dsymbol-minimal.c254 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, in symsrc__init() argument
272 dso->load_errno = errno; in symsrc__init()
293 int dso__synthesize_plt_symbols(struct dso *dso __maybe_unused, in dso__synthesize_plt_symbols()
337 int dso__load_sym(struct dso *dso, struct map *map __maybe_unused, in dso__load_sym() argument
347 dso->is_64_bit = ret; in dso__load_sym()
350 dso__set_build_id(dso, build_id); in dso__load_sym()
381 char *dso__demangle_sym(struct dso *dso __maybe_unused, in dso__demangle_sym()
Dmachine.c168 struct dso *pos, *n; in dsos__purge()
669 static struct dso *machine__findnew_module_dso(struct machine *machine, in machine__findnew_module_dso()
673 struct dso *dso; in machine__findnew_module_dso() local
677 dso = __dsos__find(&machine->dsos, m->name, true); in machine__findnew_module_dso()
678 if (!dso) { in machine__findnew_module_dso()
679 dso = __dsos__addnew(&machine->dsos, m->name); in machine__findnew_module_dso()
680 if (dso == NULL) in machine__findnew_module_dso()
683 dso__set_module_info(dso, m, machine); in machine__findnew_module_dso()
684 dso__set_long_name(dso, strdup(filename), true); in machine__findnew_module_dso()
687 dso__get(dso); in machine__findnew_module_dso()
[all …]
Ddb-export.c146 int db_export__dso(struct db_export *dbe, struct dso *dso, in db_export__dso() argument
149 if (dso->db_id) in db_export__dso()
152 dso->db_id = ++dbe->dso_last_db_id; in db_export__dso()
155 return dbe->export_dso(dbe, dso, machine); in db_export__dso()
161 struct dso *dso) in db_export__symbol() argument
171 return dbe->export_symbol(dbe, sym, dso); in db_export__symbol()
182 struct dso *dso = al->map->dso; in db_ids_from_al() local
184 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
187 *dso_db_id = dso->db_id; in db_ids_from_al()
192 dso__insert_symbol(dso, al->sym); in db_ids_from_al()
[all …]
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py26 def create_event(name, comm, dso, symbol, raw_buf): argument
28 event = PebsEvent(name, comm, dso, symbol, raw_buf)
30 event = PebsNHM(name, comm, dso, symbol, raw_buf)
32 event = PerfEvent(name, comm, dso, symbol, raw_buf)
38 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument
41 self.dso = dso
49 (self.name, self.symbol, self.comm, self.dso))
58 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument
72 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
87 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument
[all …]
/tools/perf/tests/
Ddso-data.c106 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 …]
Dhists_common.c129 struct dso *dso; in setup_fake_machine() local
131 dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); in setup_fake_machine()
132 if (dso == NULL) in setup_fake_machine()
136 dso__set_loaded(dso); in setup_fake_machine()
145 dso__put(dso); in setup_fake_machine()
149 symbols__insert(&dso->symbols, sym); in setup_fake_machine()
152 dso__put(dso); in setup_fake_machine()
184 he->ms.map->dso->short_name, in print_hists_in()
211 he->ms.map->dso->short_name, in print_hists_out()
/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c152 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
258 dso = al.map->dso; in arch_skip_callchain_idx()
260 if (!dso) { in arch_skip_callchain_idx()
265 rc = check_return_addr(dso, al.map->start, ip); in arch_skip_callchain_idx()
268 dso->long_name, al.sym->name, ip, rc); in arch_skip_callchain_idx()
/tools/perf/scripts/python/
Dintel-pt-events.py89 def print_common_ip(sample, symbol, dso): argument
91 print("%16x %s (%s)" % (ip, symbol, dso))
102 dso = param_dict["dso"]
104 dso = "[unknown]"
114 print_common_ip(sample, symbol, dso)
118 print_common_ip(sample, symbol, dso)
122 print_common_ip(sample, symbol, dso)
126 print_common_ip(sample, symbol, dso)
130 print_common_ip(sample, symbol, dso)
134 print_common_ip(sample, symbol, dso)
Devent_analyzing_sample.py82 dso = param_dict["dso"]
84 dso = "Unknown_dso"
92 event = create_event(name, comm, dso, symbol, raw_buf)
98 (event.name, event.symbol, event.comm, event.dso))
103 (event.name, event.symbol, event.comm, event.dso, event.flags,

1234