to_dir 52 tools/perf/builtin-buildid-cache.c static bool same_kallsyms_reloc(const char *from_dir, char *to_dir) to_dir 61 tools/perf/builtin-buildid-cache.c scnprintf(to, sizeof(to), "%s/kallsyms", to_dir); to_dir 78 tools/perf/builtin-buildid-cache.c static int build_id_cache__kcore_existing(const char *from_dir, char *to_dir, to_dir 88 tools/perf/builtin-buildid-cache.c d = opendir(to_dir); to_dir 100 tools/perf/builtin-buildid-cache.c scnprintf(to, sizeof(to), "%s/%s/modules", to_dir, to_dir 103 tools/perf/builtin-buildid-cache.c to_dir, dent->d_name); to_dir 106 tools/perf/builtin-buildid-cache.c strlcpy(to_dir, to_subdir, to_dir_sz); to_dir 120 tools/perf/builtin-buildid-cache.c char from_dir[PATH_MAX], to_dir[PATH_MAX]; to_dir 133 tools/perf/builtin-buildid-cache.c scnprintf(to_dir, sizeof(to_dir), "%s/%s/%s", to_dir 137 tools/perf/builtin-buildid-cache.c !build_id_cache__kcore_existing(from_dir, to_dir, sizeof(to_dir))) { to_dir 138 tools/perf/builtin-buildid-cache.c pr_debug("same kcore found in %s\n", to_dir); to_dir 145 tools/perf/builtin-buildid-cache.c scnprintf(to_dir, sizeof(to_dir), "%s/%s/%s/%s", to_dir 148 tools/perf/builtin-buildid-cache.c if (mkdir_p(to_dir, 0755)) to_dir 151 tools/perf/builtin-buildid-cache.c if (kcore_copy(from_dir, to_dir)) { to_dir 153 tools/perf/builtin-buildid-cache.c if (!rmdir(to_dir)) { to_dir 154 tools/perf/builtin-buildid-cache.c p = strrchr(to_dir, '/'); to_dir 158 tools/perf/builtin-buildid-cache.c if (!rmdir(to_dir)) { to_dir 159 tools/perf/builtin-buildid-cache.c p = strrchr(to_dir, '/'); to_dir 163 tools/perf/builtin-buildid-cache.c rmdir(to_dir); to_dir 169 tools/perf/builtin-buildid-cache.c pr_debug("kcore added to build-id cache directory %s\n", to_dir); to_dir 1747 tools/perf/util/symbol-elf.c static int kcore_copy__copy_file(const char *from_dir, const char *to_dir, to_dir 1754 tools/perf/util/symbol-elf.c scnprintf(to_filename, PATH_MAX, "%s/%s", to_dir, name); to_dir 1827 tools/perf/util/symbol-elf.c static int kcore_copy__compare_file(const char *from_dir, const char *to_dir, to_dir 1834 tools/perf/util/symbol-elf.c scnprintf(to_filename, PATH_MAX, "%s/%s", to_dir, name); to_dir 1863 tools/perf/util/symbol-elf.c int kcore_copy(const char *from_dir, const char *to_dir) to_dir 1877 tools/perf/util/symbol-elf.c if (kcore_copy__copy_file(from_dir, to_dir, "kallsyms")) to_dir 1880 tools/perf/util/symbol-elf.c if (kcore_copy__copy_file(from_dir, to_dir, "modules")) to_dir 1884 tools/perf/util/symbol-elf.c scnprintf(extract_filename, PATH_MAX, "%s/kcore", to_dir); to_dir 1922 tools/perf/util/symbol-elf.c if (kcore_copy__compare_file(from_dir, to_dir, "modules")) to_dir 1925 tools/perf/util/symbol-elf.c if (kcore_copy__compare_file(from_dir, to_dir, "kallsyms")) to_dir 1938 tools/perf/util/symbol-elf.c kcore_copy__unlink(to_dir, "modules"); to_dir 1941 tools/perf/util/symbol-elf.c kcore_copy__unlink(to_dir, "kallsyms"); to_dir 372 tools/perf/util/symbol-minimal.c const char *to_dir __maybe_unused) to_dir 219 tools/perf/util/symbol.h int kcore_copy(const char *from_dir, const char *to_dir);