Move the getcpu plugin implementation to liblttn-ust-common
[lttng-ust.git] / src / lib / lttng-ust / lttng-tracer.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * This contains the definitions for the Linux Trace Toolkit tracer.
7 *
8 * Ported to userspace by Pierre-Marc Fournier.
9 */
10
11 #ifndef _LTTNG_TRACER_H
12 #define _LTTNG_TRACER_H
13
14 #include <stdarg.h>
15 #include <stdint.h>
16 #include <lttng/ust-events.h>
17 #include "lttng-tracer-core.h"
18
19 /* Tracer properties */
20 #define CTF_MAGIC_NUMBER 0xC1FC1FC1
21 #define TSDL_MAGIC_NUMBER 0x75D11D57
22
23 /* CTF specification version followed */
24 #define CTF_SPEC_MAJOR 1
25 #define CTF_SPEC_MINOR 8
26
27 #define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END
28 #define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1)
29
30 /*
31 * LTTng client type enumeration. Used by the consumer to map the
32 * callbacks from its own address space.
33 */
34 enum lttng_client_types {
35 LTTNG_CLIENT_METADATA = 0,
36 LTTNG_CLIENT_DISCARD = 1,
37 LTTNG_CLIENT_OVERWRITE = 2,
38 LTTNG_CLIENT_DISCARD_RT = 3,
39 LTTNG_CLIENT_OVERWRITE_RT = 4,
40 LTTNG_NR_CLIENT_TYPES,
41 };
42
43 #endif /* _LTTNG_TRACER_H */
This page took 0.029125 seconds and 4 git commands to generate.