![]() |
LTTng control library C API
|
Attributes of an event record channel summary. More...
#include <channel.h>
Data Fields | |
| unsigned int | live_timer_interval |
| Live timer period (µs), if applicable. | |
| uint64_t | num_subbuf |
| Sub-buffer count. | |
| enum lttng_event_output | output |
| Output type (Linux kernel event record channel). | |
| int | overwrite |
| Event record loss mode. | |
| unsigned int | read_timer_interval |
| Read timer period (µs). | |
| uint64_t | subbuf_size |
| Sub-buffer size (bytes). | |
| unsigned int | switch_timer_interval |
| Switch timer period (µs), if applicable. | |
| uint64_t | tracefile_count |
| Maximum trace file count, or 0 for unlimited. | |
| uint64_t | tracefile_size |
| Maximum trace file size (bytes), or 0 for unlimited. | |
Attributes of an event record channel summary.
The lttng_channel::attr member is an instance of such a structure.
lttng_channel_set_default_attr() sets the members of such a structure to their default values given a specific tracing domain summary.
A valid lttng_channel_attr structure satisfies the following constraints:
| Member | Constraints |
|---|---|
| lttng_channel_attr::overwrite | 0, 1, or -1 |
| lttng_channel_attr::subbuf_size |
|
| lttng_channel_attr::num_subbuf |
|
| unsigned int lttng_channel_attr::live_timer_interval |
Live timer period (µs), if applicable.
You may not set this member: use the live_timer_period parameter of lttng_session_descriptor_live_network_create() when you create the descriptor of a live recording session to contain the event record channel to create.
Only available if the recording session which owns this event record channel is in live mode.
| int lttng_channel_attr::overwrite |
One of:
The event record loss mode of the event record channel is discard.
The event record loss mode of the event record channel is overwrite.
The event record loss mode of the event record channel is the default value of its recording session:
Overwrite mode
| unsigned int lttng_channel_attr::switch_timer_interval |
Switch timer period (µs), if applicable.
Only available if the recording session which owns this event record channel is not in live mode.