gs101: dumpstate: Dump vendor group value am: c8e72fb5c4 am: 5e1fef25c9 am: 7b2d1b10cf

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14671623

Change-Id: I0bc8c0d509e429e6524cb39f5b8b26345efb4a66
This commit is contained in:
Rick Yiu 2021-05-28 02:33:46 +00:00 committed by Automerger Merge Worker
commit 32af2543c8

View file

@ -870,6 +870,18 @@ 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"});
}
// Dump items related to GSC