Merge "dumpstate: fix dumping traces for vm processes on 64-bit"
This commit is contained in:
commit
da92bfda81
@ -526,7 +526,7 @@ const char *dump_traces() {
|
|||||||
}
|
}
|
||||||
data[len] = '\0';
|
data[len] = '\0';
|
||||||
|
|
||||||
if (!strcmp(data, "/system/bin/app_process")) {
|
if (!strncmp(data, "/system/bin/app_process", strlen("/system/bin/app_process"))) {
|
||||||
/* skip zygote -- it won't dump its stack anyway */
|
/* skip zygote -- it won't dump its stack anyway */
|
||||||
snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
|
snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
|
||||||
int fd = open(path, O_RDONLY);
|
int fd = open(path, O_RDONLY);
|
||||||
@ -536,7 +536,7 @@ const char *dump_traces() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
data[len] = '\0';
|
data[len] = '\0';
|
||||||
if (!strcmp(data, "zygote")) {
|
if (!strncmp(data, "zygote", strlen("zygote"))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user