problem with -finstrument functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to use -finstrument-function provided by gcc.(4.9.2).

It is large code base. i have defined a header file, and source file
containing declaration and definition of following functions...


__attribute__((no_instrument_function)) void __cyg_profile_func_enter
(void *this_fn, void *call_site);

__attribute__((no_instrument_function)) void __cyg_profile_func_exit
(void *this_fn, void *call_site);


and definitions as-->


void __cyg_profile_func_enter (void *this_fn, void *call_site)
{
printf("Function Entering : %p %p \n", this_fn, call_site);
}

void __cyg_profile_func_exit (void *this_fn, void *call_site)
{
printf("Function Exiting : %p %p \n", this_fn, call_site);
}



Problem:
When i compile source code without instrumentation, it compiles. But
with instrumentation, I get lot of errors "undefined Reference to
'symbols' . There is change in the linking process.

Does -finstrument-function changes the linking process. If yes, how?

Please help me, not much data available on net regarding the same..


-- 
Shrikanth Hegde
+91 9738172579




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux