| 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 | #include "compat.h" |
| 19 | |
| 20 | /* Tracer properties */ |
| 21 | #define CTF_MAGIC_NUMBER 0xC1FC1FC1 |
| 22 | #define TSDL_MAGIC_NUMBER 0x75D11D57 |
| 23 | |
| 24 | /* CTF specification version followed */ |
| 25 | #define CTF_SPEC_MAJOR 1 |
| 26 | #define CTF_SPEC_MINOR 8 |
| 27 | |
| 28 | /* |
| 29 | * Number of milliseconds to retry before failing metadata writes on buffer full |
| 30 | * condition. (10 seconds) |
| 31 | */ |
| 32 | #define LTTNG_METADATA_TIMEOUT_MSEC 10000 |
| 33 | |
| 34 | #define LTTNG_RFLAG_EXTENDED RING_BUFFER_RFLAG_END |
| 35 | #define LTTNG_RFLAG_END (LTTNG_RFLAG_EXTENDED << 1) |
| 36 | |
| 37 | #endif /* _LTTNG_TRACER_H */ |