Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2004 09:25:50 +0300
From:      Zajcev Evgeny <zevlg@yandex.ru>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        hackers@freebsd.org
Subject:   Re: Looking for static analysis tool to generate call graphs
Message-ID:  <82y8qjhij5.fsf@us.dmz.local>
In-Reply-To: <Pine.NEB.3.96L.1040301213042.90719I-100000@fledge.watson.org> (Robert Watson's message of "Mon, 1 Mar 2004 21:32:35 -0500 (EST)")
References:  <Pine.NEB.3.96L.1040301213042.90719I-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson <rwatson@freebsd.org> writes:

> 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 :-). 
>

I used patch to gcc to output call graph in dot format based on parse
tree generated by gcc year or so ago.  It was pretty nice, but I dont
awared is this patch yet supported or not.  You can find some info
about it at http://luxik.cdi.cz/~devik/mm.htm

> Thanks,
>
> Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
> robert@fledge.watson.org      Senior Research Scientist, McAfee Research
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

-- 
lg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82y8qjhij5.fsf>