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

Commit 56bdab87 authored by Woody Lin's avatar Woody Lin Committed by Automerger Merge Worker
Browse files

Merge "dumpstate: Add "MODULES INFO"" am: ce552630 am: cd416f36 am: ecc7eb51 am: 06784f2b

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1697247

Change-Id: I7d204b85790e24da879a2be609f81149ba45cfe8
parents ca611089 06784f2b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1641,6 +1641,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)) {