A pin tool for generating a call graph