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

Commit d9e0f6d2 authored by Erick Reyes's avatar Erick Reyes Committed by android-build-merger
Browse files

Merge "Call dmabuf_dump tool in dumpstate"

am: 8678bdeb

Change-Id: I7449d290feb58fd00d61a7aa2d59c04e4d0f36de
parents 11d1312d 8678bdeb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1458,6 +1458,12 @@ static bool DumpstateDefault() {
    // Run iotop as root to show top 100 IO threads
    RunCommand("IOTOP", {"iotop", "-n", "1", "-m", "100"});

    // Gather shared memory buffer info if the product implements it
    struct stat st;
    if (!stat("/product/bin/dmabuf_dump", &st)) {
        RunCommand("Dmabuf dump", {"/product/bin/dmabuf_dump"});
    }

    if (!DropRootUser()) {
        return false;
    }