summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorAdam Shih <adamshih@google.com>2022-12-08 11:27:43 +0800
committerAdam Shih <adamshih@google.com>2022-12-14 00:41:12 +0000
commit3df17f30b39f3dd84dbda05358be4d31442eef82 (patch)
treea8d1138b57b92e697c525acbc21ef1b50eea213c /dumpstate
parent2292b4ed133d94e5646bfb087e53ac152326b77d (diff)
downloadgs201-3df17f30b39f3dd84dbda05358be4d31442eef82.tar.gz
move dump cpu to gs-common
Bug: 240530709 Test: adb bugreport Change-Id: I05d533c8a4ccb085e9ffbfa53b0262ae38461b9b
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/Dumpstate.cpp21
-rw-r--r--dumpstate/Dumpstate.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp
index ea613cc..34cf23f 100644
--- a/dumpstate/Dumpstate.cpp
+++ b/dumpstate/Dumpstate.cpp
@@ -227,7 +227,6 @@ Dumpstate::Dumpstate()
{ "wlan", [this](int fd) { dumpWlanSection(fd); } },
{ "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); } },
@@ -507,26 +506,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",
diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h
index c624df9..f615a45 100644
--- a/dumpstate/Dumpstate.h
+++ b/dumpstate/Dumpstate.h
@@ -54,7 +54,6 @@ class Dumpstate : public BnDumpstateDevice {
// addition to being included in full dumps
void dumpWlanSection(int fd);
void dumpPowerSection(int fd);
- void dumpCpuSection(int fd);
void dumpDevfreqSection(int fd);
void dumpMemorySection(int fd);
void dumpDisplaySection(int fd);