Lines Matching refs:dso

88 	struct dso *pos, *n;  in dsos__purge()
506 static struct dso *machine__findnew_module_dso(struct machine *machine, in machine__findnew_module_dso()
510 struct dso *dso; in machine__findnew_module_dso() local
514 dso = __dsos__find(&machine->dsos, m->name, true); in machine__findnew_module_dso()
515 if (!dso) { in machine__findnew_module_dso()
516 dso = __dsos__addnew(&machine->dsos, m->name); in machine__findnew_module_dso()
517 if (dso == NULL) in machine__findnew_module_dso()
521 dso->symtab_type = DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE; in machine__findnew_module_dso()
523 dso->symtab_type = DSO_BINARY_TYPE__GUEST_KMODULE; in machine__findnew_module_dso()
527 dso->symtab_type++; in machine__findnew_module_dso()
529 dso__set_short_name(dso, strdup(m->name), true); in machine__findnew_module_dso()
530 dso__set_long_name(dso, strdup(filename), true); in machine__findnew_module_dso()
533 dso__get(dso); in machine__findnew_module_dso()
536 return dso; in machine__findnew_module_dso()
567 struct dso *dso; in machine__findnew_module_map() local
578 dso = machine__findnew_module_dso(machine, &m, filename); in machine__findnew_module_map()
579 if (dso == NULL) in machine__findnew_module_map()
582 map = map__new2(start, dso, MAP__FUNCTION); in machine__findnew_module_map()
607 bool (skip)(struct dso *dso, int parm), int parm) in machine__fprintf_dsos_buildid() argument
613 bool (skip)(struct dso *dso, int parm), int parm) in machines__fprintf_dsos_buildid() argument
629 struct dso *kdso = machine__kernel_map(machine)->dso; in machine__fprintf_vmlinux_path()
662 static struct dso *machine__get_kernel(struct machine *machine) in machine__get_kernel()
665 struct dso *kernel; in machine__get_kernel()
738 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel) in __machine__create_kernel_maps()
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()
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()
934 static bool is_kmod_dso(struct dso *dso) in is_kmod_dso() argument
936 return dso->symtab_type == DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE || in is_kmod_dso()
937 dso->symtab_type == DSO_BINARY_TYPE__GUEST_KMODULE; in is_kmod_dso()
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()
1051 dso__kernel_module_get_build_id(map->dso, machine->root_dir); in machine__create_module()
1084 struct dso *kernel = machine__get_kernel(machine); in machine__create_kernel_maps()
1137 struct dso *dso; in machine__uses_kcore() local
1139 list_for_each_entry(dso, &machine->dsos.head, node) { in machine__uses_kcore()
1140 if (dso__is_kcore(dso)) in machine__uses_kcore()
1183 struct dso *kernel = NULL; in machine__process_kernel_mmap_event()
1184 struct dso *dso; in machine__process_kernel_mmap_event() local
1188 list_for_each_entry(dso, &machine->dsos.head, node) { in machine__process_kernel_mmap_event()
1206 if (!dso->kernel || in machine__process_kernel_mmap_event()
1207 is_kernel_module(dso->long_name, in machine__process_kernel_mmap_event()
1212 kernel = dso; in machine__process_kernel_mmap_event()
2021 struct dso *machine__findnew_dso(struct machine *machine, const char *filename) in machine__findnew_dso()
2035 *modp = __map__is_kmodule(map) ? (char *)map->dso->short_name : NULL; in machine__resolve_kernel_addr()