Lines Matching refs:root_dir
75 int machine__init(struct machine *machine, const char *root_dir, pid_t pid) in machine__init() argument
102 machine->root_dir = strdup(root_dir); in machine__init()
103 if (machine->root_dir == NULL) in machine__init()
126 zfree(&machine->root_dir); in machine__init()
216 zfree(&machine->root_dir); in machine__exit()
245 const char *root_dir) in machines__add() argument
255 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
321 const char *root_dir = ""; in machines__findnew() local
344 root_dir = path; in machines__findnew()
347 machine = machines__add(machines, pid, root_dir); in machines__findnew()
992 scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir); in machine__get_kallsyms_filename()
1315 static char *get_kernel_version(const char *root_dir) in get_kernel_version() argument
1322 sprintf(version, "%s/proc/version", root_dir); in get_kernel_version()
1449 version = get_kernel_version(machine->root_dir); in machine__set_modules_path()
1454 machine->root_dir, version); in machine__set_modules_path()
1481 dso__kernel_module_get_build_id(map__dso(map), machine->root_dir); in machine__create_module()
1494 snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir); in machine__create_modules()