LTTng control library C API
Loading...
Searching...
No Matches
channel-descriptor-user.h
1/*
2 * Copyright (C) 2023 Philippe Proulx <eepp@efficios.com>
3 * Copyright (C) 2023 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only
6 *
7 */
8
9#ifndef LTTNG_MAP_CHANNEL_DESCRIPTOR_USER_H
10#define LTTNG_MAP_CHANNEL_DESCRIPTOR_USER_H
11
12#include <lttng/lttng-export.h>
13#include <lttng/map/channel-buffer-ownership.h>
14#include <lttng/map/channel-dead-group-policy.h>
15#include <lttng/map/channel-descriptor.h>
16#include <lttng/map/value-type.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
96LTTNG_EXPORT extern struct lttng_map_channel_descriptor *
98 enum lttng_map_value_type value_type,
99 enum lttng_map_channel_buffer_ownership ownership_model);
100
126LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
128 const struct lttng_map_channel_descriptor *descriptor,
129 enum lttng_map_channel_buffer_ownership *ownership_model);
130
167LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
169 struct lttng_map_channel_descriptor *descriptor,
171
202LTTNG_EXPORT extern enum lttng_map_channel_descriptor_status
204 const struct lttng_map_channel_descriptor *descriptor,
206
208
209#ifdef __cplusplus
210}
211#endif
212
213#endif /* LTTNG_MAP_CHANNEL_DESCRIPTOR_USER_H */
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_user_get_buffer_ownership(const struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_buffer_ownership *ownership_model)
Sets *ownership_model to the buffer ownership model of the user space map channel described by descri...
struct lttng_map_channel_descriptor * lttng_map_channel_descriptor_user_string_key_scalar_value_create(enum lttng_map_value_type value_type, enum lttng_map_channel_buffer_ownership ownership_model)
Creates a descriptor of a user space map channel whose maps have string keys and scalar values.
lttng_map_channel_dead_group_policy
Dead group policy of a user space map channel with the per-process buffer ownership model.
Definition channel-dead-group-policy.h:30
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_user_set_dead_group_policy(struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_dead_group_policy policy)
Sets the dead group policy property of the user space map channel described by descriptor to policy.
enum lttng_map_channel_descriptor_status lttng_map_channel_descriptor_user_get_dead_group_policy(const struct lttng_map_channel_descriptor *descriptor, enum lttng_map_channel_dead_group_policy *policy)
Sets *policy to the dead group policy property of the user space map channel described by descriptor.
lttng_map_channel_buffer_ownership
Buffer ownership model of a user space map channel.
Definition channel-buffer-ownership.h:28
lttng_map_channel_descriptor_status
Status code for map channel descriptor property accessors.
Definition channel-descriptor.h:40
lttng_map_value_type
Type of the values of a map.
Definition value-type.h:25
Map channel descriptor (opaque type).