Lines Matching refs:dso
249 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()
312 fd = dso__data_get_fd(dso, machine); in read_unwind_spec_debug_frame()
315 dso__data_put_fd(dso); in read_unwind_spec_debug_frame()
319 fd = open(dso->symsrc_filename, O_RDONLY); in read_unwind_spec_debug_frame()
331 dso, DSO_BINARY_TYPE__DEBUGLINK, in read_unwind_spec_debug_frame()
342 if (dso->symsrc_filename != NULL) { 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()
350 dso->symsrc_filename = debuglink; in read_unwind_spec_debug_frame()
356 dso->data.debug_frame_offset = ofs; in read_unwind_spec_debug_frame()
384 if (!map || !map->dso) in find_proc_info()
387 pr_debug("unwind: find_proc_info dso %s\n", map->dso->name); in find_proc_info()
390 if (!read_unwind_spec_eh_frame(map->dso, ui->machine, in find_proc_info()
407 !read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) { in find_proc_info()
408 int fd = dso__data_get_fd(map->dso, ui->machine); in find_proc_info()
409 int is_exec = elf_is_exec(fd, map->dso->name); 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()
476 if (!map->dso) in access_dso_mem()
479 size = dso__data_read_addr(map->dso, map, ui->machine, in access_dso_mem()