Thread safe gcc function entry/exit tracer and call graph generator