Snap for 9253587 from c0825f2717
to tm-qpr2-release
Change-Id: I9bc7d264ff8beacbad38df30373f603a5451b321
This commit is contained in:
commit
9d44cd11a0
3 changed files with 2 additions and 8 deletions
|
@ -226,6 +226,7 @@ on init
|
||||||
chown system system /dev/logbuffer_wireless
|
chown system system /dev/logbuffer_wireless
|
||||||
chown system system /dev/logbuffer_pca9468
|
chown system system /dev/logbuffer_pca9468
|
||||||
chown system system /dev/logbuffer_cpm
|
chown system system /dev/logbuffer_cpm
|
||||||
|
chown system system /dev/logbuffer_bd
|
||||||
|
|
||||||
# Dump maxfg
|
# Dump maxfg
|
||||||
chown system system /sys/class/power_supply/maxfg/m5_model_state
|
chown system system /sys/class/power_supply/maxfg/m5_model_state
|
||||||
|
|
|
@ -252,7 +252,6 @@ void endSection(int fd, const std::string §ionName, timepoint_t startTime) {
|
||||||
DumpstateDevice::DumpstateDevice()
|
DumpstateDevice::DumpstateDevice()
|
||||||
: mTextSections{
|
: mTextSections{
|
||||||
{ "pre-touch", [this](int fd) { dumpPreTouchSection(fd); } },
|
{ "pre-touch", [this](int fd) { dumpPreTouchSection(fd); } },
|
||||||
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
|
|
||||||
{ "soc", [this](int fd) { dumpSocSection(fd); } },
|
{ "soc", [this](int fd) { dumpSocSection(fd); } },
|
||||||
{ "storage", [this](int fd) { dumpStorageSection(fd); } },
|
{ "storage", [this](int fd) { dumpStorageSection(fd); } },
|
||||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||||
|
@ -304,12 +303,6 @@ void DumpstateDevice::dumpTextSection(int fd, const std::string §ionName) {
|
||||||
"not avalable from the command line.\n", fd);
|
"not avalable from the command line.\n", fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump items related to wlan
|
|
||||||
void DumpstateDevice::dumpWlanSection(int fd) {
|
|
||||||
RunCommandToFd(fd, "WLAN Debug Dump", {"/vendor/bin/sh", "-c",
|
|
||||||
"cat /sys/wifi/dump_start"});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dump items related to power and battery
|
// Dump items related to power and battery
|
||||||
void DumpstateDevice::dumpPowerSection(int fd) {
|
void DumpstateDevice::dumpPowerSection(int fd) {
|
||||||
struct stat buffer;
|
struct stat buffer;
|
||||||
|
@ -386,6 +379,7 @@ void DumpstateDevice::dumpPowerSection(int fd) {
|
||||||
DumpFileToFd(fd, "TTF stats", "/sys/class/power_supply/battery/ttf_stats");
|
DumpFileToFd(fd, "TTF stats", "/sys/class/power_supply/battery/ttf_stats");
|
||||||
DumpFileToFd(fd, "maxq", "/dev/logbuffer_maxq");
|
DumpFileToFd(fd, "maxq", "/dev/logbuffer_maxq");
|
||||||
DumpFileToFd(fd, "aacr_state", "/sys/class/power_supply/battery/aacr_state");
|
DumpFileToFd(fd, "aacr_state", "/sys/class/power_supply/battery/aacr_state");
|
||||||
|
DumpFileToFd(fd, "TEMP/DOCK-DEFEND", "/dev/logbuffer_bd");
|
||||||
|
|
||||||
RunCommandToFd(fd, "TRICKLE-DEFEND Config", {"/vendor/bin/sh", "-c",
|
RunCommandToFd(fd, "TRICKLE-DEFEND Config", {"/vendor/bin/sh", "-c",
|
||||||
" cd /sys/devices/platform/google,battery/power_supply/battery/;"
|
" cd /sys/devices/platform/google,battery/power_supply/battery/;"
|
||||||
|
|
|
@ -61,7 +61,6 @@ struct DumpstateDevice : public IDumpstateDevice {
|
||||||
|
|
||||||
// Text sections that can be dumped individually on the command line in
|
// Text sections that can be dumped individually on the command line in
|
||||||
// addition to being included in full dumps
|
// addition to being included in full dumps
|
||||||
void dumpWlanSection(int fd);
|
|
||||||
void dumpPowerSection(int fd);
|
void dumpPowerSection(int fd);
|
||||||
void dumpThermalSection(int fd);
|
void dumpThermalSection(int fd);
|
||||||
void dumpPreTouchSection(int fd);
|
void dumpPreTouchSection(int fd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue