Shameless plug but I suspect this will be handy for a few people on the
list. I wrote a few scripts for generating call graphs easily for any lump
of C source including the kernel based on Martin Devera's work. The
results are at http://www.csn.ul.ie/~mel/projects/gengraph/ . Out of the
box, it can generate graphs for kernel 2.4.19rc1, xmms 1.2.7 and MySQL
3.23.32 but it can be applied to any lump of source once it is compiled
with a patched version of gcc
For the lazy, the following will generate the callgraph for alloc_pages()
in kernel 2.4.19rc1
wget http://www.csn.ul.ie/~mel/projects/gengraph/gengraph-0.1.tar.gz
tar -zxvf gengraph-0.1.tar.gz
gengraph -g ./gengraph-0.1/graphs/full.graph-linux-2.4.19pre10 -f function_name
gv alloc_pages.ps
You'll need to have dot installed which comes with the graphviz package.
Your distribution probably has packages. If not, it's available at
http://www.research.att.com/sw/tools/graphviz/
Any feedback is welcome
--
Mel Gorman
MSc Student, University of Limerick
http://www.csn.ul.ie/~mel
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!