install

calltree:

download from http://linux.softpedia.com/progDownload/calltree-Download-971.html

for linux, Check READ.linux to compile and install, very simple!!!

then copy calltree/OBJ/i686-linux-cc/calltree to /usr/bin

 

granphviz:

i used "sudo yum insall graphviz* " to install.
But when install, it show some lib miss. The resolved way is update the repo. BTW, my system is CentOs. you can check

http://mirrors.163.com/.help/centos.html.

Use them

e.g. I want to know the "start_kernel" call tree, Then I can do:

calltree -b -dot lf=start_kernel KERNEL_DIR/init/*.c > ~/start_kernel.dot

dot -T png ~/start_kernel.dot -o ~/start_kernel.png

# the usage of dot is "dot -T picture-format input-doc-file -o outputfile"

Also you can use:

calltree -b lf=start_kernel KERNEL_DIR/init/*.c > ~/start_kernel.dot

to generate a txt call tree.

 

It's very usefull!!! Because our brain stack is not so big : (, so use the tool!!!