Lines Matching refs:map

563 struct map *machine__findnew_module_map(struct machine *machine, u64 start,  in machine__findnew_module_map()
566 struct map *map = NULL; in machine__findnew_module_map() local
573 map = map_groups__find_by_name(&machine->kmaps, MAP__FUNCTION, in machine__findnew_module_map()
575 if (map) in machine__findnew_module_map()
582 map = map__new2(start, dso, MAP__FUNCTION); in machine__findnew_module_map()
583 if (map == NULL) in machine__findnew_module_map()
586 map_groups__insert(&machine->kmaps, map); in machine__findnew_module_map()
590 return map; in machine__findnew_module_map()
745 struct map *map; in __machine__create_kernel_maps() local
754 map = __machine__kernel_map(machine, type); in __machine__create_kernel_maps()
755 kmap = map__kmap(map); in __machine__create_kernel_maps()
760 map_groups__insert(&machine->kmaps, map); in __machine__create_kernel_maps()
772 struct map *map = __machine__kernel_map(machine, type); in machine__destroy_kernel_maps() local
774 if (map == NULL) in machine__destroy_kernel_maps()
777 kmap = map__kmap(map); in machine__destroy_kernel_maps()
778 map_groups__remove(&machine->kmaps, map); in machine__destroy_kernel_maps()
872 struct map *map = machine__kernel_map(machine); in machine__load_kallsyms() local
873 int ret = dso__load_kallsyms(map->dso, filename, map, filter); in machine__load_kallsyms()
876 dso__set_loaded(map->dso, type); in machine__load_kallsyms()
891 struct map *map = machine__kernel_map(machine); in machine__load_vmlinux_path() local
892 int ret = dso__load_vmlinux_path(map->dso, map, filter); in machine__load_vmlinux_path()
895 dso__set_loaded(map->dso, type); in machine__load_vmlinux_path()
943 struct map *map; in map_groups__set_module_path() local
946 map = map_groups__find_by_name(mg, MAP__FUNCTION, m->name); in map_groups__set_module_path()
947 if (map == NULL) in map_groups__set_module_path()
954 dso__set_long_name(map->dso, long_name, true); in map_groups__set_module_path()
955 dso__kernel_module_get_build_id(map->dso, ""); in map_groups__set_module_path()
961 if (m->comp && is_kmod_dso(map->dso)) in map_groups__set_module_path()
962 map->dso->symtab_type++; in map_groups__set_module_path()
1045 struct map *map; in machine__create_module() local
1047 map = machine__findnew_module_map(machine, start, name); in machine__create_module()
1048 if (map == NULL) in machine__create_module()
1051 dso__kernel_module_get_build_id(map->dso, machine->root_dir); in machine__create_module()
1150 struct map *map; in machine__process_kernel_mmap_event() local
1170 map = machine__findnew_module_map(machine, event->mmap.start, in machine__process_kernel_mmap_event()
1172 if (map == NULL) in machine__process_kernel_mmap_event()
1175 map->end = map->start + event->mmap.len; in machine__process_kernel_mmap_event()
1263 struct map *map; in machine__process_mmap2_event() local
1288 map = map__new(machine, event->mmap2.start, in machine__process_mmap2_event()
1297 if (map == NULL) in machine__process_mmap2_event()
1300 thread__insert_map(thread, map); in machine__process_mmap2_event()
1302 map__put(map); in machine__process_mmap2_event()
1317 struct map *map; in machine__process_mmap_event() local
1342 map = map__new(machine, event->mmap.start, in machine__process_mmap_event()
1348 if (map == NULL) in machine__process_mmap_event()
1351 thread__insert_map(thread, map); in machine__process_mmap_event()
1353 map__put(map); in machine__process_mmap_event()
1517 ams->map = al.map; in ip__resolve_ams()
1528 if (al.map == NULL) { in ip__resolve_data()
1540 ams->map = al.map; in ip__resolve_data()
1612 return callchain_cursor_append(&callchain_cursor, al.addr, al.map, al.sym); in add_callchain_ip()
1867 entry->map, entry->sym); in unwind_entry()
2001 struct map *map = machine__kernel_map(machine); in machine__get_kernel_start() local
2013 if (map) { in machine__get_kernel_start()
2014 err = map__load(map, machine->symbol_filter); in machine__get_kernel_start()
2015 if (map->start) in machine__get_kernel_start()
2016 machine->kernel_start = map->start; in machine__get_kernel_start()
2029 struct map *map; in machine__resolve_kernel_addr() local
2030 struct symbol *sym = map_groups__find_symbol(&machine->kmaps, MAP__FUNCTION, *addrp, &map, NULL); in machine__resolve_kernel_addr()
2035 *modp = __map__is_kmodule(map) ? (char *)map->dso->short_name : NULL; in machine__resolve_kernel_addr()
2036 *addrp = map->unmap_ip(map, sym->start); in machine__resolve_kernel_addr()