11#include <lttng/domain.h>
12#include <lttng/event.h>
13#include <lttng/lttng-error.h>
14#include <lttng/lttng-export.h>
75#define LTTNG_CHANNEL_ATTR_PADDING1 (LTTNG_SYMBOL_NAME_LEN + 12)
210 uint32_t align_to_64;
216 char padding[LTTNG_CHANNEL_ATTR_PADDING1];
224#define LTTNG_CHANNEL_PADDING1 16
286 char padding[LTTNG_CHANNEL_PADDING1];
491 const char *channel_name);
631LTTNG_EXPORT
extern int
999 uint64_t *older_than_us);
1029 uint64_t older_than_us);
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 event record channel summary channel.
lttng_channel_preallocation_policy
Buffer preallocation policy of an event record channel.
Definition channel.h:45
int lttng_enable_channel(struct lttng_handle *handle, struct lttng_channel *channel)
Creates or enables an event record channel summarized by channel within the recording session handle ...
enum lttng_channel_status lttng_channel_get_watchdog_timer_interval(const struct lttng_channel *channel, uint64_t *period)
Sets *period to the watchdog timer period (µs) property of the event record channel summary channel.
lttng_channel_allocation_policy
Buffer allocation policy of an event record channel.
Definition channel.h:30
enum lttng_channel_status lttng_channel_set_preallocation_policy(struct lttng_channel *channel, enum lttng_channel_preallocation_policy policy)
Sets the buffer preallocation policy property of the event record channel summary channel to policy.
enum lttng_channel_status lttng_channel_set_automatic_memory_reclamation_policy(struct lttng_channel *channel, uint64_t older_than_us)
Sets the automatic memory reclaim policy of the event record channel summary channel to reclaim buffe...
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 event record channel summary channel.
int lttng_channel_get_lost_packet_count(const struct lttng_channel *channel, uint64_t *count)
Sets *count to the number of discarded packets (sub-buffers) of the event record channel summarized b...
int lttng_disable_channel(struct lttng_handle *handle, const char *channel_name)
Disables the event record channel named channel_name within the recording session handle handle.
lttng_channel_status
Status code for event record channel property accessors.
Definition channel.h:59
int lttng_channel_get_blocking_timeout(const struct lttng_channel *channel, int64_t *timeout)
Sets *timeout to the blocking timeout property of the event record channel summary channel.
enum lttng_channel_status lttng_channel_get_automatic_memory_reclamation_policy(const struct lttng_channel *channel, uint64_t *older_than_us)
Sets *older_than_us to the age threshold (µs) of the automatic memory reclaim of the event record cha...
enum lttng_channel_status lttng_channel_get_preallocation_policy(const struct lttng_channel *channel, enum lttng_channel_preallocation_policy *policy)
Sets *policy to the buffer preallocation policy of the event record channel summary channel.
int lttng_channel_get_discarded_event_count(const struct lttng_channel *channel, uint64_t *count)
Sets *count to the number of discarded event records of the event record channel summarized by channe...
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 event record channel summary channel to policy.
void lttng_channel_destroy(struct lttng_channel *channel)
Destroys the event record channel summary channel.
int lttng_channel_set_blocking_timeout(struct lttng_channel *channel, int64_t timeout)
Sets the blocking timeout property of the event record channel summary channel to timeout.
struct lttng_channel * lttng_channel_create(struct lttng_domain *domain)
Creates and returns an event record channel summary, setting the members of its lttng_channel::attr m...
lttng_event_output
Event record channel output type.
Definition event.h:384
enum lttng_channel_status lttng_channel_set_watchdog_timer_interval(struct lttng_channel *channel, uint64_t period)
Sets the watchdog timer period property of the event record channel summary channel to period Âµs.
int lttng_channel_set_monitor_timer_interval(struct lttng_channel *channel, uint64_t period)
Sets the monitor timer period property of the event record 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_PREALLOCATION_POLICY_PREALLOCATE
Preallocate sub-buffers.
Definition channel.h:47
@ LTTNG_CHANNEL_PREALLOCATION_POLICY_ON_DEMAND
Allocate sub-buffers as needed.
Definition channel.h:50
@ LTTNG_CHANNEL_ALLOCATION_POLICY_PER_CHANNEL
Per-event-record-channel buffering
Definition channel.h:35
@ LTTNG_CHANNEL_ALLOCATION_POLICY_PER_CPU
Per-CPU buffering
Definition channel.h:32
@ LTTNG_CHANNEL_STATUS_UNSET
Property is unset.
Definition channel.h:64
@ LTTNG_CHANNEL_STATUS_INVALID
Unsatisfied precondition.
Definition channel.h:67
@ LTTNG_CHANNEL_STATUS_OK
Success.
Definition channel.h:61
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(const struct lttng_handle *handle, struct lttng_channel **channels)
Sets *channels to the summaries of the event record channels of the recording session handle handle.
Attributes of an event record channel summary.
Definition channel.h:110
unsigned int live_timer_interval
Live timer period (µs), if applicable.
Definition channel.h:207
unsigned int switch_timer_interval
Switch timer period (µs), if applicable.
Definition channel.h:167
uint64_t tracefile_size
Maximum trace file size (bytes), or 0 for unlimited.
Definition channel.h:182
enum lttng_event_output output
Output type (Linux kernel event record channel).
Definition channel.h:173
unsigned int read_timer_interval
Read timer period (µs).
Definition channel.h:170
uint64_t num_subbuf
Sub-buffer count.
Definition channel.h:156
uint64_t subbuf_size
Sub-buffer size (bytes).
Definition channel.h:150
uint64_t tracefile_count
Maximum trace file count, or 0 for unlimited.
Definition channel.h:189
int overwrite
Event record loss mode.
Definition channel.h:143
Event record channel summary.
Definition channel.h:268
struct lttng_channel_attr attr
Other properties.
Definition channel.h:284
char name[LTTNG_SYMBOL_NAME_LEN]
Name.
Definition channel.h:270
uint32_t enabled
1 if this event record channel is enabled, or 0 otherwise.
Definition channel.h:281
Tracing domain summary.
Definition domain.h:103
Recording session handle.
Definition handle.h:44