Hello, With some tuning, I got this (sharper but wider apparently) :
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│
│
│ ┌─────────────────────┐
┌───────────────────┐
│
│ │ cdrom │ ──> │ sr_mod
│
┌───────────────────────────────────────────────────────────────────────────────────┐
│
│ └─────────────────────┘
└───────────────────┘ │
│ │
│
│
│ │
│
│
│ │
│
│
∨ │
│ ┌─────────────────────┐
┌──────────────────────────────────────────┐ ┌────────────────┐
┌─────────┐ ┌───────────────┐ ┌───────────────────────┐ │
│ │ soundcore │ ──> │
│ │ snd_page_alloc │ ──> │ │ ──> │
│ ──> │ snd_hda_codec_realtek │ │
│ └─────────────────────┘ │
│ └────────────────┘ │ │ │
│ └───────────────────────┘ │
│ │
│ │ │ │
│ │
│ │
│ ─────────────────────────> │ snd_pcm │ │
snd_hda_codec │ │
│ │
│ │ │ │
│ │
│ ┌─────────────────────┐ │
│ │ │ │
│ │
│ │ snd_seq_device │ <── │
snd │ │ │ │
│ <┐ │
│ └─────────────────────┘ │
│ └─────────┘
└───────────────┘ │ │
│ │ │
│ ∧ ∧
│ │
│ │ │
│ │ │
│ │
│ ∨ │
│ │ │
│ │
│ ┌─────────────────────┐ │
│ │ │
│ │
└> │ snd_seq │ <── │
│ ─────────────────────────────┼───────────────┘
│ │
└─────────────────────┘
└──────────────────────────────────────────┘ │
│ │
│
│ │ │
│ │
│
│ │ │
│ │
∨
│ ∨ │
│ │
┌─────────────────────┐
┌───────────────────┐ │ ┌────────────────┐ │
│ │
│ dm_mod │ ─┐ │
│ │ │ snd_hwdep │
─────────────────────────────┼────────────────────────────────┘
│
└─────────────────────┘ │ │
│ │ └────────────────┘ │
│
│ │ │
│ │ │
│
│ │ │ snd_hda_intel
│ │ │
│
∨ │ │
│ │ │
│
┌─────────────────────┐ │ │
│ │ ┌────────────────┐ │
│
┌─ │ dm_log │ │ │
│ └> │ snd_timer │ ─────────────────────────────┘
│
│ └─────────────────────┘ │
└───────────────────┘ └────────────────┘
│
│ │ │
│
│
│ │ └────┐
└────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
│ ∨ ∨
│ ┌─────────────────────┐
┌───────────────────┐
│ │ dm_region_hash │ ──> │ dm_mirror
│
│ └─────────────────────┘
└───────────────────┘
│ ∧
└────────────────────────────────┘
┌────────────────────────────────────────────────┐
│
∨
┌──────────┐ ┌─────────────────────┐
┌───────────────────┐ ┌────────────────┐
┌────────────────────────────────┐
│ i2c_i801 │ <── │ │ ──> │ drm
│ ──> │ drm_kms_helper │ ──> │ │
└──────────┘ │ │
└───────────────────┘ └────────────────┘ │
│
│ │
∧ │ │
│ i2c_core │
────────────────────────────────┘ │ i915
│
│ │
│ │
│ │
│ │
│ │
───────────────────────────────────────────────────> │
│
└─────────────────────┘
└────────────────────────────────┘
│
∧ ∧
│
│ │
∨
│ │
┌─────────────────────┐
│ │
│ i2c_algo_bit │
───────────────────────────────────────────────────────┘ │
└─────────────────────┘
│
┌─────────────────────┐
┌───────────────────┐ │
│ output │ ──> │ video
│ ───────────────────────────────────────────────┘
└─────────────────────┘
└───────────────────┘
┌────────────────────────────────┐
┌─────────────────────────────────────────────────────────────┐
│ │
│ │
┌──────────┐ │ ┌─────────────────────┐
┌───────────────────┐ ┌────────────────┐ ┌────────────────┐
│
│ xt_state │ <─────────────────┼─ │ │ ──> │
nf_conntrack_ipv4 │ ──> │ nf_nat │ ──> │ ipt_MASQUERADE │
│
└──────────┘ │ │ │
└───────────────────┘ └────────────────┘ └────────────────┘
│
│ │ │ ∧
∧ ∧ │
┌────────────────────────────┼─ │ nf_conntrack │ │
│ │
┌────────────────────┼────────────────┐
│ │ │ │ │
│ │ │ │
│
│ │ │ │
┌───────────────────┐ │ │ │
│ │
│ │ │ │ ─┐ │ nf_defrag_ipv4
│ └──────────────────────┼─────────────────┘ │
│
│ │ └─────────────────────┘ │
└───────────────────┘ │
│ │
│ │ │ │
│ │
│
│ │ │
└─────────────────────────────────────────────────────┘
│ │
│ │ ∨
│
│
│ │ ┌─────────────────────┐
│
│
│ └> │ │
┌────────────────────────────────────────────────┐
│ │
│ │ │ │
∨ │
│
│ │ │
┌───────────────────┐ ┌────────────────┐ ┌────────────────┐
│ │
│ │ iptable_nat │ <── │ ip_tables
│ ──> │ iptable_filter │ │ iptable_mangle │ │
│
│ │ │
└───────────────────┘ └────────────────┘ └────────────────┘
│ │
│ │ │
│
│
│ │ │
<─────────────────────────────────────────────────────────────────────────────────────────────┘
│
│ └─────────────────────┘
│
│
│
│
┌─────────────────────────────────────────────────────┐
│
│ │
∨
│
│ ┌─────────────────────┐
┌───────────────────┐ ┌────────────────┐
│
│ │ llc │ ──> │ stp
│ ──> │ bridge │
│
│ └─────────────────────┘
└───────────────────┘ └────────────────┘
│
│
│
│ ┌─────────────────────┐
│
│ │ │
│
│ │ ┌──────────┐ ┌─────────────────────┐
┌───────────────────┐ ┌───────────────────────────────────────┐
┌─────────┐ │
│ │ │ lockd │ <── │ sunrpc │ ──> │ auth_rpcgss
│ ──> │ │ <── │ fscache │
│
│ │ └──────────┘ └─────────────────────┘
└───────────────────┘ │ │
└─────────┘ │
│ │ │ │
│ │
│
│ │ │
└─────────────────────────────────────────────────> │ nfs
│ │
│ │ │
│ │
│
│ │ │
│ │
│
│ │
└──────────────────────────────────────────────────────────────────> │
│ │
│ │
└───────────────────────────────────────┘
│
│ │
∧
│
│ │
│
│
│ │
│
│
│ │ ┌─────────────────────┐
│
│
│ └─────────────────> │ nfs_acl │
────────────────────────────────┘
│
│ └─────────────────────┘
│
│
│
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────┐
┌───────────────────┐
│ crc_t10dif │ ──> │ sd_mod
│
└─────────────────────┘
└───────────────────┘
┌─────────────────────┐
┌───────────────────┐
│ ebtables │ ──> │ ebtable_nat
│
└─────────────────────┘
└───────────────────┘
┌─────────────────────┐
┌───────────────────┐
│ freq_table │ ──> │ acpi_cpufreq
│
└─────────────────────┘
└───────────────────┘
│
│
∨
┌─────────────────────┐
│ cpufreq_ondemand │
└─────────────────────┘
┌─────────────────────┐
┌───────────────────┐
│ iTCO_vendor_support │ ──> │ iTCO_wdt
│
└─────────────────────┘
└───────────────────┘
┌─────────────────────┐
┌───────────────────┐ ┌────────────────┐
│ jbd │ ──> │ ext3
│ <── │ mbcache │
└─────────────────────┘
└───────────────────┘ └────────────────┘
┌─────────────────────┐
┌───────────────────┐
│ parport │ ──> │ parport_pc
│
└─────────────────────┘
└───────────────────┘
│
│
∨
┌─────────────────────┐
│ ppdev │
└─────────────────────┘
----- Mail original -----
De: "Dave Reisner" <[email protected]>
À: "gael cadic" <[email protected]>
Cc: [email protected], [email protected], "lucas de marchi"
<[email protected]>
Envoyé: Mercredi 4 Juin 2014 17:44:42
Objet: Re: graph of modules
On Wed, Jun 04, 2014 at 05:39:04PM +0200, [email protected] wrote:
> Hello,
>
> I wrote a bit of Perl to build dynamically the graph of modules' dependences
>
> As sysadmin, I think it would be nice to have it on every Linux
I cobbled together something similar a few years ago:
https://github.com/falconindy/modtree
Since writing it, I can count the number of times I've used such a tool
on one hand. It's neat, but I'm really not sure it provides much value.
Cheers,
d
