Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "pstree" for modules ?
Date: Wed, 28 Sep 2011 07:45:00
Message-Id: 4E82CFD1.1090903@binarywings.net
In Reply to: Re: [gentoo-user] "pstree" for modules ? by meino.cramer@gmx.de
1 Am 28.09.2011 05:12, schrieb meino.cramer@×××.de:
2 > Florian Philipp <lists@×××××××××××.net> [11-09-28 04:05]:
3 >> Am 27.09.2011 20:24, schrieb meino.cramer@×××.de:
4 >>> Hi,
5 >>>
6 >>> ist there a tool, which displays the dependencies of loaded modules as
7 >>> a tree like pstree does for tasks?
8 >>>
9 >>> Thank you very much for any help in advance! :)
10 >>>
11 >>> Best regards
12 >>> mcc
13 >>>
14 >>>
15 >>>
16 >>
17 >> Well, it's not a tool and it cannot print to terminal but you might want
18 >> to try out the bash skript below. It depends on media-gfx/graphviz to
19 >> create a postscript file visualizing the dependencies. The file will be
20 >> opened by your default postscript viewer (evince, okular, etc.).
21 >>
22 [...]
23 >
24 > Hi Florian,
25 >
26 > thank you for your mail and the script.
27 > Unfortunately this is a little of a Lambourghini
28 > solution where a bicycle would completly suffice... ;)
29 >
30 > I had searched for a terminal related tool as pstree.
31 >
32 > Best regards,
33 > mcc
34 >
35 >
36
37 The problem with doing this non-graphically is that module dependencies
38 do not form a tree. They form a graph (multiple parents per child,
39 multiple childs per parent). Visualizing this likely exceeds the graphic
40 capabilities of terminals (you note that even with graphviz' advanced
41 automatic arrangement, there are still lines that cross half the image).
42
43 You could still create a tree, but only by making most modules appear
44 multiple times.
45
46 Regards,
47 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] "pstree" for modules ? Willie Wong <wwong@××××××××××××××.edu>