Changes in 'finstrument-functions' option
Perret Yannick
yperret@in2p3.fr
Thu Jun 2 07:01:00 GMT 2005
Hi all,
some times ago I wrote about a modification
of the '-finstrument-functions' option of 'gcc'.
My goal was (and is still) to obtain additionnal
informations about functions (as symbols
addresses is sometime not enough).
So I made a patch to allow to send more data
to the __cyg_profile_func_enter/exit :
- function name (level 0, 1 and 2)
- file name
- line number
- function Id
I'm currently building the patch for the 4.1 last
snapshot...
My questions are:
- is it better to create a new option (i.e.
instrument-functions-full) or to modify the
behavior of 'instrument-functions' ?
- maybe the user should be able to indicate
at compilation time what are the informations
he wants to get (i.e. -fintrument-functions
-finstrument-format "<requested fields>").
Any idea/suggestion ?
Thank in advance.
Regards,
--
Yannick Perret
More information about the Gcc
mailing list