dumpstate: Dump fastrpc dma buffer size

Dump fastrpc dma buffer size so we could understand
the memory usage of fastrpc.

Bug: 168084904
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Merged-In: I24251ec2d50fedec40939df480a6473a8a7ef187
Change-Id: I24251ec2d50fedec40939df480a6473a8a7ef187
This commit is contained in:
Martin Liu
2020-09-21 21:46:27 +08:00
parent 6702dbf6b6
commit 71a47ab29d

View File

@@ -732,6 +732,9 @@ 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 fastrpc dma buffer size
DumpFileToFd(fd, "Fastrpc dma buffer", "/sys/kernel/fastrpc/total_dma_kb");
if (modemThreadHandle) {
pthread_join(modemThreadHandle, NULL);
}