LTTng control library C API
Loading...
Searching...
No Matches
increment-map-value.h
1/*
2 * SPDX-FileCopyrightText: 2023 Philippe Proulx <pproulx@efficios.com>
3 * SPDX-FileCopyrightText: 2023 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#ifndef LTTNG_ACTION_INCREMENT_MAP_VALUE_H
9#define LTTNG_ACTION_INCREMENT_MAP_VALUE_H
10
11#include <lttng/action/action.h>
12#include <lttng/action/key-template.h>
13#include <lttng/lttng-export.h>
14#include <lttng/map/channel-type.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
48LTTNG_EXPORT extern struct lttng_action *lttng_action_increment_map_value_create(void);
49
82LTTNG_EXPORT extern enum lttng_action_status
84 const char *session_name);
85
119LTTNG_EXPORT extern enum lttng_action_status
121 const char **session_name);
122
155LTTNG_EXPORT extern enum lttng_action_status
157 const char *channel_name);
158
193LTTNG_EXPORT extern enum lttng_action_status
195 const char **channel_name);
196
231LTTNG_EXPORT extern enum lttng_action_status
233 enum lttng_map_channel_type type);
234
263LTTNG_EXPORT extern enum lttng_action_status
265 enum lttng_map_channel_type *type);
266
302LTTNG_EXPORT extern enum lttng_action_status
304 const struct lttng_key_template *key_template);
305
342LTTNG_EXPORT extern enum lttng_action_status
344 const struct lttng_key_template **key_template);
345
347
348#ifdef __cplusplus
349}
350#endif
351
352#endif /* LTTNG_ACTION_INCREMENT_MAP_VALUE_H */
lttng_map_channel_type
Type of a map channel.
Definition channel-type.h:25
enum lttng_action_status lttng_action_increment_map_value_get_target_channel_type(const struct lttng_action *action, enum lttng_map_channel_type *type)
Sets *type to the target map channel type of the “increment map value” trigger action action.
enum lttng_action_status lttng_action_increment_map_value_set_target_channel_type(struct lttng_action *action, enum lttng_map_channel_type type)
Sets the target map channel type of the “increment map value” trigger action action to type.
enum lttng_action_status lttng_action_increment_map_value_get_target_channel_name(const struct lttng_action *action, const char **channel_name)
Sets *channel_name to the target map channel name of the “increment map value” trigger action action.
enum lttng_action_status lttng_action_increment_map_value_set_target_channel_name(struct lttng_action *action, const char *channel_name)
Sets the target map channel name of the “increment map value” trigger action action to channel_name.
struct lttng_action * lttng_action_increment_map_value_create(void)
Creates an initial “increment map value” trigger action.
enum lttng_action_status lttng_action_increment_map_value_set_key_template(struct lttng_action *action, const struct lttng_key_template *key_template)
Sets the key template of the “increment map value” trigger action action to a copy of key_template.
enum lttng_action_status lttng_action_increment_map_value_get_target_session_name(const struct lttng_action *action, const char **session_name)
Sets *session_name to the target recording session name of the “increment map value” trigger action a...
enum lttng_action_status lttng_action_increment_map_value_get_key_template(const struct lttng_action *action, const struct lttng_key_template **key_template)
Sets *key_template to the key template of the “increment map value” trigger action action.
enum lttng_action_status lttng_action_increment_map_value_set_target_session_name(struct lttng_action *action, const char *session_name)
Sets the target recording session name of the “increment map value” trigger action action to session_...
lttng_action_status
Return type of trigger action API functions.
Definition action.h:61