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 [EMAIL PROTECTED] Senior Research Scientist, McAfee Research _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"