From: hellokitty Subject: Re: How to use valgrind to detect xen hypervisor's memory leak Date: Fri, 15 Jul 2011 23:19:39 -0700 (PDT) Message-ID: <1310797179799-4593243.post@n5.nabble.com> References: <1310697774774-4589174.post@n5.nabble.com> <1310714382.11556.6.camel@dagon.hellion.org.uk> <1310721336532-4589993.post@n5.nabble.com> <1310723038.634.575.camel@zakaz.uk.xensource.com> <1310737149406-4590704.post@n5.nabble.com> <1310744110.20648.20.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1310744110.20648.20.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > I downloaded 3.6.1, applied the attached patch and ran: > aclocal && autoheader && automake -a && autoconf (per the autogen.sh in > valgrind SVN) > Then I ran: > ./configure --with-xen && make > and it built fine (since it defaults to looking in /usr/include for > headers). > I also tried "./configure --with-xen=3D/usr/include" which also worked. > However --with-xen=3D/usr/include/xen (as you had) did not work because > the path is wrong and should not include the final /xen (since the > #includes in the code are of the form <xen/thing.h>), although my > error > messages in this case were not the same as yours.=20 Here , i follow your step , and use the "X" patch you uploaded , and run=20 "aclocal && autoheader && automake -a && autoconf " ,goes well and then ru= n "./configure --with-xen && make" , and when it comes to make , it has the errors below : Making all in coregrind make[2]: Entering directory `/home/popo/valgrind-3.6.1/coregrind' make all-am make[3]: Entering directory `/home/popo/valgrind-3.6.1/coregrind' gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=3D1 -DVGO_linux=3D1 -DVGP_x86_linux=3D1 -I../coregrind -DVG_LIBDIR=3D"\"/usr/local/lib/valgrind"\" -DVG_PLATFORM=3D"\"x86-linux\""= =20 -m32 -mpreferred-stack-boundary=3D2 -O2 -g -Wall -Wmissing-prototypes -Wsha= dow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -Iyes -Wno-long-long=20 -Wno-pointer-sign -fno-stack-protector -MT libcoregrind_x86_linux_a-syswrap-xen.o -MD -MP -MF .deps/libcoregrind_x86_linux_a-syswrap-xen.Tpo -c -o libcoregrind_x86_linux_a-syswrap-xen.o `test -f 'm_syswrap/syswrap-xen.c' |= | echo './'`m_syswrap/syswrap-xen.c m_syswrap/syswrap-xen.c: In function =E2=80=98vgSysWrap_xen_ioctl_privcmd_hypercall_before=E2=80=99: m_syswrap/syswrap-xen.c:119: error: =E2=80=98MMUEXT_MARK_SUPER=E2=80=99 und= eclared (first use in this function) m_syswrap/syswrap-xen.c:119: error: (Each undeclared identifier is reported only once m_syswrap/syswrap-xen.c:119: error: for each function it appears in.) m_syswrap/syswrap-xen.c:120: error: =E2=80=98MMUEXT_UNMARK_SUPER=E2=80=99 u= ndeclared (first use in this function) m_syswrap/syswrap-xen.c:136: error: =E2=80=98MMUEXT_FLUSH_CACHE_GLOBAL=E2= =80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:263: error: =E2=80=98XEN_SYSCTL_cpupool_op=E2=80=99= undeclared (first use in this function) m_syswrap/syswrap-xen.c:264: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:264: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:266: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:267: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_CREATE= =E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:268: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_DESTROY= =E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:269: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_INFO=E2= =80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:270: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_ADDCPU= =E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:271: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_RMCPU=E2= =80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:272: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_MOVEDOMA= IN=E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:273: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:273: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:276: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:277: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:277: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:279: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:280: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:280: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:282: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:283: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:284: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:284: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c: In function =E2=80=98vgSysWrap_xen_ioctl_privcmd_hypercall_after=E2=80=99: m_syswrap/syswrap-xen.c:558: error: =E2=80=98XEN_SYSCTL_cpupool_op=E2=80=99= undeclared (first use in this function) m_syswrap/syswrap-xen.c:559: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:559: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_CREATE= =E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:560: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:560: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_INFO=E2= =80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:561: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:561: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:562: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:563: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:563: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:564: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:564: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:566: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:567: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:567: error: =E2=80=98XEN_SYSCTL_CPUPOOL_OP_FREEINFO= =E2=80=99 undeclared (first use in this function) m_syswrap/syswrap-xen.c:568: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:568: error: =E2=80=98union =E2=80=99 has= no member named =E2=80=98cpupool_op=E2=80=99 m_syswrap/syswrap-xen.c:576: error: =E2=80=98struct xen_sysctl_physinfo=E2= =80=99 has no member named =E2=80=98nr_nodes=E2=80=99 m_syswrap/syswrap-xen.c:576: error: =E2=80=98struct xen_sysctl_physinfo=E2= =80=99 has no member named =E2=80=98nr_nodes=E2=80=99 m_syswrap/syswrap-xen.c:658: error: =E2=80=98struct xen_domctl_getdomaininf= o=E2=80=99 has no member named =E2=80=98cpupool=E2=80=99 m_syswrap/syswrap-xen.c:658: error: =E2=80=98struct xen_domctl_getdomaininf= o=E2=80=99 has no member named =E2=80=98cpupool=E2=80=99 make[3]: *** [libcoregrind_x86_linux_a-syswrap-xen.o] Error 1 make[3]: Leaving directory `/home/popo/valgrind-3.6.1/coregrind' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/popo/valgrind-3.6.1/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/popo/valgrind-3.6.1' make: *** [all] Error 2 How about you ? and i don't know how to fix it yet ..... -- View this message in context: http://xen.1045712.n5.nabble.com/How-to-use-v= algrind-to-detect-xen-hypervisor-s-memory-leak-tp4589174p4593243.html Sent from the Xen - Dev mailing list archive at Nabble.com.