Skip to contentSkip to conversation

libxc: disable valgrind integration when building for minios

PATCH In review Ian Campbell 3 participants 4 messages Jul 21, 2014 – Jul 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc: disable valgrind integration when building for minios

The stubdom build system incorrectly picks up on the hosts installation of Valgrind, which cannot work in a stubdom environment.

---
 tools/libxc/xc_private.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_private.h +1 -1
index ce7e81e..43826e5 100644
@@ -34,7 +34,7 @@
 
 #include <xen/sys/privcmd.h>
 
-#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG)
+#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) && !define(__MINIOS__)
 /* Compile in Valgrind client requests? */
 #include <valgrind/memcheck.h>
 #else
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ian Campbell

The stubdom build system incorrectly picks up on the hosts installation of Valgrind, which cannot work in a stubdom environment.

Quoted 18 lines
Cc Samuel Thibault <[email protected]>
---
 tools/libxc/xc_private.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_private.h +1 -1
index ce7e81e..43826e5 100644
@@ -34,7 +34,7 @@
 
 #include <xen/sys/privcmd.h>
 
-#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG)
+#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) && !define(__MINIOS__)
 /* Compile in Valgrind client requests? */
 #include <valgrind/memcheck.h>
 #else
Acked-by on v1 1/1
#2 lore raw
In reply to Ian Campbell
Quoted 7 lines · Ian Campbell, le Mon 21 Jul 2014 12:29:14 +0100, a écrit :

The stubdom build system incorrectly picks up on the hosts installation of Valgrind, which cannot work in a stubdom environment.

Quoted 20 lines
---
 tools/libxc/xc_private.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxc/xc_private.h +1 -1
index ce7e81e..43826e5 100644
@@ -34,7 +34,7 @@
 
 #include <xen/sys/privcmd.h>
 
-#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG)
+#if defined(HAVE_VALGRIND_MEMCHECK_H) && !defined(NDEBUG) && !define(__MINIOS__)
 /* Compile in Valgrind client requests? */
 #include <valgrind/memcheck.h>
 #else
Signature · 1 line
1.7.10.4
Signature · 2 lines
Samuel
<g> r: et la marmotte, elle écrit un papier IPDPS
#3 lore raw
Quoted 10 lines · Samuel Thibault
Quoted 7 lines · Ian Campbell, le Mon 21 Jul 2014 12:29:14 +0100, a écrit :

The stubdom build system incorrectly picks up on the hosts installation of Valgrind, which cannot work in a stubdom environment.

No one spotted the deliberate error (define() vs defined()) ;-)

I fixed that and applied, thanks.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel