From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RELGD-0001Zb-DH for qemu-devel@nongnu.org; Thu, 13 Oct 2011 09:23:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RELG7-0003Bo-Tt for qemu-devel@nongnu.org; Thu, 13 Oct 2011 09:23:45 -0400 Received: from lo.gmane.org ([80.91.229.12]:46988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RELG7-0003Bd-Og for qemu-devel@nongnu.org; Thu, 13 Oct 2011 09:23:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RELG5-0004V0-A6 for qemu-devel@nongnu.org; Thu, 13 Oct 2011 15:23:37 +0200 Received: from nat-pool-mxp-t.redhat.com ([209.132.186.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2011 15:23:36 +0200 Received: from pbonzini by nat-pool-mxp-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2011 15:23:36 +0200 From: Paolo Bonzini Date: Thu, 13 Oct 2011 15:23:24 +0200 Message-ID: References: <4E95D6F1.4070402@weilnetz.de> <4E95FB7F.2010303@weilnetz.de> <05B92D62-378E-461A-AAD1-541DDA377A4B@suse.de> <4E96047D.3080603@weilnetz.de> <4E9699C2.30405@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <4E9699C2.30405@redhat.com> Subject: Re: [Qemu-devel] 2 MiB alignment in qemu_vmalloc() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 10/13/2011 09:56 AM, Gerd Hoffmann wrote: > > Is there some way for apps to figure they are running in valgrind? > Then we could choose a different alignment automagically. Yes, valgrind.h (on RH distros that's in package valgrind-devel; there is a valgrind.pc file to add the correct include path) provides a RUNNING_ON_VALGRIND macro. Paolo