move soc dump to gs-common

Bug: 248428203
Test: adb bugreport
Change-Id: I5b3aec31a80cf68793c73ecf19ae5b953e54c96f
This commit is contained in:
Adam Shih 2022-10-04 11:24:36 +08:00
parent 3c8b537bc9
commit aef8ff1346
3 changed files with 1 additions and 12 deletions

View file

@ -223,7 +223,6 @@ Dumpstate::Dumpstate()
: mTextSections{
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
{ "modem", [this](int fd) { dumpModemSection(fd); } },
{ "soc", [this](int fd) { dumpSocSection(fd); } },
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
@ -877,16 +876,6 @@ void Dumpstate::dumpTouchSection(int fd) {
}
}
// Dump items related to SoC
void Dumpstate::dumpSocSection(int fd) {
DumpFileToFd(fd, "AP HW TUNE", "/sys/devices/system/chip-id/ap_hw_tune_str");
DumpFileToFd(fd, "EVT VERSION", "/sys/devices/system/chip-id/evt_ver");
DumpFileToFd(fd, "LOT ID", "/sys/devices/system/chip-id/lot_id");
DumpFileToFd(fd, "PRODUCT ID", "/sys/devices/system/chip-id/product_id");
DumpFileToFd(fd, "REVISION", "/sys/devices/system/chip-id/revision");
DumpFileToFd(fd, "RAW STR", "/sys/devices/system/chip-id/raw_str");
}
// Dump items related to CPUs
void Dumpstate::dumpCpuSection(int fd) {
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");