Created
August 12, 2021 16:12
-
-
Save JeffCarpenter/8dde98f70cad1fb9c772d325b218c24a to your computer and use it in GitHub Desktop.
Draw kernel module dependency graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: bandie91 | |
# Source: https://www.commandlinefu.com/commands/view/9775/draw-kernel-module-dependancy-graph | |
lsmod | perl -e 'print "digraph \"lsmod\" {";<>;while(<>){@_=split/\s+/; print "\"$_[0]\" -> \"$_\"\n" for split/,/,$_[3]}print "}"' | dot -Tpng | display - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment