X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-tracer.h;h=0094477ea635d9ba11879a88e08b43a1e0830890;hb=1c1968450409b3c159a3000f9e1a968ff1e5f7e8;hp=4b12be184481cc5501622e2bbc97f2cf4a31a8c4;hpb=3d3dc207c16d90ecd80eb1e757fe8b94ff317c63;p=lttng-ust.git diff --git a/include/lttng/ust-tracer.h b/include/lttng/ust-tracer.h index 4b12be18..0094477e 100644 --- a/include/lttng/ust-tracer.h +++ b/include/lttng/ust-tracer.h @@ -1,8 +1,8 @@ +// SPDX-FileCopyrightText: 2005-2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * SPDX-License-Identifier: MIT - * - * Copyright (C) 2005-2012 Mathieu Desnoyers - * * This contains the core definitions for the Linux Trace Toolkit. */ @@ -15,18 +15,23 @@ #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. + * On architectures without efficient unaligned accesses, the layout of + * the ringbuffer's content respects the natural alignment of the + * system. Only pack its content on architectures we know have efficient + * unaligned memory access. + * + * Whether to pack the ring buffer contents or not is part of the ABI + * between the probe providers and the tracer, and is selected by the + * lttng/ust-arch.h header. */ #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS #define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN #endif #ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN -#define lttng_alignof(type) __alignof__(type) +#define lttng_ust_rb_alignof(type) __alignof__(type) #else -#define lttng_alignof(type) 1 +#define lttng_ust_rb_alignof(type) 1 #endif /*