[PATCH] [cfe] Added -finstrument-functions-exclude-{file, function}-list

Matthew Iselin matthew at theiselins.net
Mon Mar 11 03:37:42 PDT 2013


Hi all,

This patch adds two options, -finstrument-functions-exclude-file-list=
and -finstrument-functions-exclude-function=, which offer a means
through which headers in various locations and individual functions
can be excluded from instrumentation via -finstrument-functions. These
options can be found in GCC alongside -finstrument-functions.

Excluded functions do not have __cyg_profile_* calls emitted in them.

The options in this patch differ from the GCC options in the following ways:
* functions are checked and specified based on internal mangled names
* entires in the function list are not checked as substrings of
functions (that is, "hello" only matches "hello", not "helloworld").

I have included a few tests to ensure the behaviour is as expected,
and with these GCC-incompatible caveats.

Cheers,

- Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finstrument-functions-exclusions.patch
Type: application/octet-stream
Size: 11626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130311/bb646f51/attachment.obj>


More information about the llvm-commits mailing list