Skip to contentSkip to conversation

x86/hvm: fix extra size passed to __trace_var()

PATCH New Jan Beulich 1 participant 1 message Sep 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/hvm: fix extra size passed to __trace_var()

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.

xen/include/asm-x86/hvm/trace.h +1 -1
@@ -72,7 +72,7 @@
             _d.d[4]=(d5);                                               \
             _d.d[5]=(d6);                                               \
             __trace_var(TRC_HVM_ ## evt, cycles,                        \
-                        sizeof(u32)*count+1, &_d);                      \
+                        sizeof(*_d.d) * count, &_d);                    \
         }                                                               \
     } while(0)
 

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.

xen/include/asm-x86/hvm/trace.h +1 -1
@@ -72,7 +72,7 @@
             _d.d[4]=(d5);                                               \
             _d.d[5]=(d6);                                               \
             __trace_var(TRC_HVM_ ## evt, cycles,                        \
-                        sizeof(u32)*count+1, &_d);                      \
+                        sizeof(*_d.d) * count, &_d);                    \
         }                                                               \
     } while(0)
 

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