Rename "tsc" to "timestamp"
[lttng-ust.git] / include / lttng / ust-tracer.h
1 // SPDX-FileCopyrightText: 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2 //
3 // SPDX-License-Identifier: MIT
4
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-utils.h>
15 #include <lttng/ust-version.h>
16
17 /*
18 * On architectures without efficient unaligned accesses, the layout of
19 * the ringbuffer's content respects the natural alignment of the
20 * system. Only pack its content on architectures we know have efficient
21 * unaligned memory access.
22 *
23 * Whether to pack the ring buffer contents or not is part of the ABI
24 * between the probe providers and the tracer, and is selected by the
25 * lttng/ust-arch.h header.
26 */
27 #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
28 #define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
29 #endif
30
31 #ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
32 #define lttng_ust_rb_alignof(type) __alignof__(type)
33 #else
34 #define lttng_ust_rb_alignof(type) 1
35 #endif
36
37 /*
38 * Concatenate lttng ust shared libraries name with their major version number.
39 */
40 #define LTTNG_UST_LIB_SONAME "liblttng-ust.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR)
41 #define LTTNG_UST_TRACEPOINT_LIB_SONAME "liblttng-ust-tracepoint.so." lttng_ust_stringify(LTTNG_UST_LIB_SONAME_MAJOR)
42 #define LTTNG_UST_CTL_LIB_SONAME "liblttng-ust-ctl.so." lttng_ust_stringify(LTTNG_UST_CTL_LIB_SONAME_MAJOR)
43
44
45 #endif /* _LTTNG_UST_TRACER_H */
This page took 0.029911 seconds and 4 git commands to generate.