From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R8opA-00052I-Kb for garchives@archives.gentoo.org; Wed, 28 Sep 2011 07:45:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6D6521C230; Wed, 28 Sep 2011 07:44:49 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 30D7821C150 for ; Wed, 28 Sep 2011 07:43:51 +0000 (UTC) Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id CDF1824F82 for ; Wed, 28 Sep 2011 03:43:50 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 28 Sep 2011 03:43:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=iYHP cJbwhAfbqwfLLL3JSa8Smus=; b=AcYAjGb0sH7aMf+xBSuz7EFI9znZ/G0PKkJE RX6JHA8iD0rPcft+rdAqCVbVuourHC5SBlX9NYvKphQuTs/6wBxoNR8FExbblGX0 PZnqR71F9qi3FOjSMreTRcP1AEl7p6rK4KZrPnM9twur+qT6GmTazSepKyK8CHOJ QsLDWKA= X-Sasl-enc: ayS06DNfHSP6s+E57FBZCReCFjMPSx/mIVIMEIMarPFb 1317195828 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id 5E39E940203 for ; Wed, 28 Sep 2011 03:43:48 -0400 (EDT) Message-ID: <4E82CFD1.1090903@binarywings.net> Date: Wed, 28 Sep 2011 09:42:09 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110925 Lightning/1.0b3pre Thunderbird/3.1.12 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] "pstree" for modules ? References: <20110927182445.GA6803@solfire> <4E82255F.5030700@binarywings.net> <20110928031212.GA8168@solfire> In-Reply-To: <20110928031212.GA8168@solfire> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1ABA17E231A37F3F2F4D69DE" X-Archives-Salt: X-Archives-Hash: d9b2ae731949731cce11c2109598343a This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1ABA17E231A37F3F2F4D69DE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 28.09.2011 05:12, schrieb meino.cramer@gmx.de: > Florian Philipp [11-09-28 04:05]: >> Am 27.09.2011 20:24, schrieb meino.cramer@gmx.de: >>> Hi, >>> >>> ist there a tool, which displays the dependencies of loaded modules a= s >>> a tree like pstree does for tasks? >>> >>> Thank you very much for any help in advance! :) >>> >>> Best regards >>> mcc >>> >>> >>> >> >> Well, it's not a tool and it cannot print to terminal but you might wa= nt >> to try out the bash skript below. It depends on media-gfx/graphviz to >> create a postscript file visualizing the dependencies. The file will b= e >> opened by your default postscript viewer (evince, okular, etc.). >> [...] >=20 > Hi Florian, >=20 > thank you for your mail and the script. > Unfortunately this is a little of a Lambourghini > solution where a bicycle would completly suffice... ;) >=20 > I had searched for a terminal related tool as pstree. >=20 > Best regards, > mcc >=20 >=20 The problem with doing this non-graphically is that module dependencies do not form a tree. They form a graph (multiple parents per child, multiple childs per parent). Visualizing this likely exceeds the graphic capabilities of terminals (you note that even with graphviz' advanced automatic arrangement, there are still lines that cross half the image). You could still create a tree, but only by making most modules appear multiple times. Regards, Florian Philipp --------------enig1ABA17E231A37F3F2F4D69DE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6Cz9YACgkQqs4uOUlOuU/IWgCfcNTVzWPqqKsZCNzUlCZy9Rjp OB4AmgK7+rMigTpHExOuZLTGwCk+eo2y =nCej -----END PGP SIGNATURE----- --------------enig1ABA17E231A37F3F2F4D69DE--