mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 11:26:33 +00:00
dumpstate: Dump page_owner for memory leak debugging
If kernel supports page_owner, dump it at bugreport so that it could help memory leak problem. Page Owner dump would take long time if memory size would be bigger. To be sure, let's increase the timeout to 60sec. Bug: 168344541 Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: Ia137ade462afc545fd61a0a58b75332105b6e4a5
This commit is contained in:
@@ -579,7 +579,7 @@ static void DumpUFS(int fd) {
|
||||
// Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
|
||||
Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
||||
// Ignore return value, just return an empty status.
|
||||
dumpstateBoard_1_1(handle, DumpstateMode::DEFAULT, 30 * 1000 /* timeoutMillis */);
|
||||
dumpstateBoard_1_1(handle, DumpstateMode::DEFAULT, 60 * 1000 /* timeoutMillis */);
|
||||
return Void();
|
||||
}
|
||||
|
||||
@@ -727,6 +727,8 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h
|
||||
// Dump camera profiler log
|
||||
RunCommandToFd(fd, "Camera Profiler Logs", {"/vendor/bin/sh", "-c", "for f in /data/vendor/camera/profiler/camx_*; do echo [$f]; cat \"$f\";done"});
|
||||
|
||||
// Dump page owner
|
||||
DumpFileToFd(fd, "Page Owner", "/sys/kernel/debug/page_owner");
|
||||
if (modemThreadHandle) {
|
||||
pthread_join(modemThreadHandle, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user