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

Commit e68df825 authored by Erick Reyes's avatar Erick Reyes
Browse files

Call dmabuf_dump tool in dumpstate



This tool will dump shared buffer information on bug reports. Since it
is being rolled out on specific products, look for the binary in
/product/bin and execute it if found.

Bug: 63860998

Change-Id: If6e4ff48d3bc62e1fa7a88f16cc6ab0d5b05176f
Signed-off-by: default avatarErick Reyes <erickreyes@google.com>
parent e2c93962
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;
    }