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()
178 zfree(&machine->root_dir); in machine__exit()
207 const char *root_dir) in machines__add() argument
217 if (machine__init(machine, root_dir, pid) != 0) { in machines__add()
283 const char *root_dir = ""; in machines__findnew() local
306 root_dir = path; in machines__findnew()
309 machine = machines__add(machines, pid, root_dir); in machines__findnew()
967 scnprintf(buf, bufsz, "%s/proc/kallsyms", machine->root_dir); in machine__get_kallsyms_filename()
1290 static char *get_kernel_version(const char *root_dir) in get_kernel_version() argument
1297 sprintf(version, "%s/proc/version", root_dir); in get_kernel_version()
1417 version = get_kernel_version(machine->root_dir); in machine__set_modules_path()
1422 machine->root_dir, version); in machine__set_modules_path()
1448 dso__kernel_module_get_build_id(map__dso(map), machine->root_dir); in machine__create_module()
1461 snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir); in machine__create_modules()