Move cma dump to itself
Bug: 273380985 Test: adb bugreport Change-Id: I6732dd8dbbf0367f99e25b29f2a0dd526aaac9d4
This commit is contained in:
parent
bebd549851
commit
05082134e1
5 changed files with 24 additions and 15 deletions
|
@ -241,7 +241,6 @@ void endSection(int fd, const std::string §ionName, timepoint_t startTime) {
|
|||
|
||||
Dumpstate::Dumpstate()
|
||||
: mTextSections{
|
||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||
{ "power", [this](int fd) { dumpPowerSection(fd); } },
|
||||
{ "camera", [this](int fd) { dumpCameraSection(fd); } },
|
||||
} {
|
||||
|
@ -492,20 +491,6 @@ void Dumpstate::dumpPowerSection(int fd) {
|
|||
|
||||
}
|
||||
|
||||
// Dump items related to memory
|
||||
void Dumpstate::dumpMemorySection(int fd) {
|
||||
RunCommandToFd(fd, "Pixel CMA stat", {"/vendor/bin/sh", "-c",
|
||||
"for d in $(ls -d /sys/kernel/pixel_stat/mm/cma/*); do "
|
||||
"if [ -f $d ]; then "
|
||||
"echo --- $d; cat $d; "
|
||||
"else "
|
||||
"for f in $(ls $d); do "
|
||||
"echo --- $d/$f; cat $d/$f; "
|
||||
"done; "
|
||||
"fi; "
|
||||
"done"});
|
||||
}
|
||||
|
||||
// Dump essential camera debugging logs
|
||||
void Dumpstate::dumpCameraSection(int fd) {
|
||||
RunCommandToFd(fd, "Camera HAL Graph State Dump", {"/vendor/bin/sh", "-c",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue