11#include <lttng/domain.h>
12#include <lttng/event.h>
13#include <lttng/lttng-export.h>
41#define LTTNG_CHANNEL_ATTR_PADDING1 (LTTNG_SYMBOL_NAME_LEN + 12)
176 uint32_t align_to_64;
182 char padding[LTTNG_CHANNEL_ATTR_PADDING1];
190#define LTTNG_CHANNEL_PADDING1 16
247 char padding[LTTNG_CHANNEL_PADDING1];
452 const char *channel_name);
592LTTNG_EXPORT
extern int
int lttng_channel_get_monitor_timer_interval(const struct lttng_channel *channel, uint64_t *period)
Sets *period to the monitor timer period (µs) property of the channel summary channel.
int lttng_enable_channel(struct lttng_handle *handle, struct lttng_channel *channel)
Creates or enables a channel summarized by channel within the recording session handle handle.
lttng_channel_allocation_policy
Buffer allocation policy of a channel.
Definition channel.h:28
enum lttng_error_code lttng_channel_get_allocation_policy(const struct lttng_channel *channel, enum lttng_channel_allocation_policy *policy)
Sets *policy to the buffer allocation policy property of the channel summary channel.
int lttng_disable_channel(struct lttng_handle *handle, const char *channel_name)
Disables the channel named channel_name within the recording session handle handle.
int lttng_channel_get_blocking_timeout(const struct lttng_channel *channel, int64_t *timeout)
Sets *timeout to the blocking timeout property of the channel summary channel.
int lttng_channel_get_lost_packet_count(struct lttng_channel *channel, uint64_t *count)
Sets *count to the number of discarded packets (sub-buffers) of the channel summarized by channel.
int lttng_channel_get_discarded_event_count(struct lttng_channel *channel, uint64_t *count)
Sets *count to the number of discarded event records of the channel summarized by channel.
enum lttng_error_code lttng_channel_set_allocation_policy(struct lttng_channel *channel, enum lttng_channel_allocation_policy policy)
Sets the buffer allocation policy property of the channel summary channel to policy.
void lttng_channel_destroy(struct lttng_channel *channel)
Destroys the channel summary channel.
int lttng_channel_set_blocking_timeout(struct lttng_channel *channel, int64_t timeout)
Sets the blocking timeout property of the channel summary channel to timeout.
struct lttng_channel * lttng_channel_create(struct lttng_domain *domain)
Creates and returns a channel summary, setting the members of its lttng_channel::attr member to defau...
lttng_event_output
Channel output type.
Definition event.h:384
int lttng_channel_set_monitor_timer_interval(struct lttng_channel *channel, uint64_t period)
Sets the monitor timer period property of the channel summary channel to period Âµs.
void lttng_channel_set_default_attr(struct lttng_domain *domain, struct lttng_channel_attr *attr)
Sets the members of attr to their default values considering the tracing domain summary domain.
@ LTTNG_CHANNEL_ALLOCATION_POLICY_PER_CHANNEL
Per-channel buffering
Definition channel.h:33
@ LTTNG_CHANNEL_ALLOCATION_POLICY_PER_CPU
Per-CPU buffering
Definition channel.h:30
lttng_error_code
General error codes.
Definition lttng-error.h:49
#define LTTNG_SYMBOL_NAME_LEN
Maximum symbol length.
Definition constant.h:39
int lttng_list_channels(struct lttng_handle *handle, struct lttng_channel **channels)
Sets *channels to the summaries of the channels of the recording session handle handle.
Attributes of a channel summary.
Definition channel.h:76
unsigned int live_timer_interval
Live timer period (µs), if applicable.
Definition channel.h:173
unsigned int switch_timer_interval
Switch timer period (µs), if applicable.
Definition channel.h:133
uint64_t tracefile_size
Maximum trace file size (bytes), or 0 for unlimited.
Definition channel.h:148
enum lttng_event_output output
Output type (Linux kernel channel).
Definition channel.h:139
unsigned int read_timer_interval
Read timer period (µs).
Definition channel.h:136
uint64_t num_subbuf
Sub-buffer count.
Definition channel.h:122
uint64_t subbuf_size
Sub-buffer size (bytes).
Definition channel.h:116
uint64_t tracefile_count
Maximum trace file count, or 0 for unlimited.
Definition channel.h:155
int overwrite
Event record loss mode.
Definition channel.h:109
Channel summary.
Definition channel.h:229
struct lttng_channel_attr attr
Other properties.
Definition channel.h:245
char name[LTTNG_SYMBOL_NAME_LEN]
Name.
Definition channel.h:231
uint32_t enabled
1 if this channel is enabled, or 0 otherwise.
Definition channel.h:242
Tracing domain summary.
Definition domain.h:100
Recording session handle.
Definition handle.h:44