>>364
gccなら-finstrument-functions使えば
ファンクションコールトレーサーが簡単に作りこめる。
http://www-06.ibm.com/jp/developerworks/linux/050722/j_l-graphvis.html
このへんに詳しい。