sm6375-common: power-libperfmgr: ADPF: dump ADPF session info

Dump current ADPF profile and ADPF session list into bugreport.

Bug: 204444691
Test: adb root && adb shell dumpsys android.hardware.power.IPower/default
Test: gpaste/6469309887938560
Change-Id: I17c0d615051f5e51c2e1fe99d17c402f9a65679a
This commit is contained in:
jimmyshiu 2024-07-18 20:16:00 +05:30 committed by Anand S
commit 0118a38571
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
5 changed files with 33 additions and 1 deletions

View file

@ -188,6 +188,7 @@ binder_status_t Power::dump(int fd, const char **, uint32_t) {
boolToString(mSustainedPerfModeOn)));
// Dump nodes through libperfmgr
HintManager::GetInstance()->DumpToFd(fd);
PowerSessionManager::getInstance()->dumpToFd(fd);
if (!::android::base::WriteStringToFd(buf, fd)) {
PLOG(ERROR) << "Failed to dump state to fd";
}