This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Changes in 'finstrument-functions' option
- From: "Perret Yannick" <yperret at in2p3 dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 02 Jun 2005 09:01:15 +0200
- Subject: Changes in 'finstrument-functions' option
- References: <20050601112237.69764.qmail@web54009.mail.yahoo.com>
- Reply-to: yperret at in2p3 dot fr
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