Update writeback instrumentation for kernel >= 5.7.0
[lttng-modules.git] / lttng-tracer.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
a90917c3
MD
2#ifndef _LTTNG_TRACER_H
3#define _LTTNG_TRACER_H
17baffe2 4
1c8284eb 5/*
a90917c3 6 * lttng-tracer.h
17baffe2 7 *
886d51a3
MD
8 * This contains the definitions for the Linux Trace Toolkit Next
9 * Generation tracer.
1c8284eb 10 *
886d51a3 11 * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
1c8284eb
MD
12 */
13
1c8284eb
MD
14#include <stdarg.h>
15#include <linux/types.h>
16#include <linux/limits.h>
17#include <linux/list.h>
18#include <linux/cache.h>
1c8284eb
MD
19#include <linux/timex.h>
20#include <linux/wait.h>
1c8284eb
MD
21#include <asm/atomic.h>
22#include <asm/local.h>
23
bbd023d6
MD
24#include <wrapper/trace-clock.h>
25#include <wrapper/compiler.h>
1b25fe58 26#include <wrapper/vmalloc.h>
bbd023d6
MD
27#include <lttng-tracer-core.h>
28#include <lttng-events.h>
1c8284eb 29
c6c9e10f 30#define LTTNG_MODULES_MAJOR_VERSION 2
aca13e38 31#define LTTNG_MODULES_MINOR_VERSION 12
7cb1d0ee 32#define LTTNG_MODULES_PATCHLEVEL_VERSION 0
ada81c8b 33#define LTTNG_MODULES_EXTRAVERSION "-rc1"
80c16bcf 34
ada81c8b
MD
35#define LTTNG_VERSION_NAME "(Ta) Meilleure"
36#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."
d117fe45 37
c099397a
MD
38#ifndef CHAR_BIT
39#define CHAR_BIT 8
40#endif
41
1c8284eb 42/* Number of bytes to log with a read/write event */
a90917c3
MD
43#define LTTNG_LOG_RW_SIZE 32L
44#define LTTNG_MAX_SMALL_SIZE 0xFFFFU
1c8284eb 45
d793d5e1 46#ifdef RING_BUFFER_ALIGN
a90917c3 47#define lttng_alignof(type) __alignof__(type)
c099397a 48#else
a90917c3 49#define lttng_alignof(type) 1
d793d5e1 50#endif
1c8284eb 51
1c8284eb 52/* Tracer properties */
1c25284c 53#define CTF_MAGIC_NUMBER 0xC1FC1FC1
881833e3 54#define TSDL_MAGIC_NUMBER 0x75D11D57
4173df96
MD
55
56/* CTF specification version followed */
57#define CTF_SPEC_MAJOR 1
58#define CTF_SPEC_MINOR 8
59
c099397a
MD
60/*
61 * Number of milliseconds to retry before failing metadata writes on buffer full
62 * condition. (10 seconds)
63 */
64#define LTTNG_METADATA_TIMEOUT_MSEC 10000
65
a90917c3
MD
66#define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
67#define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1)
64c796d8 68
a90917c3 69#endif /* _LTTNG_TRACER_H */
This page took 0.043214 seconds and 4 git commands to generate.