Resync with kernel LTTng headers
[lttng-ust.git] / libust / ltt-tracer.h
CommitLineData
4fbf9cd1
MD
1#ifndef _LTT_TRACER_H
2#define _LTT_TRACER_H
3
4/*
5 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 *
7 * This contains the definitions for the Linux Trace Toolkit tracer.
8 *
9 * Ported to userspace by Pierre-Marc Fournier.
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; version 2.1 of
14 * the License.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25
26#include <stdarg.h>
27#include <stdint.h>
28#include <ust/core.h>
29#include <ust/compat.h>
30#include "ltt-tracer-core.h"
31#include "ltt-events.h"
32
33#define LTTNG_VERSION 0
34#define LTTNG_PATCHLEVEL 9
35#define LTTNG_SUBLEVEL 1
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 LTT_LOG_RW_SIZE 32L
43#define LTT_MAX_SMALL_SIZE 0xFFFFU
44
45#ifdef RING_BUFFER_ALIGN
46#define ltt_alignof(type) __alignof__(type)
47#else
48#define ltt_alignof(type) 1
49#endif
50
51/* Tracer properties */
52#define CTF_MAGIC_NUMBER 0xC1FC1FC1
53#define TSDL_MAGIC_NUMBER 0x75D11D57
54#define CTF_VERSION_MAJOR 0
55#define CTF_VERSION_MINOR 1
56
57/*
58 * Number of milliseconds to retry before failing metadata writes on buffer full
59 * condition. (10 seconds)
60 */
61#define LTTNG_METADATA_TIMEOUT_MSEC 10000
62
63#define LTT_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
64#define LTT_RFLAG_END (LTT_RFLAG_EXTENDED << 1)
65
66#endif /* _LTT_TRACER_H */
This page took 0.026437 seconds and 4 git commands to generate.