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 * 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.
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.
27 #ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
28 #define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
31 #ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
32 #define lttng_ust_rb_alignof(type) __alignof__(type)
34 #define lttng_ust_rb_alignof(type) 1
38 * Concatenate lttng ust shared libraries name with their major version number.
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)
45 #endif /* _LTTNG_UST_TRACER_H */
This page took 0.056588 seconds and 4 git commands to generate.