From: "Jan Beulich" Subject: [PATCH] x86/hvm: fix extra size passed to __trace_var() Date: Mon, 20 Sep 2010 14:39:31 +0100 Message-ID: <4C9780330200007800017BF2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartD4F90203.0__=" Return-path: 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 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartD4F90203.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline While removing the casts on the last arguments to __trace_var() I noticed the bogus addition of 1 here. This patch will only apply on top of said earlier one. Signed-off-by: Jan Beulich --- 2010-08-12.orig/xen/include/asm-x86/hvm/trace.h 2010-09-10 = 18:01:59.000000000 +0200 +++ 2010-08-12/xen/include/asm-x86/hvm/trace.h 2010-09-10 18:08:27.0000000= 00 +0200 @@ -72,7 +72,7 @@ _d.d[4]=3D(d5); = \ _d.d[5]=3D(d6); = \ __trace_var(TRC_HVM_ ## evt, cycles, \ - sizeof(u32)*count+1, &_d); \ + sizeof(*_d.d) * count, &_d); \ } \ } while(0) =20 --=__PartD4F90203.0__= Content-Type: text/plain; name="x86-hvm-trace-extra-size.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-hvm-trace-extra-size.patch" While removing the casts on the last arguments to __trace_var() I=0Anoticed= the bogus addition of 1 here.=0A=0AThis patch will only apply on top of = said earlier one.=0A=0ASigned-off-by: Jan Beulich =0A= =0A--- 2010-08-12.orig/xen/include/asm-x86/hvm/trace.h 2010-09-10 = 18:01:59.000000000 +0200=0A+++ 2010-08-12/xen/include/asm-x86/hvm/trace.h = 2010-09-10 18:08:27.000000000 +0200=0A@@ -72,7 +72,7 @@=0A = _d.d[4]=3D(d5); \=0A = _d.d[5]=3D(d6); \=0A = __trace_var(TRC_HVM_ ## evt, cycles, \=0A- = sizeof(u32)*count+1, &_d); = \=0A+ sizeof(*_d.d) * count, &_d); = \=0A } = \=0A } while(0)=0A =0A --=__PartD4F90203.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartD4F90203.0__=--