lttng/ust.h \
lttng/ust-endian.h \
lttng/ringbuffer-context.h \
- lttng/align.h \
+ lttng/ust-align.h \
lttng/ust-bug.h \
lttng/ust-error.h \
lttng/tracef.h \
+++ /dev/null
-/*
- * SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2010-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- */
-
-#ifndef _LTTNG_ALIGN_H
-#define _LTTNG_ALIGN_H
-
-#include <lttng/ust-bug.h>
-
-/**
- * lttng_ust_offset_align - Calculate the offset needed to align an object on
- * its natural alignment towards higher addresses.
- * @align_drift: object offset from an "alignment"-aligned address.
- * @alignment: natural object alignment. Must be non-zero, power of 2.
- *
- * Returns the offset that must be added to align towards higher
- * addresses.
- */
-#define lttng_ust_offset_align(align_drift, alignment) \
- ({ \
- LTTNG_BUILD_RUNTIME_BUG_ON((alignment) == 0 \
- || ((alignment) & ((alignment) - 1))); \
- (((alignment) - (align_drift)) & ((alignment) - 1)); \
- })
-
-/**
- * lttng_ust_offset_align_floor - Calculate the offset needed to align an
- * object on its natural alignment towards lower addresses.
- * @align_drift: object offset from an "alignment"-aligned address.
- * @alignment: natural object alignment. Must be non-zero, power of 2.
- *
- * Returns the offset that must be substracted to align towards lower addresses.
- */
-#define lttng_ust_offset_align_floor(align_drift, alignment) \
- ({ \
- LTTNG_BUILD_RUNTIME_BUG_ON((alignment) == 0 \
- || ((alignment) & ((alignment) - 1))); \
- (((align_drift) - (alignment)) & ((alignment) - 1)); \
- })
-
-#endif /* _LTTNG_ALIGN_H */
#define _LTTNG_RING_BUFFER_CONTEXT_H
#include <errno.h>
-#include <lttng/ust-tracer.h>
#include <stdint.h>
#include <stddef.h>
#include <urcu/arch.h>
#include <string.h>
-#include <lttng/align.h>
+
+#include <lttng/ust-tracer.h>
+#include <lttng/ust-align.h>
#include <lttng/ust-compiler.h>
struct lttng_ust_lib_ring_buffer;
--- /dev/null
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2010-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#ifndef _LTTNG_UST_ALIGN_H
+#define _LTTNG_UST_ALIGN_H
+
+#include <lttng/ust-bug.h>
+
+/**
+ * lttng_ust_offset_align - Calculate the offset needed to align an object on
+ * its natural alignment towards higher addresses.
+ * @align_drift: object offset from an "alignment"-aligned address.
+ * @alignment: natural object alignment. Must be non-zero, power of 2.
+ *
+ * Returns the offset that must be added to align towards higher
+ * addresses.
+ */
+#define lttng_ust_offset_align(align_drift, alignment) \
+ ({ \
+ LTTNG_BUILD_RUNTIME_BUG_ON((alignment) == 0 \
+ || ((alignment) & ((alignment) - 1))); \
+ (((alignment) - (align_drift)) & ((alignment) - 1)); \
+ })
+
+/**
+ * lttng_ust_offset_align_floor - Calculate the offset needed to align an
+ * object on its natural alignment towards lower addresses.
+ * @align_drift: object offset from an "alignment"-aligned address.
+ * @alignment: natural object alignment. Must be non-zero, power of 2.
+ *
+ * Returns the offset that must be substracted to align towards lower addresses.
+ */
+#define lttng_ust_offset_align_floor(align_drift, alignment) \
+ ({ \
+ LTTNG_BUILD_RUNTIME_BUG_ON((alignment) == 0 \
+ || ((alignment) & ((alignment) - 1))); \
+ (((align_drift) - (alignment)) & ((alignment) - 1)); \
+ })
+
+#endif /* _LTTNG_UST_ALIGN_H */
#include <stdio.h>
#include <signal.h>
#include <dirent.h>
-#include <lttng/align.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
+
#ifdef HAVE_LIBNUMA
#include <numa.h>
#include <numaif.h>
#endif
+
+#include <lttng/ust-align.h>
+
#include <ust-helper.h>
#include <ust-fd.h>
#include "../libringbuffer/mmap.h"
#include <stddef.h>
#include <stdint.h>
-#include <lttng/align.h>
+#include <lttng/ust-align.h>
#include "context-internal.h"
#include "lttng-bytecode.h"
#define _LGPL_SOURCE
#include <fcntl.h>
-#include <ust-helper.h>
-#include <lttng/align.h>
-#include <ust-elf.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
+#include <lttng/ust-align.h>
+
+#include <ust-elf.h>
#include <ust-fd.h>
#include "lttng-tracer-core.h"
#include <urcu/arch.h>
#include <limits.h>
-#include <lttng/align.h>
+#include <lttng/ust-align.h>
#include <lttng/ringbuffer-context.h>
+
#include "ringbuffer-config.h"
#include "vatomic.h"
#include "backend.h"
#include <poll.h>
#include <ust-helper.h>
-#include <lttng/align.h>
-#include "smp.h"
+#include <lttng/ust-align.h>
#include <lttng/ringbuffer-context.h>
+
+#include "smp.h"
#include "ringbuffer-config.h"
#include "vatomic.h"
#include "backend.h"
#define _LTTNG_RING_BUFFER_CONFIG_H
#include <errno.h>
-#include <lttng/ust-tracer.h>
#include <stdint.h>
#include <stddef.h>
#include <urcu/arch.h>
#include <string.h>
-#include <lttng/align.h>
+
+#include <lttng/ust-align.h>
#include <lttng/ust-compiler.h>
+#include <lttng/ust-tracer.h>
struct lttng_ust_lib_ring_buffer;
struct lttng_ust_lib_ring_buffer_channel;
#include <stdio.h>
#include <signal.h>
#include <dirent.h>
-#include <lttng/align.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
+
#ifdef HAVE_LIBNUMA
#include <numa.h>
#include <numaif.h>
#endif
+
+#include <lttng/ust-align.h>
+
#include <ust-helper.h>
#include <ust-fd.h>
#include "mmap.h"