public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Instrumentation using -finstrument-functions
@ 2011-12-22 20:02 Nipun Arora
  2011-12-23 20:03 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Nipun Arora @ 2011-12-22 20:02 UTC (permalink / raw)
  To: gcc-help


Hi 

I have been looking into instrumentation using -finstrument-functions. I see
that in the steps there is an exclude file list which does not instrument
any functions in the exclude file list specified at compile time.

However is there anyway to do an include file list instead. I want to
instrument only the application code functions, and not c library or system
functions. Would some sort of regex work for this?


Essentially if the scenario is this that I want to use
-finstrument-functions to only instrument functions belonging to /foo/src/..
how can I achieve this? since only exclude file functionality is given.

Thanks
Nipun
-- 
View this message in context: http://old.nabble.com/Instrumentation-using--finstrument-functions-tp33025744p33025744.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Instrumentation using -finstrument-functions
  2011-12-22 20:02 Instrumentation using -finstrument-functions Nipun Arora
@ 2011-12-23 20:03 ` Ian Lance Taylor
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Lance Taylor @ 2011-12-23 20:03 UTC (permalink / raw)
  To: Nipun Arora; +Cc: gcc-help

Nipun Arora <nipun2512@gmail.com> writes:

> I have been looking into instrumentation using -finstrument-functions. I see
> that in the steps there is an exclude file list which does not instrument
> any functions in the exclude file list specified at compile time.
>
> However is there anyway to do an include file list instead. I want to
> instrument only the application code functions, and not c library or system
> functions. Would some sort of regex work for this?
>
>
> Essentially if the scenario is this that I want to use
> -finstrument-functions to only instrument functions belonging to /foo/src/..
> how can I achieve this? since only exclude file functionality is given.

There is no reverse of -finstrument-functions-exclude-file-list.  The
only real way to do what you want is to only use -finstrument-functions
when compiling the files in /foo/src/....

Ian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Instrumentation using -finstrument-functions
@ 2011-12-23  1:50 Nipun Arora
  0 siblings, 0 replies; 3+ messages in thread
From: Nipun Arora @ 2011-12-23  1:50 UTC (permalink / raw)
  To: gcc-help


Hi 

I have been looking into instrumentation using -finstrument-functions. I see
that in the steps there is an exclude file list which does not instrument
any functions in the exclude file list specified at compile time.

However is there anyway to do an include file list instead. I want to
instrument only the application code functions, and not c library or system
functions. Would some sort of regex work for this?


Essentially if the scenario is this that I want to use
-finstrument-functions to only instrument functions belonging to /foo/src/..
how can I achieve this? since only exclude file functionality is given.

Thanks
Nipun
-- 
View this message in context: http://old.nabble.com/Instrumentation-using--finstrument-functions-tp33025746p33025746.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-23  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-22 20:02 Instrumentation using -finstrument-functions Nipun Arora
2011-12-23 20:03 ` Ian Lance Taylor
2011-12-23  1:50 Nipun Arora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).