Lines Matching refs:root_dir
73 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init() argument
98 machine->root_dir = strdup(root_dir); in machine__init()
99 if (machine->root_dir == NULL) in machine__init()
122 zfree(&machine->root_dir); in machine__init()
176 zfree(&machine->root_dir); in machine__exit()
205 const char *root_dir) in machines__add() argument
215 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
281 const char *root_dir = ""; in machines__findnew() local
304 root_dir = path; in machines__findnew()
307 machine = machines__add(machines, pid, root_dir); in machines__findnew()
965 scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir); in machine__get_kallsyms_filename()
1288 static char *get_kernel_version(const char *root_dir) in get_kernel_version() argument
1295 sprintf(version, "%s/proc/version", root_dir); in get_kernel_version()
1415 version = get_kernel_version(machine->root_dir); in machine__set_modules_path()
1420 machine->root_dir, version); in machine__set_modules_path()
1446 dso__kernel_module_get_build_id(map__dso(map), machine->root_dir); in machine__create_module()
1459 snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir); in machine__create_modules()