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
49
67
68/*
69 * The structures should be initialized to zero before use.
70 */
71#define LTTNG_DOMAIN_PADDING1 12
72#define LTTNG_DOMAIN_PADDING2 (LTTNG_SYMBOL_NAME_LEN + 32)
73
103
110
111 char padding[LTTNG_DOMAIN_PADDING1];
112
113 union {
114 pid_t pid;
115 char exec_name[LTTNG_NAME_MAX];
116 char padding[LTTNG_DOMAIN_PADDING2];
117 } attr;
118};
119
121
151LTTNG_EXPORT extern int lttng_list_domains(const char *session_name, struct lttng_domain **domains);
152
153#ifdef __cplusplus
154}
155#endif
156
157#endif /* LTTNG_DOMAIN_H */
lttng_domain_type
Tracing domain type (tracer type).
Definition domain.h:27
lttng_buffer_type
Buffering ownership model of a channel.
Definition domain.h:57
@ 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:65
@ LTTNG_BUFFER_PER_UID
Per-user buffering.
Definition domain.h:62
@ LTTNG_BUFFER_PER_PID
Per-process buffering.
Definition domain.h:59
#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 channel within the r...
Tracing domain summary.
Definition domain.h:100
enum lttng_domain_type type
Tracing domain type.
Definition domain.h:102
enum lttng_buffer_type buf_type
Buffer ownership model of all the channels associated to this tracing domain.
Definition domain.h:109