• Home
  • Raw
  • Download

Lines Matching full:machine

571 	struct machine *machine = kmaps->machine;  in dso__split_kallsyms()  local
595 machine__is_default_guest(machine)) { in dso__split_kallsyms()
613 machine->root_dir, module); in dso__split_kallsyms()
619 !machine__is_default_guest(machine)) in dso__split_kallsyms()
678 machine__is_default_guest(kmaps->machine)) { in dso__split_kallsyms()
1492 struct machine *machine; in dso__load() local
1503 if (map->groups && map->groups->machine) in dso__load()
1504 machine = map->groups->machine; in dso__load()
1506 machine = NULL; in dso__load()
1565 if (map->groups && machine) in dso__load()
1566 root_dir = machine->root_dir; in dso__load()
1750 static int machine__set_modules_path(struct machine *machine) in machine__set_modules_path() argument
1755 version = get_kernel_version(machine->root_dir); in machine__set_modules_path()
1760 machine->root_dir, version); in machine__set_modules_path()
1763 return map_groups__set_modules_path_dir(&machine->kmaps, modules_path); in machine__set_modules_path()
1785 struct map *machine__new_module(struct machine *machine, u64 start, in machine__new_module() argument
1789 struct dso *dso = __dsos__findnew(&machine->kernel_dsos, filename); in machine__new_module()
1798 if (machine__is_host(machine)) in machine__new_module()
1802 map_groups__insert(&machine->kmaps, map); in machine__new_module()
1806 static int machine__create_modules(struct machine *machine) in machine__create_modules() argument
1815 if (machine__is_default_guest(machine)) in machine__create_modules()
1818 sprintf(path, "%s/proc/modules", machine->root_dir); in machine__create_modules()
1857 map = machine__new_module(machine, start, name); in machine__create_modules()
1860 dso__kernel_module_get_build_id(map->dso, machine->root_dir); in machine__create_modules()
1866 return machine__set_modules_path(machine); in machine__create_modules()
1940 * x86_86 one, on the machine where analysis is being performed, say), in dso__load_kernel_sym()
2042 struct machine *machine; in dso__load_guest_kernel_sym() local
2049 machine = map->groups->machine; in dso__load_guest_kernel_sym()
2051 if (machine__is_default_guest(machine)) { in dso__load_guest_kernel_sym()
2067 sprintf(path, "%s/proc/kallsyms", machine->root_dir); in dso__load_guest_kernel_sym()
2078 machine__mmap_name(machine, path, sizeof(path)); in dso__load_guest_kernel_sym()
2138 struct machine *pos = rb_entry(nd, struct machine, rb_node); in machines__fprintf_dsos()
2161 size_t machine__fprintf_dsos_buildid(struct machine *machine, FILE *fp, in machine__fprintf_dsos_buildid() argument
2164 return __dsos__fprintf_buildid(&machine->kernel_dsos, fp, with_hits) + in machine__fprintf_dsos_buildid()
2165 __dsos__fprintf_buildid(&machine->user_dsos, fp, with_hits); in machine__fprintf_dsos_buildid()
2175 struct machine *pos = rb_entry(nd, struct machine, rb_node); in machines__fprintf_dsos_buildid()
2193 static struct dso *dso__new_guest_kernel(struct machine *machine, in dso__new_guest_kernel() argument
2197 struct dso *dso = dso__new(name ?: machine__mmap_name(machine, bf, in dso__new_guest_kernel()
2207 void dso__read_running_kernel_build_id(struct dso *dso, struct machine *machine) in dso__read_running_kernel_build_id() argument
2211 if (machine__is_default_guest(machine)) in dso__read_running_kernel_build_id()
2213 sprintf(path, "%s/sys/kernel/notes", machine->root_dir); in dso__read_running_kernel_build_id()
2219 static struct dso *machine__create_kernel(struct machine *machine) in machine__create_kernel() argument
2224 if (machine__is_host(machine)) { in machine__create_kernel()
2228 if (machine__is_default_guest(machine)) in machine__create_kernel()
2230 kernel = dso__new_guest_kernel(machine, vmlinux_name); in machine__create_kernel()
2234 dso__read_running_kernel_build_id(kernel, machine); in machine__create_kernel()
2235 dsos__add(&machine->kernel_dsos, kernel); in machine__create_kernel()
2257 static u64 machine__get_kernel_start_addr(struct machine *machine) in machine__get_kernel_start_addr() argument
2263 if (machine__is_host(machine)) { in machine__get_kernel_start_addr()
2266 if (machine__is_default_guest(machine)) in machine__get_kernel_start_addr()
2269 sprintf(path, "%s/proc/kallsyms", machine->root_dir); in machine__get_kernel_start_addr()
2283 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) in __machine__create_kernel_maps() argument
2286 u64 start = machine__get_kernel_start_addr(machine); in __machine__create_kernel_maps()
2291 machine->vmlinux_maps[type] = map__new2(start, kernel, type); in __machine__create_kernel_maps()
2292 if (machine->vmlinux_maps[type] == NULL) in __machine__create_kernel_maps()
2295 machine->vmlinux_maps[type]->map_ip = in __machine__create_kernel_maps()
2296 machine->vmlinux_maps[type]->unmap_ip = in __machine__create_kernel_maps()
2298 kmap = map__kmap(machine->vmlinux_maps[type]); in __machine__create_kernel_maps()
2299 kmap->kmaps = &machine->kmaps; in __machine__create_kernel_maps()
2300 map_groups__insert(&machine->kmaps, in __machine__create_kernel_maps()
2301 machine->vmlinux_maps[type]); in __machine__create_kernel_maps()
2307 void machine__destroy_kernel_maps(struct machine *machine) in machine__destroy_kernel_maps() argument
2314 if (machine->vmlinux_maps[type] == NULL) in machine__destroy_kernel_maps()
2317 kmap = map__kmap(machine->vmlinux_maps[type]); in machine__destroy_kernel_maps()
2318 map_groups__remove(&machine->kmaps, in machine__destroy_kernel_maps()
2319 machine->vmlinux_maps[type]); in machine__destroy_kernel_maps()
2333 map__delete(machine->vmlinux_maps[type]); in machine__destroy_kernel_maps()
2334 machine->vmlinux_maps[type] = NULL; in machine__destroy_kernel_maps()
2338 int machine__create_kernel_maps(struct machine *machine) in machine__create_kernel_maps() argument
2340 struct dso *kernel = machine__create_kernel(machine); in machine__create_kernel_maps()
2343 __machine__create_kernel_maps(machine, kernel) < 0) in machine__create_kernel_maps()
2346 if (symbol_conf.use_modules && machine__create_modules(machine) < 0) in machine__create_kernel_maps()
2351 map_groups__fixup_end(&machine->kmaps); in machine__create_kernel_maps()
2415 size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp) in machine__fprintf_vmlinux_path() argument
2419 struct dso *kdso = machine->vmlinux_maps[MAP__FUNCTION]->dso; in machine__fprintf_vmlinux_path()
2545 struct machine *machine = machines__findnew(machines, pid); in machines__create_kernel_maps() local
2547 if (machine == NULL) in machines__create_kernel_maps()
2550 return machine__create_kernel_maps(machine); in machines__create_kernel_maps()
2642 struct machine *pos = rb_entry(next, struct machine, rb_node); in machines__destroy_guest_kernel_maps()
2650 int machine__load_kallsyms(struct machine *machine, const char *filename, in machine__load_kallsyms() argument
2653 struct map *map = machine->vmlinux_maps[type]; in machine__load_kallsyms()
2663 __map_groups__fixup_end(&machine->kmaps, type); in machine__load_kallsyms()
2669 int machine__load_vmlinux_path(struct machine *machine, enum map_type type, in machine__load_vmlinux_path() argument
2672 struct map *map = machine->vmlinux_maps[type]; in machine__load_vmlinux_path()