Searched defs:anr_traces_path (Results 1 - 2 of 2) sorted by relevance

/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c127 char anr_traces_path[PATH_MAX]; local
128 property_get("dalvik.vm.stack-trace-file", anr_traces_path, "");
129 if (!anr_traces_path[0]) {
131 } else if (stat(anr_traces_path, &st)) {
132 printf("*** NO ANR VM TRACES FILE (%s): %s\n\n", anr_traces_path, strerror(errno));
134 dump_file("VM TRACES AT LAST ANR", anr_traces_path);
138 if (anr_traces_path[0] != 0) {
139 int tail = strlen(anr_traces_path)-1;
140 while (tail > 0 && anr_traces_path[tail] != '/') {
145 sprintf(anr_traces_path
[all...]
H A Dutils.c455 char anr_traces_path[PATH_MAX]; local
456 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path));
457 strlcat(anr_traces_path, ".anr", sizeof(anr_traces_path));
458 if (rename(traces_path, anr_traces_path) && errno != ENOENT) {
459 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno));
584 rename(anr_traces_path, traces_path);

Completed in 691 milliseconds