Update README.md for supported kernel
[lttng-modules.git] / lttng-tracer.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
2 #ifndef _LTTNG_TRACER_H
3 #define _LTTNG_TRACER_H
4
5 /*
6 * lttng-tracer.h
7 *
8 * This contains the definitions for the Linux Trace Toolkit Next
9 * Generation tracer.
10 *
11 * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 */
13
14 #include <stdarg.h>
15 #include <linux/types.h>
16 #include <linux/limits.h>
17 #include <linux/list.h>
18 #include <linux/cache.h>
19 #include <linux/timex.h>
20 #include <linux/wait.h>
21 #include <asm/atomic.h>
22 #include <asm/local.h>
23
24 #include <wrapper/trace-clock.h>
25 #include <lttng-tracer-core.h>
26 #include <lttng-events.h>
27
28 #define LTTNG_MODULES_MAJOR_VERSION 2
29 #define LTTNG_MODULES_MINOR_VERSION 12
30 #define LTTNG_MODULES_PATCHLEVEL_VERSION 0
31 #define LTTNG_MODULES_EXTRAVERSION "-rc1"
32
33 #define LTTNG_VERSION_NAME "(Ta) Meilleure"
34 #define LTTNG_VERSION_DESCRIPTION "Ta Meilleure is a Northeast IPA beer brewed by Lagabière. Translating to \"Your best one\", this beer gives out strong aromas of passion fruit, lemon, and peaches. Tastewise, expect a lot of fruit, a creamy texture, and a smooth lingering hop bitterness."
35
36 #ifndef CHAR_BIT
37 #define CHAR_BIT 8
38 #endif
39
40 /* Number of bytes to log with a read/write event */
41 #define LTTNG_LOG_RW_SIZE 32L
42 #define LTTNG_MAX_SMALL_SIZE 0xFFFFU
43
44 #ifdef RING_BUFFER_ALIGN
45 #define lttng_alignof(type) __alignof__(type)
46 #else
47 #define lttng_alignof(type) 1
48 #endif
49
50 /* Tracer properties */
51 #define CTF_MAGIC_NUMBER 0xC1FC1FC1
52 #define TSDL_MAGIC_NUMBER 0x75D11D57
53
54 /* CTF specification version followed */
55 #define CTF_SPEC_MAJOR 1
56 #define CTF_SPEC_MINOR 8
57
58 /*
59 * Number of milliseconds to retry before failing metadata writes on buffer full
60 * condition. (10 seconds)
61 */
62 #define LTTNG_METADATA_TIMEOUT_MSEC 10000
63
64 #define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
65 #define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1)
66
67 #define __LTTNG_COMPOUND_LITERAL(type, ...) (type[]) { __VA_ARGS__ }
68
69 #endif /* _LTTNG_TRACER_H */
This page took 0.030708 seconds and 4 git commands to generate.