Modify GXP coredump naming signature

Currently its "coredump_gxp_platform*" & "crashinfo_gxp_platform*"
Update it to "coredump_gxp_*" & "crashinfo_gxp_*" to incorporate both
Amalthea and Callisto dumps.

Its a modification over CL ag/16787185.

Test: adb root; adb remount -R; adb bugreport
Bug: 236046046
Signed-off-by: nischaljain <nischaljain@google.com>
Change-Id: I1173cca0a8200039f76f2f1dc94e51ecccf3a97e
This commit is contained in:
nischaljain 2022-08-24 12:16:40 +00:00
parent 4307f59c9e
commit 281e1ffab8

View file

@ -1150,8 +1150,8 @@ void DumpstateDevice::dumpModem(int fd, int fdModem)
RunCommandToFd(fd, "MKDIR GXP COREDUMP", {"/vendor/bin/mkdir", "-p", gxpCoredumpOutputDir}, CommandOptions::WithTimeout(2).Build());
// Copy GXP coredumps and crashinfo to the output directory.
dumpLogs(fd, gxpCoredumpInputDir + "/coredump", gxpCoredumpOutputDir, maxGxpDebugDumps, "coredump_gxp_platform");
dumpLogs(fd, gxpCoredumpInputDir, gxpCoredumpOutputDir, maxGxpDebugDumps, "crashinfo_gxp_platform");
dumpLogs(fd, gxpCoredumpInputDir + "/coredump", gxpCoredumpOutputDir, maxGxpDebugDumps, "coredump_gxp_");
dumpLogs(fd, gxpCoredumpInputDir, gxpCoredumpOutputDir, maxGxpDebugDumps, "crashinfo_gxp_");
}
dumpLogs(fd, extendedLogDir, modemLogAllDir, maxFileNum, EXTENDED_LOG_PREFIX);