| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 5 | * |
| 6 | * This contains the core definitions for the Linux Trace Toolkit. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _LTTNG_UST_TRACER_H |
| 10 | #define _LTTNG_UST_TRACER_H |
| 11 | |
| 12 | #include <lttng/ust-arch.h> |
| 13 | #include <lttng/ust-compiler.h> |
| 14 | #include <lttng/ust-config.h> |
| 15 | #include <lttng/ust-utils.h> |
| 16 | #include <lttng/ust-version.h> |
| 17 | |
| 18 | #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS |
| 19 | /* Align data on its natural alignment */ |
| 20 | #define RING_BUFFER_ALIGN |
| 21 | #endif |
| 22 | |
| 23 | #ifdef RING_BUFFER_ALIGN |
| 24 | #define lttng_alignof(type) __alignof__(type) |
| 25 | #else |
| 26 | #define lttng_alignof(type) 1 |
| 27 | #endif |
| 28 | |
| 29 | #endif /* _LTTNG_UST_TRACER_H */ |