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

Commit ce552630 authored by Woody Lin's avatar Woody Lin Committed by Gerrit Code Review
Browse files

Merge "dumpstate: Add "MODULES INFO""

parents f2a51609 c198f25d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1640,6 +1640,10 @@ static Dumpstate::RunStatus dumpstate() {
        MYLOGD("Skipping 'lsmod' because /proc/modules does not exist\n");
    } else {
        RunCommand("LSMOD", {"lsmod"});
        RunCommand("MODULES INFO",
                   {"sh", "-c", "cat /proc/modules | cut -d' ' -f1 | "
                    "    while read MOD ; do echo modinfo:$MOD ; modinfo $MOD ; "
                    "done"}, CommandOptions::AS_ROOT);
    }

    if (android::base::GetBoolProperty("ro.logd.kernel", false)) {