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> |
eae3c729 | 14 | #include <lttng/ust-utils.h> |
b728d87e | 15 | #include <lttng/ust-version.h> |
d4d59a97 | 16 | |
5f796aec MJ |
17 | /* |
18 | * Default to having the content of the ringbuffer respect the natural | |
19 | * alignment of the system. Only pack its content on architectures we know | |
20 | * have efficient unaligned memory access. | |
21 | */ | |
2eba8e39 | 22 | #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS |
5f796aec | 23 | #define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN |
1ea11eab MD |
24 | #endif |
25 | ||
5f796aec | 26 | #ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN |
dc325c1d | 27 | #define lttng_ust_rb_alignof(type) __alignof__(type) |
1ea11eab | 28 | #else |
dc325c1d | 29 | #define lttng_ust_rb_alignof(type) 1 |
1ea11eab MD |
30 | #endif |
31 | ||
3d3dc207 MJ |
32 | /* |
33 | * Concatenate lttng ust shared libraries name with their major version number. | |
34 | */ | |
35 | #define LTTNG_UST_LIB_SONAME "liblttng-ust.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR) | |
36 | #define LTTNG_UST_TRACEPOINT_LIB_SONAME "liblttng-ust-tracepoint.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR) | |
37 | #define LTTNG_UST_CTL_LIB_SONAME "liblttng-ust-ctl.so." lttng_ust_stringify(LTTNG_UST_CTL_LIB_SONAME_MAJOR) | |
38 | ||
39 | ||
7dd08bec | 40 | #endif /* _LTTNG_UST_TRACER_H */ |