LTTng control library C API
Loading...
Searching...
No Matches
domain.h
1/*
2 * SPDX-FileCopyrightText: 2014 David Goulet <dgoulet@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_DOMAIN_H
9#define LTTNG_DOMAIN_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
20#include <lttng/constant.h>
21#include <lttng/lttng-export.h>
22
30
33
36
39
42
45
48
49 /* MUST be last element of the manually-assigned section of the enum */
50 LTTNG_DOMAIN_NR,
51};
52
70
71/*
72 * The structures should be initialized to zero before use.
73 */
74#define LTTNG_DOMAIN_PADDING1 12
75#define LTTNG_DOMAIN_PADDING2 (LTTNG_SYMBOL_NAME_LEN + 32)
76
106
113
114 char padding[LTTNG_DOMAIN_PADDING1];
115
116 union {
117 pid_t pid;
118 char exec_name[LTTNG_NAME_MAX];
119 char padding[LTTNG_DOMAIN_PADDING2];
120 } attr;
121};
122
124
154LTTNG_EXPORT extern int lttng_list_domains(const char *session_name, struct lttng_domain **domains);
155
156#ifdef __cplusplus
157}
158#endif
159
160#endif /* LTTNG_DOMAIN_H */
lttng_domain_type
Tracing domain type (tracer type).
Definition domain.h:27
lttng_buffer_type
Buffering ownership model of an event record channel.
Definition domain.h:60
@ LTTNG_DOMAIN_LOG4J
Apache&#160;log4j&#160;1.x.
Definition domain.h:41
@ LTTNG_DOMAIN_UST
User space.
Definition domain.h:35
@ LTTNG_DOMAIN_NONE
None.
Definition domain.h:29
@ LTTNG_DOMAIN_PYTHON
Python logging.
Definition domain.h:47
@ LTTNG_DOMAIN_LOG4J2
Apache&#160;Log4j&#160;2.
Definition domain.h:44
@ LTTNG_DOMAIN_KERNEL
Linux kernel.
Definition domain.h:32
@ LTTNG_DOMAIN_JUL
java.util.logging (JUL).
Definition domain.h:38
@ LTTNG_BUFFER_GLOBAL
Global (Linux kernel) buffering.
Definition domain.h:68
@ LTTNG_BUFFER_PER_UID
Per-user buffering.
Definition domain.h:65
@ LTTNG_BUFFER_PER_PID
Per-process buffering.
Definition domain.h:62
#define LTTNG_NAME_MAX
Maximum name length.
Definition constant.h:54
int lttng_list_domains(const char *session_name, struct lttng_domain **domains)
Sets *domains to the summaries of the tracing domains which contain at least one event record channel...
Tracing domain summary.
Definition domain.h:103
enum lttng_domain_type type
Tracing domain type.
Definition domain.h:105
enum lttng_buffer_type buf_type
Buffer ownership model of all the event record channels associated to this tracing domain.
Definition domain.h:112