public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Nipun Arora <nipun2512@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Instrumentation using -finstrument-functions
Date: Fri, 23 Dec 2011 20:03:00 -0000	[thread overview]
Message-ID: <mcr8vm4vyyw.fsf@dhcp-172-18-216-180.mtv.corp.google.com> (raw)
In-Reply-To: <33025744.post@talk.nabble.com> (Nipun Arora's message of "Thu,	22 Dec 2011 12:01:21 -0800 (PST)")

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

  reply	other threads:[~2011-12-23  1:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22 20:02 Nipun Arora
2011-12-23 20:03 ` Ian Lance Taylor [this message]
2011-12-23  1:50 Nipun Arora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mcr8vm4vyyw.fsf@dhcp-172-18-216-180.mtv.corp.google.com \
    --to=iant@google.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=nipun2512@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).