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

/frameworks/native/cmds/dumpstate/
H A Ddumpstate.c120 char anr_traces_path[PATH_MAX]; local
121 property_get("dalvik.vm.stack-trace-file", anr_traces_path, "");
122 if (!anr_traces_path[0]) {
124 } else if (stat(anr_traces_path, &st)) {
125 printf("*** NO ANR VM TRACES FILE (%s): %s\n\n", anr_traces_path, strerror(errno));
127 dump_file("VM TRACES AT LAST ANR", anr_traces_path);
131 if (anr_traces_path[0] != 0) {
132 int tail = strlen(anr_traces_path)-1;
133 while (tail > 0 && anr_traces_path[tail] != '/') {
138 sprintf(anr_traces_path
[all...]
H A Dutils.c384 char anr_traces_path[PATH_MAX]; local
385 strlcpy(anr_traces_path, traces_path, sizeof(anr_traces_path));
386 strlcat(anr_traces_path, ".anr", sizeof(anr_traces_path));
387 if (rename(traces_path, anr_traces_path) && errno != ENOENT) {
388 fprintf(stderr, "rename(%s, %s): %s\n", traces_path, anr_traces_path, strerror(errno));
510 rename(anr_traces_path, traces_path);

Completed in 129 milliseconds