X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fust-tracer.h;h=3a771e9b135c48aec798a18082d1203779580ec9;hb=5f796aec4e514c556b20454a58c6ca9b4f3128a9;hp=b451eae626f427058cd0e77dc686b2a31795a705;hpb=9af5d97a36b0cd4ed5d5868855f03c810d171aad;p=lttng-ust.git diff --git a/include/lttng/ust-tracer.h b/include/lttng/ust-tracer.h index b451eae6..3a771e9b 100644 --- a/include/lttng/ust-tracer.h +++ b/include/lttng/ust-tracer.h @@ -11,16 +11,19 @@ #include #include -#include #include #include +/* + * Default to having the content of the ringbuffer respect the natural + * alignment of the system. Only pack its content on architectures we know + * have efficient unaligned memory access. + */ #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS -/* Align data on its natural alignment */ -#define RING_BUFFER_ALIGN +#define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN #endif -#ifdef RING_BUFFER_ALIGN +#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN #define lttng_alignof(type) __alignof__(type) #else #define lttng_alignof(type) 1