With my rather poor knowledge of all this, I think that detecting
function calls and return is a tricky problem
(when it has to be handled properly in all cases).
To my knowledge, callgrind has done this work of detecting function
calls.
So, you might see how to modify callgrind to fullfil your needs.
Philippe
________________________________
From: Sky Dai [mailto:[email protected]]
Sent: Sunday 27 February 2011 10:09
To: valgrind
Subject: [Valgrind-users] Intercepts all returns of functions
Hi all,
I want to instrument on every return of every functions. That is
to say, I want to do something just before the return of functions and
also do something after the return of functions. I know some simple
instrumentations on IRs, yet I have no idea how to implement that
instrumentation. Any suggestion will be appreciated.
Thank you in advance!
All the best,
Xuefeng Dai
____
This message and any files transmitted with it are legally privileged and
intended for the sole use of the individual(s) or entity to whom they are
addressed. If you are not the intended recipient, please notify the sender by
reply and delete the message and any attachments from your system. Any
unauthorised use or disclosure of the content of this message is strictly
prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard
copy.
Any views expressed in this message are those of the sender.------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users