2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * This contains the core definitions for the Linux Trace Toolkit.
9 #ifndef _LTTNG_UST_TRACER_H
10 #define _LTTNG_UST_TRACER_H
12 #include <lttng/ust-arch.h>
13 #include <lttng/ust-compiler.h>
14 #include <lttng/ust-utils.h>
15 #include <lttng/ust-version.h>
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.
22 #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
23 #define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
26 #ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
27 #define lttng_ust_rb_alignof(type) __alignof__(type)
29 #define lttng_ust_rb_alignof(type) 1
33 * Concatenate lttng ust shared libraries name with their major version number.
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)
40 #endif /* _LTTNG_UST_TRACER_H */
This page took 0.046923 seconds and 5 git commands to generate.