public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] include dependency graph script
@ 2001-12-30  3:30 Arnaldo Carvalho de Melo
  2001-12-30  3:55 ` Keith Owens
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-12-30  3:30 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Kernel Janitor Project

Hi,

	For the people that like me, Daniel Phillips and Manfred Spraul are
working on pruning the include dependencies in the kernel sources I made a
simple script to make a graphviz file to plot the dependencies in a nice
graphic, its availabe at:

http://www.kernel.org/pub/linux/kernel/people/acme/hviz

usage:

hviz include/net/sock.h 2 | dotty -

or

hviz include/net/sock.h 2 > /tmp/sock.dot
dot -Tps /tmp/sock.dot > /tmp/sock.ps
gv /tmp/sock.ps

Yes, one can do that with pipes and not with the temporary sock.dot file,
but this is just so that you can see how the intermediate graphviz file
look like.

this example is also available at:

http://www.kernel.org/pub/linux/kernel/people/acme/sock_include_deps.ps

So that people can see how it looks :-)

the graphviz package is available at:
http://www.research.att.com/sw/tools/graphviz/

Comments and patches for the script are welcome.

- Arnaldo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] include dependency graph script
  2001-12-30  3:30 [ANNOUNCE] include dependency graph script Arnaldo Carvalho de Melo
@ 2001-12-30  3:55 ` Keith Owens
  2001-12-30  4:03   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Owens @ 2001-12-30  3:55 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Linux Kernel Mailing List, Kernel Janitor Project

On Sun, 30 Dec 2001 01:30:33 -0200, 
Arnaldo Carvalho de Melo <acme@conectiva.com.br> wrote:
>	For the people that like me, Daniel Phillips and Manfred Spraul are
>working on pruning the include dependencies in the kernel sources I made a
>simple script to make a graphviz file to plot the dependencies in a nice
>graphic, its availabe at:
>
>http://www.kernel.org/pub/linux/kernel/people/acme/hviz

I suggest that you prune linux/config.h and autoconf.h from all graphs.
The dependency system does not depend directly on those files, instead
it depends on individual config options.

It makes more sense to list the individual config options that an
include file depends on, see the code in scripts/mkdep.c.  Even then it
would be better to suppress the config options by default and only list
them when requested.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANNOUNCE] include dependency graph script
  2001-12-30  3:55 ` Keith Owens
@ 2001-12-30  4:03   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-12-30  4:03 UTC (permalink / raw)
  To: Keith Owens; +Cc: Linux Kernel Mailing List, Kernel Janitor Project

Em Sun, Dec 30, 2001 at 02:55:30PM +1100, Keith Owens escreveu:
> On Sun, 30 Dec 2001 01:30:33 -0200, 
> Arnaldo Carvalho de Melo <acme@conectiva.com.br> wrote:
> >	For the people that like me, Daniel Phillips and Manfred Spraul are
> >working on pruning the include dependencies in the kernel sources I made a
> >simple script to make a graphviz file to plot the dependencies in a nice
> >graphic, its available at:
> >
> >http://www.kernel.org/pub/linux/kernel/people/acme/hviz
> 
> I suggest that you prune linux/config.h and autoconf.h from all graphs.
> The dependency system does not depend directly on those files, instead
> it depends on individual config options.
> 
> It makes more sense to list the individual config options that an
> include file depends on, see the code in scripts/mkdep.c.  Even then it
> would be better to suppress the config options by default and only list
> them when requested.

Thanks for the comments, this was a quick hack, I'll probably rewrite it in
python gleaning code from a tool we have here in Conectiva to prune/analise
the RPM packages dependency hell.

- Arnaldo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-30  4:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-30  3:30 [ANNOUNCE] include dependency graph script Arnaldo Carvalho de Melo
2001-12-30  3:55 ` Keith Owens
2001-12-30  4:03   ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox