Searched refs:traces_path (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | utils.cpp | 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() [all …]
|