Lines Matching defs:map
38 #include "map.h"
367 static struct map *find_map(unw_word_t ip, struct unwind_info *ui)
378 struct map *map;
383 map = find_map(ip, ui);
384 if (!map || !map->dso)
387 pr_debug("unwind: find_proc_info dso %s\n", map->dso->name);
390 if (!read_unwind_spec_eh_frame(map->dso, ui->machine,
394 di.start_ip = map->start;
395 di.end_ip = map->end;
396 di.u.rti.segbase = map->start + segbase - map->pgoff;
397 di.u.rti.table_data = map->start + table_data - map->pgoff;
407 !read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) {
408 int fd = dso__data_get_fd(map->dso, ui->machine);
409 int is_exec = elf_is_exec(fd, map->dso->name);
410 unw_word_t base = is_exec ? 0 : map->start;
414 dso__data_put_fd(map->dso);
416 symfile = map->dso->symsrc_filename ?: map->dso->name;
420 map->start, map->end))
467 struct map *map;
470 map = find_map(addr, ui);
471 if (!map) {
472 pr_debug("unwind: no map for %lx\n", (unsigned long)addr);
476 if (!map->dso)
479 size = dso__data_read_addr(map->dso, map, ui->machine,
580 e.ms.map = al.map;
586 al.map ? al.map->map_ip(al.map, ip) : (u64) 0);