move soc dump to gs-common
Bug: 248428203 Test: adb bugreport Change-Id: Ia96ecf46bb3af9d72da1bf30cfa0d17d9985e4c4
This commit is contained in:
parent
a690698afa
commit
69aa9e1774
3 changed files with 1 additions and 12 deletions
|
@ -17,6 +17,7 @@
|
||||||
include device/google/gs-common/device.mk
|
include device/google/gs-common/device.mk
|
||||||
include device/google/gs-common/gs_watchdogd/watchdog.mk
|
include device/google/gs-common/gs_watchdogd/watchdog.mk
|
||||||
include device/google/gs-common/ramdump/ramdump.mk
|
include device/google/gs-common/ramdump/ramdump.mk
|
||||||
|
include device/google/gs-common/soc/soc.mk
|
||||||
|
|
||||||
TARGET_BOARD_PLATFORM := gs101
|
TARGET_BOARD_PLATFORM := gs101
|
||||||
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
|
DEVICE_IS_64BIT_ONLY ?= $(if $(filter %_64,$(TARGET_PRODUCT)),true,false)
|
||||||
|
|
|
@ -251,7 +251,6 @@ DumpstateDevice::DumpstateDevice()
|
||||||
: mTextSections{
|
: mTextSections{
|
||||||
{ "pre-touch", [this](int fd) { dumpPreTouchSection(fd); } },
|
{ "pre-touch", [this](int fd) { dumpPreTouchSection(fd); } },
|
||||||
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
||||||
{ "soc", [this](int fd) { dumpSocSection(fd); } },
|
|
||||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||||
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
|
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
|
||||||
|
@ -819,16 +818,6 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump items related to SoC
|
|
||||||
void DumpstateDevice::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
|
// Dump items related to CPUs
|
||||||
void DumpstateDevice::dumpCpuSection(int fd) {
|
void DumpstateDevice::dumpCpuSection(int fd) {
|
||||||
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
|
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
|
||||||
|
|
|
@ -66,7 +66,6 @@ struct DumpstateDevice : public IDumpstateDevice {
|
||||||
void dumpThermalSection(int fd);
|
void dumpThermalSection(int fd);
|
||||||
void dumpPreTouchSection(int fd);
|
void dumpPreTouchSection(int fd);
|
||||||
void dumpTouchSection(int fd);
|
void dumpTouchSection(int fd);
|
||||||
void dumpSocSection(int fd);
|
|
||||||
void dumpCpuSection(int fd);
|
void dumpCpuSection(int fd);
|
||||||
void dumpDevfreqSection(int fd);
|
void dumpDevfreqSection(int fd);
|
||||||
void dumpMemorySection(int fd);
|
void dumpMemorySection(int fd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue