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 1R8dTI-0001Kq-Pq for garchives@archives.gentoo.org; Tue, 27 Sep 2011 19:37:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4B0B21C2C4; Tue, 27 Sep 2011 19:37:30 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 9260921C14B for ; Tue, 27 Sep 2011 19:36:35 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 4EB0D20BF6 for ; Tue, 27 Sep 2011 15:36:35 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 27 Sep 2011 15:36:35 -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=4b1W aEgJ5p7+CqHB/MQDLkgSOGg=; b=k2BHp+9PI0D9u1EeLXAIWh61xZPrUhbtd/Cc gsGFfS+bOjqb8xJcaVg+hJfehjxrAc1RUEQ25FCn4Eudmu/s/OOdPSaGFbI6wl4z lZrH7jr27jjijYOc49Kciz+FZQ9Y2NWuXjUX9HUCnCwsUXAVhh79Jum2q3fhCowh Mdok82Y= X-Sasl-enc: eBAFCFbrngiTouYhiOT8xW7paadZflInQq1TG6pAghQK 1317152194 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id 4D12B640191 for ; Tue, 27 Sep 2011 15:36:34 -0400 (EDT) Message-ID: <4E82255F.5030700@binarywings.net> Date: Tue, 27 Sep 2011 21:34:55 +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> In-Reply-To: <20110927182445.GA6803@solfire> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDA8C61CAA5A0AC711B6B5713" X-Archives-Salt: X-Archives-Hash: 1d2920e17fbdd2f934b16aaa36053d90 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDA8C61CAA5A0AC711B6B5713 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 27.09.2011 20:24, schrieb meino.cramer@gmx.de: > Hi, >=20 > ist there a tool, which displays the dependencies of loaded modules as > a tree like pstree does for tasks? >=20 > Thank you very much for any help in advance! :) >=20 > Best regards > mcc >=20 >=20 >=20 Well, it's not a tool and it cannot print to terminal but you might want to try out the bash skript below. It depends on media-gfx/graphviz to create a postscript file visualizing the dependencies. The file will be opened by your default postscript viewer (evince, okular, etc.). Hope this helps, Florian Philipp psFile=3D$(tempfile --suffix=3D.ps) lsmod | tail -n +2 | awk '{print $1,$4}' | tr ' ,' ' ' | ( echo 'digraph modules { rankdir=3DLR; ' while read line; do dependencies=3D( $line ) dependingOn=3D"${dependencies[0]}" unset dependencies[0] for dependant in "${dependencies[@]}"; do echo "\"$dependant\" -> \"$dependingOn\";" done done echo '}' ) | dot -Tps > "$psFile" xdg-open "$psFile" unlink "$psFile" --------------enigDA8C61CAA5A0AC711B6B5713 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/ iEYEARECAAYFAk6CJWUACgkQqs4uOUlOuU/urgCaA7/fiNfIu5HP2xgYBw9J5Diy xrMAn2Za4lvugIOmjZvpnfCpimSoRBzf =gSiz -----END PGP SIGNATURE----- --------------enigDA8C61CAA5A0AC711B6B5713--