From: Andrew Cooper Subject: [PATCH 6/6] tools/libxc: Add Valgrind client requests as a debugging option Date: Mon, 9 Jun 2014 12:01:09 +0100 Message-ID: <1402311669-20042-7-git-send-email-andrew.cooper3@citrix.com> References: <1402311669-20042-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402311669-20042-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org http://valgrind.org/docs/manual/mc-manual.html#mc-manual.clientreqs Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson --- The client requests are safe to compile in even when not running the binary under valgrind. For simplicitly, it might just be easiest to unconditionally enable client requests for debug builds if autoconf determines that exists. Thoughts? --- tools/libxc/xc_private.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index 5b0261e..c993340 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -34,6 +34,13 @@ #include +/* Compile in Valgrind client requests ? */ +#ifdef VALGRIND +#include +#else +#define VALGRIND_MAKE_MEM_UNDEFINED(addr, len) (void) /* addr, len */ +#endif + #define DECLARE_HYPERCALL privcmd_hypercall_t hypercall #define DECLARE_DOMCTL struct xen_domctl domctl #define DECLARE_SYSCTL struct xen_sysctl sysctl -- 1.7.10.4