Namespace 'lttng_alignof' to 'lttng_ust_rb_alignof'
[lttng-ust.git] / include / lttng / ust-tracer.h
... / ...
CommitLineData
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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 * 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 */
22#ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
23#define LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
24#endif
25
26#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
27#define lttng_ust_rb_alignof(type) __alignof__(type)
28#else
29#define lttng_ust_rb_alignof(type) 1
30#endif
31
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
40#endif /* _LTTNG_UST_TRACER_H */
This page took 0.022251 seconds and 4 git commands to generate.