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
;
49 struct lttng_channel
*lttng_channel_create_internal(void);
52 struct lttng_channel
*lttng_channel_copy(const struct lttng_channel
*src
);
55 ssize_t
lttng_channel_create_from_buffer(const struct lttng_buffer_view
*view
,
56 struct lttng_channel
**event
);
59 int lttng_channel_serialize(struct lttng_channel
*channel
,
60 struct lttng_dynamic_buffer
*buf
);
63 void lttng_channel_set_default_extended_attr(struct lttng_domain
*domain
,
64 struct lttng_channel_extended
*extended_attr
);
67 enum lttng_error_code
lttng_channels_create_and_flatten_from_buffer(
68 const struct lttng_buffer_view
*view
,
70 struct lttng_channel
**channels
);
72 #endif /* LTTNG_CHANNEL_INTERNAL_H */
This page took 0.034277 seconds and 4 git commands to generate.