use devfreq dump from gs-common

Bug: 273380985
Test: adb bugreport
Change-Id: I2d301fad03cbac0bc63ae6f522df31ab5c607118
This commit is contained in:
Adam Shih 2023-03-21 12:42:32 +08:00
parent 6ef77dd8f0
commit 9df43666f0
3 changed files with 1 additions and 23 deletions

View file

@ -18,6 +18,7 @@ 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 include device/google/gs-common/soc/soc.mk
include device/google/gs-common/soc/freq.mk
include device/google/gs-common/modem/modem.mk include device/google/gs-common/modem/modem.mk
include device/google/gs-common/aoc/aoc.mk include device/google/gs-common/aoc/aoc.mk
include device/google/gs-common/thermal/thermal.mk include device/google/gs-common/thermal/thermal.mk

View file

@ -242,7 +242,6 @@ void endSection(int fd, const std::string &sectionName, timepoint_t startTime) {
Dumpstate::Dumpstate() Dumpstate::Dumpstate()
: mTextSections{ : mTextSections{
{ "memory", [this](int fd) { dumpMemorySection(fd); } }, { "memory", [this](int fd) { dumpMemorySection(fd); } },
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
{ "power", [this](int fd) { dumpPowerSection(fd); } }, { "power", [this](int fd) { dumpPowerSection(fd); } },
{ "camera", [this](int fd) { dumpCameraSection(fd); } }, { "camera", [this](int fd) { dumpCameraSection(fd); } },
} { } {
@ -493,27 +492,6 @@ void Dumpstate::dumpPowerSection(int fd) {
} }
// Dump items related to Devfreq & BTS
void Dumpstate::dumpDevfreqSection(int fd) {
DumpFileToFd(fd, "MIF DVFS",
"/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/time_in_state");
DumpFileToFd(fd, "INT DVFS",
"/sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/time_in_state");
DumpFileToFd(fd, "INTCAM DVFS",
"/sys/devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/time_in_state");
DumpFileToFd(fd, "DISP DVFS",
"/sys/devices/platform/17000040.devfreq_disp/devfreq/17000040.devfreq_disp/time_in_state");
DumpFileToFd(fd, "CAM DVFS",
"/sys/devices/platform/17000050.devfreq_cam/devfreq/17000050.devfreq_cam/time_in_state");
DumpFileToFd(fd, "TNR DVFS",
"/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/time_in_state");
DumpFileToFd(fd, "MFC DVFS",
"/sys/devices/platform/17000070.devfreq_mfc/devfreq/17000070.devfreq_mfc/time_in_state");
DumpFileToFd(fd, "BO DVFS",
"/sys/devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo/time_in_state");
DumpFileToFd(fd, "BTS stats", "/sys/devices/platform/exynos-bts/bts_stats");
}
// Dump items related to memory // Dump items related to memory
void Dumpstate::dumpMemorySection(int fd) { void Dumpstate::dumpMemorySection(int fd) {
RunCommandToFd(fd, "Pixel CMA stat", {"/vendor/bin/sh", "-c", RunCommandToFd(fd, "Pixel CMA stat", {"/vendor/bin/sh", "-c",

View file

@ -48,7 +48,6 @@ class Dumpstate : public BnDumpstateDevice {
// 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 dumpPowerSection(int fd); void dumpPowerSection(int fd);
void dumpDevfreqSection(int fd);
void dumpMemorySection(int fd); void dumpMemorySection(int fd);
void dumpCameraSection(int fd); void dumpCameraSection(int fd);
}; };