library mass rename: add lttng- prefix
[lttng-ust.git] / include / lttng / ust-tracer.h
1 #ifndef _LTTNG_TRACER_H
2 #define _LTTNG_TRACER_H
3
4 /*
5 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 *
7 * This contains the core definitions for the Linux Trace Toolkit.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; version 2.1 of
12 * the License.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #include <lttng/config.h>
25
26 #ifndef HAVE_EFFICIENT_UNALIGNED_ACCESS
27 /* Align data on its natural alignment */
28 #define RING_BUFFER_ALIGN
29 #endif
30
31 #define LTTNG_UST_VERSION 0
32 #define LTTNG_UST_PATCHLEVEL 9
33 #define LTTNG_UST_SUBLEVEL 1
34
35 #ifndef CHAR_BIT
36 #define CHAR_BIT 8
37 #endif
38
39 #ifdef RING_BUFFER_ALIGN
40 #define lttng_alignof(type) __alignof__(type)
41 #else
42 #define lttng_alignof(type) 1
43 #endif
44
45 #define lttng_is_signed_type(type) (((type)(-1)) < 0)
46
47 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.030143 seconds and 4 git commands to generate.