#define max(a,b) (((a)>(b))?a:b)
#define BUG_ON(a) assert(!(a))
-// Useful outsize __KERNEL__. Not used here because inline is already redefined.
+// Useful outside __KERNEL__. Not used here because inline is already redefined.
#define force_inline inline __attribute__((always_inline))
/* Calculate the offset needed to align the type */
locsize = sizeof(double);
size += ltt_align(size, locsize) + (obj->len * locsize);
+ /* Realign on arch size */
+ locsize = sizeof(void *);
+ size += ltt_align(size, locsize);
+
return size;
}
/* Variable length field */
lttng_write_sequence_mystruct_mysequence(to_base, to, from, len, &obj->mysequence);
- *to = 0; /* Force the compiler to know it's 0 */
+ //*to = 0; /* Force the compiler to know it's 0 */
/* After this previous write, we are sure that *to is 0, and *to_base is
* aligned on the architecture size : to rest of alignment will be calculated
* statically. */