Re: GCOV Cross Profiling: __gcov_flush() does not flush coverage data for shared libraries

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

 



On Fri, 19 Jun 2015, Utpal Patel wrote:

> Thanks Nicholas for the detailed answer.
> 
> I am compiling the both the applications and libraries with
> -fprofile-arcs and -ftest-coverage.
> 
> In summary, what you are saying is that I need to instrument every
> library with a wrapper for __gcov_flush() and call it from the Signal
> handler from the application, right?
>
yup - as far as I understand this you need some handler in *every* library you
want to dump runtime infos - it also is not resolved with a LD_PRELOAD library 
or the like (atleast I did not manage to do that - if you do find a smarter 
solution I would be interested !) 

thx!
hofrat



[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