Date: Tue, 2 Mar 2004 22:18:31 -0500 (EST) From: Robert Watson <rwatson@FreeBSD.org> To: hackers@FreeBSD.org Subject: Re: Looking for static analysis tool to generate call graphs Message-ID: <Pine.NEB.3.96L.1040302221117.17237B-100000@fledge.watson.org> In-Reply-To: <Pine.NEB.3.96L.1040301213042.90719I-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Mar 2004, Robert Watson wrote:
> I'd like to generate static call graphs from sections of src/sys/kern,
> src/sys/net, and src/sys/netinet, and ideally, get an output that looks
> pretty when printed to a (perhaps large) piece of paper. It doesn't
> need to be able to handle function pointer magic in structures (vnode
> operations, socket operations, file descriptor operations, sysinits,
> etc); I just want a fairly high-level graph to get a feel for particular
> chunks of code spanning a couple of C files. Anyone have any
> recommendations? Preferably something that can actually parse the
> variant of C we use in our kernel :-).
Well, using a scary combination of grep, awk, a long list of "omit this"
regexp's, and prcc from cflow, I got the following:
http://www.watson.org/~robert/freebsd/20040302-sockets.ps
Duck and cover.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Senior Research Scientist, McAfee Research
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1040302221117.17237B-100000>
