include: implement REUSE with SPDX identifiers
[lttng-ust.git] / include / lttng / ust-tracer.h
CommitLineData
1c196845
MJ
1// SPDX-FileCopyrightText: 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: MIT
4
1ea11eab 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 17/*
74d65852
MD
18 * On architectures without efficient unaligned accesses, the layout of
19 * the ringbuffer's content respects the natural alignment of the
88292c33
MD
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.
5f796aec 26 */
2eba8e39 27#ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
5f796aec 28#define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
1ea11eab
MD
29#endif
30
5f796aec 31#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
dc325c1d 32#define lttng_ust_rb_alignof(type) __alignof__(type)
1ea11eab 33#else
dc325c1d 34#define lttng_ust_rb_alignof(type) 1
1ea11eab
MD
35#endif
36
3d3dc207
MJ
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
7dd08bec 45#endif /* _LTTNG_UST_TRACER_H */
This page took 0.037899 seconds and 4 git commands to generate.