On Thu, Oct 26, 2017 at 10:19:38AM +0100, Roger Pau Monne wrote: > Signed-off-by: Roger Pau Monné <roger....@citrix.com> > --- > Cc: Andrew Cooper <andrew.coop...@citrix.com> > Cc: George Dunlap <george.dun...@eu.citrix.com> > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Jan Beulich <jbeul...@suse.com> > Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Tim Deegan <t...@xen.org> > Cc: Wei Liu <wei.l...@citrix.com> > --- > docs/misc/coverage.markdown | 47 > +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/docs/misc/coverage.markdown b/docs/misc/coverage.markdown > index 0a32c48f4b..565644631a 100644 > --- a/docs/misc/coverage.markdown > +++ b/docs/misc/coverage.markdown > @@ -8,6 +8,8 @@ information. Every basic block in the code will be > instrumented by the compiler > to compute these statistics. It should not be used in production as it slows > down your hypervisor. > > +# GCOV (GCC coverage) > + > ## Enable coverage > > Test coverage support can be turned on compiling Xen with the `coverage` > option set > @@ -87,3 +89,48 @@ blob extracted from xencov!** > * See output in a browser > > firefox cov/index.html > + > +# LLVM coverage > + > +## Enable coverage > + > +Coverage can be enabled using a Kconfig option, from the top-level directory > +use the following command to display the Kconfig menu: > + > + gmake -C xen menuconfig clang=y > + > +The LLVM coverage option can be found inside of the "Debugging Options" > +section. After enabling it just compile Xen as you would normally do: > + > + gmake xen clang=y > +
It can be a bit confusing when make and gmake appear in the same document. I suggest you use make all over and add a footnote saying it should be gmake on FreeBSD. This footnote should apply to both gcov and llvm-cov -- I believe you should be able to build gcov support on FreeBSD, too. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel