Home
last modified time | relevance | path

Searched refs:traces_path (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/cmds/dumpstate/
Dutils.cpp862 std::string traces_path = android::base::GetProperty("dalvik.vm.stack-trace-file", ""); in dump_traces() local
863 if (traces_path.empty()) return nullptr; in dump_traces()
866 std::string anrtraces_path = traces_path + ".anr"; in dump_traces()
867 if (rename(traces_path.c_str(), anrtraces_path.c_str()) && errno != ENOENT) { in dump_traces()
868 … MYLOGE("rename(%s, %s): %s\n", traces_path.c_str(), anrtraces_path.c_str(), strerror(errno)); in dump_traces()
874 open(traces_path.c_str(), O_CREAT | O_WRONLY | O_APPEND | O_TRUNC | O_NOFOLLOW | O_CLOEXEC, in dump_traces()
877 MYLOGE("%s: %s\n", traces_path.c_str(), strerror(errno)); in dump_traces()
882 MYLOGE("fchmod on %s failed: %s\n", traces_path.c_str(), strerror(errno)); in dump_traces()
906 wfd = inotify_add_watch(ifd, traces_path.c_str(), IN_CLOSE_WRITE); in dump_traces()
908 MYLOGE("inotify_add_watch(%s): %s\n", traces_path.c_str(), strerror(errno)); in dump_traces()
[all …]