Add vendor proc dump

Bug: 172112042
Test: build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I88bd7f1961e4e9bbe853e3122a7525ec93ae7fd0
This commit is contained in:
Wei Wang 2021-06-25 22:04:53 -07:00
parent 977c44c195
commit 4ff1973c29

View file

@ -913,18 +913,7 @@ void DumpstateDevice::dumpRamdumpSection(int fd) {
// Dump items that don't fit well into any other section
void DumpstateDevice::dumpMiscSection(int fd) {
RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
RunCommandToFd(fd, "Vendor task struct value", {"/vendor/bin/sh", "-c",
"for i in ta fg sys sysbg bg cam nnapi; do "
"echo $i:; "
"for j in prefer_high_cap prefer_idle task_spreading uclamp_max uclamp_min; do "
"echo $j: | tr '[\n]' ' '; "
"cat /sys/kernel/vendor_sched/$i'_'$j; "
"done; "
"echo tasks:; "
"cat /proc/vendor_sched/dump_task_group_$i | tr '[\n]' ' '; "
"echo ''; "
"echo ''; "
"done"});
DumpFileToFd(fd, "VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
}
// Dump items related to GSC