GCOV Cross Profiling: __gcov_flush() does not flush coverage data for shared libraries
Nicholas Mc Guire
der.herr@hofr.at
Sat Jun 20 06:40:00 GMT 2015
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
More information about the Gcc-help
mailing list