Lines Matching refs:dso
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()
311 fd = dso__data_get_fd(dso, machine); in read_unwind_spec_debug_frame()
314 dso__data_put_fd(dso); in read_unwind_spec_debug_frame()
318 fd = open(dso->symsrc_filename, O_RDONLY); in read_unwind_spec_debug_frame()
330 dso, DSO_BINARY_TYPE__DEBUGLINK, in read_unwind_spec_debug_frame()
341 if (dso->symsrc_filename != NULL) { in read_unwind_spec_debug_frame()
345 dso->symsrc_filename, in read_unwind_spec_debug_frame()
347 free(dso->symsrc_filename); in read_unwind_spec_debug_frame()
349 dso->symsrc_filename = debuglink; in read_unwind_spec_debug_frame()
355 dso->data.debug_frame_offset = ofs; in read_unwind_spec_debug_frame()
395 if (!map || !map->dso) in find_proc_info()
398 pr_debug("unwind: find_proc_info dso %s\n", map->dso->name); in find_proc_info()
401 if (!read_unwind_spec_eh_frame(map->dso, ui->machine, in find_proc_info()
418 !read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) { in find_proc_info()
419 int fd = dso__data_get_fd(map->dso, ui->machine); in find_proc_info()
420 int is_exec = elf_is_exec(fd, map->dso->name); in find_proc_info()
425 dso__data_put_fd(map->dso); in find_proc_info()
427 symfile = map->dso->symsrc_filename ?: map->dso->name; in find_proc_info()
487 if (!map->dso) in access_dso_mem()
490 size = dso__data_read_addr(map->dso, map, ui->machine, in access_dso_mem()