]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Provide event files for oprofile
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 20 Jun 2012 17:15:33 +0000 (13:15 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 20 Jun 2012 17:15:33 +0000 (13:15 -0400)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index aa5501edcc17d325104419329500a042e131100f..d837fe35abca3b73731d32ec46b1f18da1d4a934 100644 (file)
@@ -188,7 +188,7 @@ distdir:
 # This target includes all userspace tools and images
 # It does not include the Linux drivers/modules found in the modulespace target
 .PHONY:        root_image-userspace-install
-root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins add-debug-bins tools-install wget-install vim-install rsync-install openssh-install xtt-tools-install netperf-install lvm2-install plymouth-install pciutils-install iscsi-install bridge-utils-install xend-install nfs-install fio-install directfb-install irqbalance-install pm-utils-install cpufrequtils-install kexec-tools-install oprofile-install perf-install power-install
+root_image-userspace-install: $(USERSPACE_INSTALL) add-libs add-bins add-debug-bins tools-install wget-install vim-install rsync-install openssh-install xtt-tools-install netperf-install lvm2-install plymouth-install pciutils-install iscsi-install bridge-utils-install xend-install nfs-install fio-install directfb-install irqbalance-install pm-utils-install cpufrequtils-install kexec-tools-install perf-install oprofile-install
 
        rm -rf userspace/man
        rm -rf userspace/usr/share/man
@@ -834,9 +834,12 @@ endif
 
 .PHONY: oprofile-install
 oprofile-install:
-       if ! [ -e oprofile/config.h ]; then (cd oprofile; ./autogen.sh;./configure --prefix=/usr); fi
+       if ! [ -e oprofile/config.h ]; then (cd oprofile; ./autogen.sh;./configure --prefix=/usr --with-kenrel-support); fi
        $(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) -C oprofile
        $(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) -C oprofile prefix=$(CURDIR)/userspace install
+       mkdir -p $(CURDIR)/userspace/usr/share/oprofile
+       cp -rdf oprofile/events/i386    $(CURDIR)/userspace/usr/share/oprofile
+       cp -rdf oprofile/events/x86-64  $(CURDIR)/userspace/usr/share/oprofile
 
 XEN_SRC = $(dir $(CURDIR))xen
 XEN_DISTDIR = $(dir $(CURDIR))xen/dist/install