<div dir="ltr">It looks like the patch stalled in review. This is the last message on the thread: <a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130311/075917.html">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130311/075917.html</a> ("I will look at these issues with the patch and work on resolving them" and then nothing). Maybe you can try to pick up the patch?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 11:24 AM, Gonzalo BG <span dir="ltr"><<a href="mailto:gonzalobg88@gmail.com" target="_blank">gonzalobg88@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm trying to use "-finstrument-functions" in an application and this feature seems to work fine. </div>
<div><br></div><div>However, I can't exclude the standard library from getting instrumented. This means I cannot use any std library function in the "__cyg_profile_func_enter" and "__cyg_profile_func_exit" call backs. This is severely limiting. </div>
<div><br></div>GCC defines "-finstrument-functions-exclude-file-list=file,file,..." (see <a href="http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html" target="_blank">http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html</a>) which allows you to exclude instrumentation of some files (e.g. the std library headers!). Someone filled a bug report and submitted a patch in march but it hasn't been merged yet: <a href="http://llvm.org/bugs/show_bug.cgi?id=15255" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=15255</a> . <div>
<br></div><div>Anyone knows the reason? If I'm not able to exclude the standard library I can't use instrumentation in my application.</div><div><br></div><div>Bests,</div><div>Gonzalo</div>
</div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>