LTTng control library C API
Loading...
Searching...
No Matches
buffer-usage.h
1/*
2 * SPDX-FileCopyrightText: 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_CONDITION_BUFFER_USAGE_H
9#define LTTNG_CONDITION_BUFFER_USAGE_H
10
11#include <lttng/condition/condition.h>
12#include <lttng/condition/evaluation.h>
13#include <lttng/domain.h>
14#include <lttng/lttng-export.h>
15
16#include <stdint.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
60
94
133LTTNG_EXPORT extern enum lttng_condition_status
135 double *threshold);
136
171LTTNG_EXPORT extern enum lttng_condition_status
173 double threshold);
174
213LTTNG_EXPORT extern enum lttng_condition_status
215 uint64_t *threshold);
216
250LTTNG_EXPORT extern enum lttng_condition_status
251lttng_condition_buffer_usage_set_threshold(struct lttng_condition *condition, uint64_t threshold);
252
292LTTNG_EXPORT extern enum lttng_condition_status
294 const char **session_name);
295
325LTTNG_EXPORT extern enum lttng_condition_status
327 const char *session_name);
328
368LTTNG_EXPORT extern enum lttng_condition_status
370 const char **channel_name);
371
401LTTNG_EXPORT extern enum lttng_condition_status
403 const char *channel_name);
404
443LTTNG_EXPORT extern enum lttng_condition_status
445 enum lttng_domain_type *domain);
446
476LTTNG_EXPORT extern enum lttng_condition_status
478 enum lttng_domain_type domain);
479
513LTTNG_EXPORT extern enum lttng_evaluation_status
515 double *usage);
516
550LTTNG_EXPORT extern enum lttng_evaluation_status
551lttng_evaluation_buffer_usage_get_usage(const struct lttng_evaluation *evaluation, uint64_t *usage);
552
554
555#ifdef __cplusplus
556}
557#endif
558
559#endif /* LTTNG_CONDITION_BUFFER_USAGE_H */
lttng_domain_type
Tracing domain type (tracer type).
Definition domain.h:27
enum lttng_condition_status lttng_condition_buffer_usage_get_channel_name(const struct lttng_condition *condition, const char **channel_name)
Sets *channel_name to the target channel name of the “channel buffer usage becomes greater/less than”...
enum lttng_condition_status lttng_condition_buffer_usage_get_session_name(const struct lttng_condition *condition, const char **session_name)
Sets *session_name to the target recording session name of the “channel buffer usage becomes greater/...
enum lttng_condition_status lttng_condition_buffer_usage_set_channel_name(struct lttng_condition *condition, const char *channel_name)
Sets the target channel name of the “channel buffer usage becomes greater/less than” trigger conditio...
struct lttng_condition * lttng_condition_buffer_usage_high_create(void)
Creates an initial “channel buffer usage becomes greater than” trigger condition to execute an action...
enum lttng_condition_status lttng_condition_buffer_usage_get_domain_type(const struct lttng_condition *condition, enum lttng_domain_type *domain)
Sets *domain to the target tracing domain of the “channel buffer usage becomes greater/less than” tri...
enum lttng_evaluation_status lttng_evaluation_buffer_usage_get_usage_ratio(const struct lttng_evaluation *evaluation, double *usage)
Sets *usage to the captured channel buffer usage ratio of the “channel buffer usage becomes greater/l...
enum lttng_condition_status lttng_condition_buffer_usage_get_threshold_ratio(const struct lttng_condition *condition, double *threshold)
Sets *threshold to the channel buffer usage ratio threshold of the “channel buffer usage becomes grea...
enum lttng_evaluation_status lttng_evaluation_buffer_usage_get_usage(const struct lttng_evaluation *evaluation, uint64_t *usage)
Sets *usage to the captured channel buffer usage size of the “channel buffer usage becomes greater/le...
struct lttng_condition * lttng_condition_buffer_usage_low_create(void)
Creates an initial “channel buffer usage becomes less than” trigger condition to execute an action wh...
enum lttng_condition_status lttng_condition_buffer_usage_set_session_name(struct lttng_condition *condition, const char *session_name)
Sets the target recording session name of the “channel buffer usage becomes greater/less than” trigge...
enum lttng_condition_status lttng_condition_buffer_usage_get_threshold(const struct lttng_condition *condition, uint64_t *threshold)
Sets *threshold to the channel buffer usage size (bytes) threshold of the “channel buffer usage becom...
enum lttng_condition_status lttng_condition_buffer_usage_set_threshold_ratio(struct lttng_condition *condition, double threshold)
Sets the channel buffer usage ratio threshold of the “channel buffer usage becomes greater/less than”...
enum lttng_condition_status lttng_condition_buffer_usage_set_domain_type(struct lttng_condition *condition, enum lttng_domain_type domain)
Sets the target tracing domain of the “channel buffer usage becomes greater/less than” trigger condit...
enum lttng_condition_status lttng_condition_buffer_usage_set_threshold(struct lttng_condition *condition, uint64_t threshold)
Sets the channel buffer usage size threshold of the “channel buffer usage becomes greater/less than” ...
lttng_condition_status
Return type of trigger condition API functions.
Definition condition.h:64
lttng_evaluation_status
Return type of trigger condition evaluation API functions.
Definition evaluation.h:35
Trigger condition (opaque type).
Trigger condition evaluation (opaque type).