Commit | Line | Data |
---|---|---|
1ea11eab MD |
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 | #ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS | |
25 | /* Align data on its natural alignment */ | |
26 | #define RING_BUFFER_ALIGN | |
27 | #endif | |
28 | ||
29 | #define LTTNG_UST_VERSION 0 | |
30 | #define LTTNG_UST_PATCHLEVEL 9 | |
31 | #define LTTNG_UST_SUBLEVEL 1 | |
32 | ||
33 | #ifndef CHAR_BIT | |
34 | #define CHAR_BIT 8 | |
35 | #endif | |
36 | ||
37 | #ifdef RING_BUFFER_ALIGN | |
38 | #define lttng_alignof(type) __alignof__(type) | |
39 | #else | |
40 | #define lttng_alignof(type) 1 | |
41 | #endif | |
42 | ||
43 | #define lttng_is_signed_type(type) (((type)(-1)) < 0) | |
44 | ||
45 | #endif /* _LTTNG_TRACER_CORE_H */ |