c3e1230635558fad9df00c711b7f6d7c5b957616
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>
13 #include <lttng/lttng-error.h>
15 struct lttng_dynamic_buffer
;
16 struct lttng_buffer_view
;
18 struct lttng_channel_extended
{
19 uint64_t discarded_events
;
20 uint64_t lost_packets
;
21 uint64_t monitor_timer_interval
;
22 int64_t blocking_timeout
;
25 struct lttng_channel_comm
{
26 /* Includes terminator `\0`. */
34 uint32_t switch_timer_interval
;
35 uint32_t read_timer_interval
;
37 uint64_t tracefile_size
;
38 uint64_t tracefile_count
;
39 uint32_t live_timer_interval
;
42 uint64_t discarded_events
;
43 uint64_t lost_packets
;
44 uint64_t monitor_timer_interval
;
45 int64_t blocking_timeout
;
48 struct lttng_channel
*lttng_channel_create_internal(void);
50 struct lttng_channel
*lttng_channel_copy(const struct lttng_channel
*src
);
52 ssize_t
lttng_channel_create_from_buffer(const struct lttng_buffer_view
*view
,
53 struct lttng_channel
**event
);
55 int lttng_channel_serialize(struct lttng_channel
*channel
,
56 struct lttng_dynamic_buffer
*buf
);
58 void lttng_channel_set_default_extended_attr(struct lttng_domain
*domain
,
59 struct lttng_channel_extended
*extended_attr
);
61 enum lttng_error_code
lttng_channels_create_and_flatten_from_buffer(
62 const struct lttng_buffer_view
*view
,
64 struct lttng_channel
**channels
);
66 #endif /* LTTNG_CHANNEL_INTERNAL_H */
This page took 0.030772 seconds and 4 git commands to generate.