move dump cpu to gs-common
Bug: 240530709 Test: adb bugreport Change-Id: I073a4c55053b8844b2702c9cd5d7a9e84840b66d
This commit is contained in:
parent
a9176d48a2
commit
989d016d98
2 changed files with 0 additions and 22 deletions
|
@ -254,7 +254,6 @@ Dumpstate::Dumpstate()
|
|||
: mTextSections{
|
||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
|
||||
{ "power", [this](int fd) { dumpPowerSection(fd); } },
|
||||
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||
|
@ -506,26 +505,6 @@ void Dumpstate::dumpPowerSection(int fd) {
|
|||
|
||||
}
|
||||
|
||||
// Dump items related to CPUs
|
||||
void Dumpstate::dumpCpuSection(int fd) {
|
||||
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
|
||||
DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online");
|
||||
RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c",
|
||||
"for cpu in /sys/devices/system/cpu/cpu*; do "
|
||||
"f=$cpu/cpufreq/stats/time_in_state; "
|
||||
"if [ ! -f $f ]; then continue; fi; "
|
||||
"echo $f:; cat $f; "
|
||||
"done"});
|
||||
RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c",
|
||||
"for cpu in /sys/devices/system/cpu/cpu*; do "
|
||||
"for d in $cpu/cpuidle/state*; do "
|
||||
"if [ ! -d $d ]; then continue; fi; "
|
||||
"echo \"$d: `cat $d/name` `cat $d/desc` `cat $d/time` `cat $d/usage`\"; "
|
||||
"done; "
|
||||
"done"});
|
||||
DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts");
|
||||
}
|
||||
|
||||
// Dump items related to Devfreq & BTS
|
||||
void Dumpstate::dumpDevfreqSection(int fd) {
|
||||
DumpFileToFd(fd, "MIF DVFS",
|
||||
|
|
|
@ -48,7 +48,6 @@ class Dumpstate : public BnDumpstateDevice {
|
|||
// Text sections that can be dumped individually on the command line in
|
||||
// addition to being included in full dumps
|
||||
void dumpPowerSection(int fd);
|
||||
void dumpCpuSection(int fd);
|
||||
void dumpDevfreqSection(int fd);
|
||||
void dumpMemorySection(int fd);
|
||||
void dumpDisplaySection(int fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue