Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71a47ab2 authored by Martin Liu's avatar Martin Liu
Browse files

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: default avatarMartin Liu <liumartin@google.com>
Merged-In: I24251ec2d50fedec40939df480a6473a8a7ef187
Change-Id: I24251ec2d50fedec40939df480a6473a8a7ef187
parent 6702dbf6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
    }