From 88292c3396cfb2095bd9921d84cc2baa003bea32 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 5 Apr 2021 17:37:52 -0400 Subject: [PATCH] Update unaligned vs aligned ring buffer access comment Signed-off-by: Mathieu Desnoyers Change-Id: I57ca4e63bc5eb9c39a502a27c079a395cbecb42e --- include/lttng/ust-tracer.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/lttng/ust-tracer.h b/include/lttng/ust-tracer.h index cc5f93e4..a863757b 100644 --- a/include/lttng/ust-tracer.h +++ b/include/lttng/ust-tracer.h @@ -15,9 +15,14 @@ #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, layout 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. + * + * 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 -- 2.34.1