[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-next 7/9] coverage: introduce support for llvm profiling
On Thu, Oct 26, 2017 at 10:19:36AM +0100, Roger Pau Monne wrote: > Introduce the functionality in order to fill the hooks of the > cov_sysctl_ops struct. > > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> > --- > Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx> > Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> > Cc: Jan Beulich <jbeulich@xxxxxxxx> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> > Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx> > Cc: Tim Deegan <tim@xxxxxxx> > Cc: Wei Liu <wei.liu2@xxxxxxxxxx> > Cc: llvm-dev@xxxxxxxxxxxxxx > --- > Note that the file that contains the helpers is under a BSD 2-clause > license. This is done so it can be shared with other OSes that use the > llvm/clang compiler. It would be helpful if you can put a reference to the original code somewhere, either in commit message or in the comment section of the file. > --- > xen/common/coverage/Makefile | 2 +- > xen/common/coverage/llvm.c | 148 > +++++++++++++++++++++++++++++++++++++++++++ > xen/include/public/sysctl.h | 6 ++ > 3 files changed, 155 insertions(+), 1 deletion(-) > create mode 100644 xen/common/coverage/llvm.c > > diff --git a/xen/common/coverage/Makefile b/xen/common/coverage/Makefile > index e4541a1233..f2ffb2b8de 100644 > --- a/xen/common/coverage/Makefile > +++ b/xen/common/coverage/Makefile > @@ -11,5 +11,5 @@ obj-$(CONFIG_GCOV_FORMAT_AUTODETECT) += $(call > cc-ifversion,lt,0x040700, \ > gcc_4_9.o, $(call > cc-ifversion,lt,0x070000, \ > gcc_5.o, gcc_7.o)))) > else > -obj-y += coverage.o > +obj-y += llvm.o coverage.o > endif > diff --git a/xen/common/coverage/llvm.c b/xen/common/coverage/llvm.c > new file mode 100644 > index 0000000000..c8905070a3 > --- /dev/null > +++ b/xen/common/coverage/llvm.c > +#include <xen/errno.h> > +#include <xen/guest_access.h> > +#include <xen/types.h> > +#include <xen/coverage.h> > + Order. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |