Home
last modified time | relevance | path

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

12345

/linux/tools/perf/util/
A Ddso.c42 char dso__symtab_origin(const struct dso *dso) in dso__symtab_origin() argument
586 static void close_dso(struct dso *dso) in close_dso() argument
593 struct dso *dso; in close_first_dso() local
660 void dso__data_close(struct dso *dso) in dso__data_close() argument
766 static int bpf_size(struct dso *dso) in bpf_size() argument
782 dso_cache__free(struct dso *dso) in dso_cache__free() argument
1156 struct dso *dso = dso__new(name); in dso__new_map() local
1259 struct dso *dso = calloc(1, sizeof(*dso) + strlen(name) + 1); in dso__new_id() local
1301 void dso__delete(struct dso *dso) in dso__delete() argument
1332 struct dso *dso__get(struct dso *dso) in dso__get() argument
[all …]
A Ddso.h234 void dso__delete(struct dso *dso);
240 int dso__name_len(const struct dso *dso);
242 struct dso *dso__get(struct dso *dso);
243 void dso__put(struct dso *dso);
251 #define dso__zput(dso) __dso__zput(&dso) argument
253 bool dso__loaded(const struct dso *dso);
262 void dso__sort_by_name(struct dso *dso);
274 bool dso__needs_decompress(struct dso *dso);
345 void dso__data_put_fd(struct dso *dso);
346 void dso__data_close(struct dso *dso);
[all …]
A Ddsos.c37 static void dso__inject_id(struct dso *dso, struct dso_id *id) in dso__inject_id() argument
57 int dso__cmp_id(struct dso *a, struct dso *b) in dso__cmp_id()
108 struct dso *__dsos__findnew_link_by_longname_id(struct rb_root *root, struct dso *dso, in __dsos__findnew_link_by_longname_id() argument
120 struct dso *this = rb_entry(*p, struct dso, rb_node); in __dsos__findnew_link_by_longname_id()
130 if (!dso || (dso == this)) in __dsos__findnew_link_by_longname_id()
148 if (dso) { in __dsos__findnew_link_by_longname_id()
157 void __dsos__add(struct dsos *dsos, struct dso *dso) in __dsos__add() argument
184 void dsos__add(struct dsos *dsos, struct dso *dso) in dsos__add() argument
214 static void dso__set_basename(struct dso *dso) in dso__set_basename() argument
248 struct dso *dso = dso__new_id(name, id); in __dsos__addnew_id() local
[all …]
A Dvdso.c130 struct dso *dso; in __machine__addnew_vdso() local
150 struct dso *dso = map->dso; in machine__thread_dso_type() local
151 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
241 struct dso *dso; in __machine__findnew_compat() local
244 if (dso) in __machine__findnew_compat()
259 struct dso **dso) in __machine__findnew_vdso_compat() argument
293 struct dso *dso = NULL; in machine__find_vdso() local
303 if (dso && dso_type != dso__type(dso, machine)) in machine__find_vdso()
324 struct dso *dso = NULL; in machine__findnew_vdso() local
335 if (dso) in machine__findnew_vdso()
[all …]
A Dsymbol.c44 static int dso__load_kernel_sym(struct dso *dso, struct map *map);
507 void dso__reset_find_symbol_cache(struct dso *dso) in dso__reset_find_symbol_cache() argument
515 __symbols__insert(&dso->symbols, sym, dso->kernel); in dso__insert_symbol()
532 struct symbol *dso__find_symbol(struct dso *dso, u64 addr) in dso__find_symbol() argument
542 struct symbol *dso__first_symbol(struct dso *dso) in dso__first_symbol() argument
547 struct symbol *dso__last_symbol(struct dso *dso) in dso__last_symbol() argument
578 void dso__sort_by_name(struct dso *dso) in dso__sort_by_name() argument
706 struct dso *dso = arg; in map__process_kallsym_symbol() local
1189 struct dso *dso; member
1318 md.dso = dso; in dso__load_kcore()
[all …]
A Dsrcline.c24 static const char *dso__name(struct dso *dso) in dso__name() argument
86 static struct symbol *new_inline_sym(struct dso *dso, in new_inline_sym() argument
96 if (dso) { in new_inline_sym()
281 static int inline_list__append_dso_a2l(struct dso *dso, in inline_list__append_dso_a2l() argument
296 char **file, unsigned int *line, struct dso *dso, in addr2line() argument
355 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
525 static int inline_list__append_record(struct dso *dso, in inline_list__append_record() argument
539 struct dso *dso, in addr2line() argument
643 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
658 struct dso *dso, struct symbol *sym) in addr2inlines() argument
[all …]
A Dsymbol.h22 struct dso;
135 int dso__load(struct dso *dso, struct map *map);
136 int dso__load_vmlinux(struct dso *dso, struct map *map,
138 int dso__load_vmlinux_path(struct dso *dso, struct map *map);
143 void dso__insert_symbol(struct dso *dso,
145 void dso__delete_symbol(struct dso *dso,
148 struct symbol *dso__find_symbol(struct dso *dso, u64 addr);
153 struct symbol *dso__first_symbol(struct dso *dso);
154 struct symbol *dso__last_symbol(struct dso *dso);
193 int dso__load_bfd_symbols(struct dso *dso, const char *debugfile);
[all …]
A Ddsos.h11 struct dso;
24 void __dsos__add(struct dsos *dsos, struct dso *dso);
25 void dsos__add(struct dsos *dsos, struct dso *dso);
26 struct dso *__dsos__addnew(struct dsos *dsos, const char *name);
27 struct dso *__dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
29 struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, struct dso_id *id);
31 struct dso *__dsos__findnew_link_by_longname_id(struct rb_root *root, struct dso *dso,
37 bool (skip)(struct dso *dso, int parm), int parm);
A Dmap.c122 map->dso = dso__get(dso); in map__init()
141 struct dso *dso; in map__new() local
179 if (dso == NULL) in map__new()
195 dso->nsinfo = nsi; in map__new()
200 dso__put(dso); in map__new()
214 struct map *map__new2(u64 start, struct dso *dso) in map__new2() argument
276 return map->dso && map->dso->binary_type == DSO_BINARY_TYPE__OOL; in __map__is_ool()
388 if (from->dso && from->dso->kernel) in map__clone()
484 if (map->dso->rel) in map__rip_2objdump()
553 if (map->dso && map->dso->kernel) { in maps__insert()
[all …]
A Dunwind-libunwind-local.c249 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument
272 static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, in read_unwind_spec_eh_frame() argument
287 dso__data_put_fd(dso); in read_unwind_spec_eh_frame()
299 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument
315 dso__data_put_fd(dso); in read_unwind_spec_debug_frame()
346 dso->symsrc_filename, in read_unwind_spec_debug_frame()
348 zfree(&dso->symsrc_filename); in read_unwind_spec_debug_frame()
384 if (!map || !map->dso) in find_proc_info()
414 dso__data_put_fd(map->dso); in find_proc_info()
416 symfile = map->dso->symsrc_filename ?: map->dso->name; in find_proc_info()
[all …]
A 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,
A Dunwind-libdw.c28 const struct dso *dso = *userdata; in __find_debuginfo() local
30 assert(dso); in __find_debuginfo()
31 if (dso->symsrc_filename && strcmp (file_name, dso->symsrc_filename)) in __find_debuginfo()
32 *debuginfo_file_name = strdup(dso->symsrc_filename); in __find_debuginfo()
47 struct dso *dso = NULL; in __report_module() local
55 dso = al->map->dso; in __report_module()
57 if (!dso) in __report_module()
70 mod = dwfl_report_elf(ui->dwfl, dso->short_name, dso->long_name, -1, in __report_module()
84 *userdatap = dso; in __report_module()
143 if (!al.map->dso) in access_dso_mem()
[all …]
A Dsymbol-elf.c241 static char *demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in demangle_sym() argument
288 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss) in dso__synthesize_plt_symbols() argument
451 char *dso__demangle_sym(struct dso *dso, int kmodule, const char *elf_name) in dso__demangle_sym() argument
778 static int dso__swap_init(struct dso *dso, unsigned char eidata) in dso__swap_init() argument
833 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, in symsrc__init() argument
970 static int dso__process_kernel_symbol(struct dso *dso, struct map *map, in dso__process_kernel_symbol() argument
1021 *curr_dsop = dso; in dso__process_kernel_symbol()
1084 struct dso *curr_dso = dso; in dso__load_sym_internal()
1180 if (dso->kernel) { in dso__load_sym_internal()
1259 if (dso->kernel) { in dso__load_sym_internal()
[all …]
A Dmachine.c721 struct dso *dso; in machine__findnew_module_dso() local
726 if (!dso) { in machine__findnew_module_dso()
739 return dso; in machine__findnew_module_dso()
782 struct dso *dso = dso__new(event->ksymbol.name); in machine__process_ksymbol_register() local
784 if (dso) { in machine__process_ksymbol_register()
902 struct dso *dso; in machine__addnew_module_map() local
940 bool (skip)(struct dso *dso, int parm), int parm) in machine__fprintf_dsos_buildid() argument
1111 static u64 find_entry_trampoline(struct dso *dso) in find_entry_trampoline() argument
1369 static bool is_kmod_dso(struct dso *dso) in is_kmod_dso() argument
1609 struct dso *dso; in machine__uses_kcore() local
[all …]
A 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);
A Dmachine.h13 struct dso;
216 struct dso *machine__findnew_dso_id(struct machine *machine, const char *filename, struct dso_id *i…
217 struct dso *machine__findnew_dso(struct machine *machine, const char *filename);
243 bool (skip)(struct dso *dso, int parm), int parm);
246 bool (skip)(struct dso *dso, int parm), int parm);
257 typedef int (*machine__dso_t)(struct dso *dso, struct machine *machine, void *priv);
280 struct dso *kernel);
291 struct dso *kernel,
295 struct dso *kernel);
A Dbuild-id.c62 al.map->dso->hit = 1; in build_id__mark_dso_hit()
264 char *__dso__build_id_filename(const struct dso *dso, char *bf, size_t size, in __dso__build_id_filename() argument
267 bool is_vdso = dso__is_vdso((struct dso *)dso); in __dso__build_id_filename()
273 if (!dso->has_build_id) in __dso__build_id_filename()
295 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size, in dso__build_id_filename() argument
298 bool is_kallsyms = dso__is_kallsyms((struct dso *)dso); in dso__build_id_filename()
338 struct dso *pos; in machine__write_buildid_table()
399 struct dso *pos; in __dsos__hit_all()
875 static int dso__cache_build_id(struct dso *dso, struct machine *machine, in dso__cache_build_id() argument
882 if (!dso->has_build_id) in dso__cache_build_id()
[all …]
/linux/tools/perf/
A Dbuiltin-inject.c337 struct dso *dso; in findnew_dso() local
365 if (dso) { in findnew_dso()
372 return dso; in findnew_dso()
380 struct dso *dso; in perf_event__repipe_buildid_mmap() local
385 if (dso && !dso->hit) { in perf_event__repipe_buildid_mmap()
405 struct dso *dso; in perf_event__repipe_mmap2() local
409 if (dso) { in perf_event__repipe_mmap2()
455 struct dso *dso; in perf_event__repipe_buildid_mmap2() local
461 if (dso) { in perf_event__repipe_buildid_mmap2()
472 if (dso && !dso->hit) { in perf_event__repipe_buildid_mmap2()
[all …]
/linux/tools/perf/tests/
A Ddso-data.c106 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
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()
172 dso__put(dso); in test__dso_data()
202 static struct dso **dsos;
229 struct dso *dso = dsos[i]; in dsos__delete() local
231 unlink(dso->name); in dsos__delete()
232 dso__put(dso); in dsos__delete()
272 struct dso *dso = dsos[i]; in test__dso_data_cache() local
[all …]
A Dpe-file-parsing.c34 struct dso *dso; in run_dir() local
57 dso = dso__new(filename); in run_dir()
58 TEST_ASSERT_VAL("Failed to get dso", dso); in run_dir()
60 ret = dso__load_bfd_symbols(dso, debugfile); in run_dir()
63 dso__sort_by_name(dso); in run_dir()
64 sym = dso__find_symbol_by_name(dso, "main"); in run_dir()
66 dso__delete(dso); in run_dir()
A 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()
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A 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 …]
/linux/tools/perf/scripts/python/
A Dintel-pt-events.py208 dso = get_optional(sample, "addr_dso")
247 elif dso == glb_dso:
250 src_str = dso
251 glb_dso = dso
270 dso = get_optional(param_dict, "dso")
293 print_common_ip(param_dict, sample, symbol, dso)
297 print_common_ip(param_dict, sample, symbol, dso)
301 print_common_ip(param_dict, sample, symbol, dso)
305 print_common_ip(param_dict, sample, symbol, dso)
309 print_common_ip(param_dict, sample, symbol, dso)
[all …]
/linux/tools/perf/arch/powerpc/util/
A 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()
/linux/tools/perf/bench/
A Dinject-buildid.c81 struct bench_dso *dso = &dsos[nr_dsos]; in add_dso() local
90 dso->name = realpath(fpath, NULL); in add_dso()
91 if (dso->name == NULL) in add_dso()
94 dso->ino = nr_dsos++; in add_dso()
123 struct bench_dso *dso = &dsos[i]; in release_dso() local
125 free(dso->name); in release_dso()
133 return 0x400000ULL + dso->ino * 8192ULL; in dso_map_addr()
190 event.mmap2.ino = dso->ino; in synthesize_mmap()
194 event.mmap2.start = dso_map_addr(dso); in synthesize_mmap()
224 .ip = dso_map_addr(dso), in synthesize_sample()
[all …]

Completed in 56 milliseconds

12345