For quite some time, HP had an internal, HP-UX tool called ktracer.
That tool is now bundled with Caliper 5.0 and supported for use
outside of the HP R&D labs

Additional information about ktracer can be found starting at:

rick jones
simply the messenger
oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in but NOT BOTH...