Version 2.13.2
[lttng-modules.git] / include / lttng / tracer.h
... / ...
CommitLineData
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 <linux/types.h>
15#include <linux/limits.h>
16#include <linux/list.h>
17#include <linux/cache.h>
18#include <linux/timex.h>
19#include <linux/wait.h>
20#include <asm/atomic.h>
21#include <asm/local.h>
22
23#include <wrapper/trace-clock.h>
24#include <wrapper/compiler.h>
25#include <wrapper/vmalloc.h>
26#include <lttng/tracer-core.h>
27#include <lttng/events.h>
28
29#define LTTNG_MODULES_MAJOR_VERSION 2
30#define LTTNG_MODULES_MINOR_VERSION 13
31#define LTTNG_MODULES_PATCHLEVEL_VERSION 2
32#define LTTNG_MODULES_EXTRAVERSION ""
33
34#define LTTNG_VERSION_NAME "Nordicité"
35#define LTTNG_VERSION_DESCRIPTION "The product of a collaboration between Champ Libre and Boréale, this farmhouse IPA is brewed with Kveik yeast and Québec-grown barley, oats and juniper branches. The result is a remarkable fruity hazy golden IPA that offers a balanced touch of resinous and woodsy bitterness."
36
37#ifndef CHAR_BIT
38#define CHAR_BIT 8
39#endif
40
41/* Number of bytes to log with a read/write event */
42#define LTTNG_LOG_RW_SIZE 32L
43#define LTTNG_MAX_SMALL_SIZE 0xFFFFU
44
45#ifdef RING_BUFFER_ALIGN
46#define lttng_alignof(type) __alignof__(type)
47#else
48#define lttng_alignof(type) 1
49#endif
50
51/* Tracer properties */
52#define CTF_MAGIC_NUMBER 0xC1FC1FC1
53#define TSDL_MAGIC_NUMBER 0x75D11D57
54
55/* CTF specification version followed */
56#define CTF_SPEC_MAJOR 1
57#define CTF_SPEC_MINOR 8
58
59/*
60 * Number of milliseconds to retry before failing metadata writes on buffer full
61 * condition. (10 seconds)
62 */
63#define LTTNG_METADATA_TIMEOUT_MSEC 10000
64
65#define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
66#define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1)
67
68#endif /* _LTTNG_TRACER_H */
This page took 0.023363 seconds and 4 git commands to generate.