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