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

/frameworks/base/cmds/dumpstate/
H A Dutils.c322 char traces_path[PROPERTY_VALUE_MAX] = ""; local
323 property_get("dalvik.vm.stack-trace-file", traces_path, "");
324 if (!traces_path[0]) return NULL;
328 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path));
330 if (rename(traces_path, anr_traces_path) && errno != ENOENT) {
331 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno));
337 strlcpy(anr_traces_dir, traces_path, sizeof(anr_traces_dir));
350 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC, 0666); /* -rw-rw-rw- */
352 fprintf(stderr, "%s: %s\n", traces_path, strerror(errno));
371 int wfd = inotify_add_watch(ifd, traces_path, IN_CLOSE_WRIT
[all...]

Completed in 23 milliseconds