Commit | Line | Data |
---|---|---|
a90917c3 MD |
1 | #ifndef _LTTNG_TRACER_H |
2 | #define _LTTNG_TRACER_H | |
17baffe2 | 3 | |
1c8284eb | 4 | /* |
a90917c3 | 5 | * lttng-tracer.h |
17baffe2 | 6 | * |
886d51a3 MD |
7 | * This contains the definitions for the Linux Trace Toolkit Next |
8 | * Generation tracer. | |
1c8284eb | 9 | * |
886d51a3 | 10 | * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
1c8284eb | 11 | * |
886d51a3 MD |
12 | * This library is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU Lesser General Public | |
14 | * License as published by the Free Software Foundation; only | |
15 | * version 2.1 of the License. | |
16 | * | |
17 | * This library is distributed in the hope that it will be useful, | |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 | * Lesser General Public License for more details. | |
21 | * | |
22 | * You should have received a copy of the GNU Lesser General Public | |
23 | * License along with this library; if not, write to the Free Software | |
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
1c8284eb MD |
25 | */ |
26 | ||
1c8284eb MD |
27 | #include <stdarg.h> |
28 | #include <linux/types.h> | |
29 | #include <linux/limits.h> | |
30 | #include <linux/list.h> | |
31 | #include <linux/cache.h> | |
1c8284eb MD |
32 | #include <linux/timex.h> |
33 | #include <linux/wait.h> | |
1c8284eb MD |
34 | #include <asm/atomic.h> |
35 | #include <asm/local.h> | |
36 | ||
f3bc08c5 | 37 | #include "wrapper/trace-clock.h" |
40d6e366 | 38 | #include "wrapper/compiler.h" |
a90917c3 MD |
39 | #include "lttng-tracer-core.h" |
40 | #include "lttng-events.h" | |
1c8284eb | 41 | |
c6c9e10f | 42 | #define LTTNG_MODULES_MAJOR_VERSION 2 |
f3586d94 | 43 | #define LTTNG_MODULES_MINOR_VERSION 7 |
7cb1d0ee | 44 | #define LTTNG_MODULES_PATCHLEVEL_VERSION 0 |
e997e7f6 | 45 | #define LTTNG_MODULES_EXTRAVERSION "-rc2" |
80c16bcf | 46 | |
f3586d94 | 47 | #define LTTNG_VERSION_NAME "Herbe à Détourne" |
d117fe45 | 48 | #define LTTNG_VERSION_DESCRIPTION \ |
f3586d94 | 49 | "Brewed with unrestrained amounts of Citra hop, the Herbe à Détourne is a fantastic New World Tripel brewed by \"Dieu du Ciel!\". Aromas of mango, cantaloupe melon and passion fruit, combined with a controlled bitter finish, unite in making this smooth golden-orange beer stand apart." |
d117fe45 | 50 | |
c099397a MD |
51 | #ifndef CHAR_BIT |
52 | #define CHAR_BIT 8 | |
53 | #endif | |
54 | ||
1c8284eb | 55 | /* Number of bytes to log with a read/write event */ |
a90917c3 MD |
56 | #define LTTNG_LOG_RW_SIZE 32L |
57 | #define LTTNG_MAX_SMALL_SIZE 0xFFFFU | |
1c8284eb | 58 | |
d793d5e1 | 59 | #ifdef RING_BUFFER_ALIGN |
a90917c3 | 60 | #define lttng_alignof(type) __alignof__(type) |
c099397a | 61 | #else |
a90917c3 | 62 | #define lttng_alignof(type) 1 |
d793d5e1 | 63 | #endif |
1c8284eb | 64 | |
1c8284eb | 65 | /* Tracer properties */ |
1c25284c | 66 | #define CTF_MAGIC_NUMBER 0xC1FC1FC1 |
881833e3 | 67 | #define TSDL_MAGIC_NUMBER 0x75D11D57 |
4173df96 MD |
68 | |
69 | /* CTF specification version followed */ | |
70 | #define CTF_SPEC_MAJOR 1 | |
71 | #define CTF_SPEC_MINOR 8 | |
72 | ||
c099397a MD |
73 | /* |
74 | * Number of milliseconds to retry before failing metadata writes on buffer full | |
75 | * condition. (10 seconds) | |
76 | */ | |
77 | #define LTTNG_METADATA_TIMEOUT_MSEC 10000 | |
78 | ||
a90917c3 MD |
79 | #define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END |
80 | #define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1) | |
64c796d8 | 81 | |
a90917c3 | 82 | #endif /* _LTTNG_TRACER_H */ |