Looking for static analysis tool to generate call graphs
Zajcev Evgeny
zevlg at yandex.ru
Mon Mar 1 22:21:50 PST 2004
Robert Watson <rwatson at 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 at fledge.watson.org Senior Research Scientist, McAfee Research
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
--
lg
More information about the freebsd-hackers
mailing list