Skip to content

Instantly share code, notes, and snippets.

@JeffCarpenter
Created August 12, 2021 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffCarpenter/8dde98f70cad1fb9c772d325b218c24a to your computer and use it in GitHub Desktop.
Save JeffCarpenter/8dde98f70cad1fb9c772d325b218c24a to your computer and use it in GitHub Desktop.
Draw kernel module dependency graph
# 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