Lines Matching refs:traces_path
1007 char traces_path[PROPERTY_VALUE_MAX] = "";
1008 property_get("dalvik.vm.stack-trace-file", traces_path, "");
1009 if (!traces_path[0]) return NULL;
1013 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path));
1015 if (rename(traces_path, anr_traces_path) && errno != ENOENT) {
1016 MYLOGE("rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno));
1021 int fd = TEMP_FAILURE_RETRY(open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW | O_CLOEXEC,
1024 MYLOGE("%s: %s\n", traces_path, strerror(errno));
1029 MYLOGE("fchmod on %s failed: %s\n", traces_path, strerror(errno));
1052 wfd = inotify_add_watch(ifd, traces_path, IN_CLOSE_WRITE);
1054 MYLOGE("inotify_add_watch(%s): %s\n", traces_path, strerror(errno));
1139 strlcpy(dump_traces_path, traces_path, sizeof(dump_traces_path));
1141 if (rename(traces_path, dump_traces_path)) {
1142 MYLOGE("rename(%s, %s): %s\n", traces_path, dump_traces_path, strerror(errno));
1148 rename(anr_traces_path, traces_path);