LTTng control library C API
Loading...
Searching...
No Matches
channel-user.h
1/*
2 * Copyright (C) 2024 Philippe Proulx <eepp@efficios.com>
3 * Copyright (C) 2024 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_USER_H
10#define LTTNG_MAP_CHANNEL_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.h>
16#include <lttng/map/group-set.h>
17#include <lttng/map/group.h>
18
19#include <sys/types.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
55 const struct lttng_map_channel *channel,
56 enum lttng_map_channel_buffer_ownership *ownership_model);
57
117 const struct lttng_map_channel *channel, uid_t uid, struct lttng_map_group_set **groups);
118
174 const struct lttng_map_channel *channel, pid_t pid, struct lttng_map_group_set **groups);
175
202LTTNG_EXPORT extern enum lttng_map_channel_status
205
207
208#ifdef __cplusplus
209}
210#endif
211
212#endif /* LTTNG_MAP_CHANNEL_USER_H */
enum lttng_map_channel_status lttng_map_channel_user_get_dead_group_policy(const struct lttng_map_channel *channel, enum lttng_map_channel_dead_group_policy *policy)
Sets *policy to the dead group policy of the user space map channel channel.
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_status lttng_map_channel_user_get_group_by_uid(const struct lttng_map_channel *channel, uid_t uid, struct lttng_map_group_set **groups)
Sets *groups to the map groups of the user space map channel channel for the Unix user ID uid.
enum lttng_map_channel_status lttng_map_channel_user_get_group_by_pid(const struct lttng_map_channel *channel, pid_t pid, struct lttng_map_group_set **groups)
Sets *groups to the map groups of the user space map channel channel for the process ID pid.
enum lttng_map_channel_status lttng_map_channel_user_get_buffer_ownership(const struct lttng_map_channel *channel, enum lttng_map_channel_buffer_ownership *ownership_model)
Sets *ownership_model to the buffer ownership model of the user space map channel channel.
lttng_map_channel_buffer_ownership
Buffer ownership model of a user space map channel.
Definition channel-buffer-ownership.h:28
lttng_map_channel_status
Status code for map channel functions.
Definition channel.h:44
Map channel (opaque type).
Set of map groups (opaque type).