Lines Matching refs:traces_path
507 char traces_path[PROPERTY_VALUE_MAX] = ""; in dump_traces() local
508 property_get("dalvik.vm.stack-trace-file", traces_path, ""); in dump_traces()
509 if (!traces_path[0]) return NULL; in dump_traces()
513 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path)); in dump_traces()
515 if (rename(traces_path, anr_traces_path) && errno != ENOENT) { in dump_traces()
516 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno)); in dump_traces()
522 strlcpy(anr_traces_dir, traces_path, sizeof(anr_traces_dir)); in dump_traces()
539 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ in dump_traces()
541 fprintf(stderr, "%s: %s\n", traces_path, strerror(errno)); in dump_traces()
546 fprintf(stderr, "fchmod on %s failed: %s\n", traces_path, strerror(errno)); in dump_traces()
565 int wfd = inotify_add_watch(ifd, traces_path, IN_CLOSE_WRITE); in dump_traces()
567 fprintf(stderr, "inotify_add_watch(%s): %s\n", traces_path, strerror(errno)); in dump_traces()
653 strlcpy(dump_traces_path, traces_path, sizeof(dump_traces_path)); in dump_traces()
655 if (rename(traces_path, dump_traces_path)) { in dump_traces()
656 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, dump_traces_path, strerror(errno)); in dump_traces()
662 rename(anr_traces_path, traces_path); in dump_traces()