2 * Copyright (C) 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_CHANNEL_INTERNAL_H
9 #define LTTNG_CHANNEL_INTERNAL_H
11 #include <common/macros.h>
12 #include <lttng/channel.h>
14 struct lttng_dynamic_buffer
;
15 struct lttng_buffer_view
;
17 struct lttng_channel_extended
{
18 uint64_t discarded_events
;
19 uint64_t lost_packets
;
20 uint64_t monitor_timer_interval
;
21 int64_t blocking_timeout
;
24 struct lttng_channel_comm
{
25 /* Includes terminator `\0`. */
33 uint32_t switch_timer_interval
;
34 uint32_t read_timer_interval
;
36 uint64_t tracefile_size
;
37 uint64_t tracefile_count
;
38 uint32_t live_timer_interval
;
41 uint64_t discarded_events
;
42 uint64_t lost_packets
;
43 uint64_t monitor_timer_interval
;
44 int64_t blocking_timeout
;
48 struct lttng_channel
*lttng_channel_create_internal(void);
51 struct lttng_channel
*lttng_channel_copy(const struct lttng_channel
*src
);
54 ssize_t
lttng_channel_create_from_buffer(const struct lttng_buffer_view
*view
,
55 struct lttng_channel
**event
);
58 int lttng_channel_serialize(struct lttng_channel
*channel
,
59 struct lttng_dynamic_buffer
*buf
);
62 void lttng_channel_set_default_extended_attr(struct lttng_domain
*domain
,
63 struct lttng_channel_extended
*extended_attr
);
66 enum lttng_error_code
lttng_channels_create_and_flatten_from_buffer(
67 const struct lttng_buffer_view
*view
,
69 struct lttng_channel
**channels
);
71 #endif /* LTTNG_CHANNEL_INTERNAL_H */
This page took 0.030535 seconds and 4 git commands to generate.