Lines Matching refs:traces_path
782 const char* DumpTraces(const std::string& traces_path);
905 const char* DumpTraces(const std::string& traces_path) { in DumpTraces() argument
908 std::string anrtraces_path = traces_path + ".anr"; in DumpTraces()
909 if (rename(traces_path.c_str(), anrtraces_path.c_str()) && errno != ENOENT) { in DumpTraces()
910 … MYLOGE("rename(%s, %s): %s\n", traces_path.c_str(), anrtraces_path.c_str(), strerror(errno)); in DumpTraces()
916 open(traces_path.c_str(), O_CREAT | O_WRONLY | O_APPEND | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, in DumpTraces()
919 MYLOGE("%s: %s\n", traces_path.c_str(), strerror(errno)); in DumpTraces()
924 MYLOGE("fchmod on %s failed: %s\n", traces_path.c_str(), strerror(errno)); in DumpTraces()
948 wfd = inotify_add_watch(ifd, traces_path.c_str(), IN_CLOSE_WRITE); in DumpTraces()
950 MYLOGE("inotify_add_watch(%s): %s\n", traces_path.c_str(), strerror(errno)); in DumpTraces()
1037 "%s/bugreport-%s", dirname(traces_path.c_str()), basename(traces_path.c_str())); in DumpTraces()
1038 if (rename(traces_path.c_str(), dumptraces_path.c_str())) { in DumpTraces()
1039 MYLOGE("rename(%s, %s): %s\n", traces_path.c_str(), dumptraces_path.c_str(), in DumpTraces()
1046 rename(anrtraces_path.c_str(), traces_path.c_str()); in DumpTraces()