[CRIU] [PATCH] make: add ability to collect code coverage
Cyrill Gorcunov
gorcunov at openvz.org
Mon Dec 24 10:13:28 EST 2012
On Mon, Dec 24, 2012 at 07:05:29PM +0400, Pavel Emelyanov wrote:
> On 12/24/2012 06:51 PM, Cyrill Gorcunov wrote:
> > On Mon, Dec 24, 2012 at 06:46:22PM +0400, Andrey Vagin wrote:
> >>
> >> +#ifdef CR_GCOV
> >> +extern void __gcov_flush(void);
> >> +#endif
> >> +
> >
> > Maybe it would worth to put it in header as
> >
> > #ifdef CR_GCOV
> > extern void __gcov_flush(void);
> > #else
> > static inline void __gcov_flush(void) { }
> > #endif
> >
> > no?
>
> Maybe declare the weak __gcov_flush w/o any kludges?
Yeah, even better, lets try this way (though, I'm not
sure if weak would work over extern).
Cyrill
More information about the CRIU
mailing list