LTTng control library C API
Loading...
Searching...
No Matches
event-rule-matches.h
1/*
2 * SPDX-FileCopyrightText: 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_CONDITION_EVENT_RULE_MATCHES_H
9#define LTTNG_CONDITION_EVENT_RULE_MATCHES_H
10
11#include <lttng/condition/condition.h>
12#include <lttng/condition/evaluation.h>
13#include <lttng/event-rule/event-rule.h>
14#include <lttng/lttng-export.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
25struct lttng_event_expr;
26struct lttng_event_field_value;
27
43
71LTTNG_EXPORT extern struct lttng_condition *
73
103LTTNG_EXPORT extern enum lttng_condition_status
105 const struct lttng_event_rule **rule);
106
157LTTNG_EXPORT extern enum lttng_evaluation_event_rule_matches_status
159 const struct lttng_evaluation *evaluation,
160 const struct lttng_event_field_value **field_val);
161
220LTTNG_EXPORT extern enum lttng_condition_status
222 struct lttng_event_expr *expr);
223
250LTTNG_EXPORT extern enum lttng_condition_status
252 const struct lttng_condition *condition, unsigned int *count);
253
288LTTNG_EXPORT extern const struct lttng_event_expr *
290 const struct lttng_condition *condition, unsigned int index);
291
293
294#ifdef __cplusplus
295}
296#endif
297
298#endif /* LTTNG_CONDITION_EVENT_RULE_MATCHES_H */
enum lttng_condition_status lttng_condition_event_rule_matches_get_rule(const struct lttng_condition *condition, const struct lttng_event_rule **rule)
Sets *rule to the event rule of the “event rule matches” trigger condition condition.
lttng_evaluation_event_rule_matches_status
Return type of lttng_evaluation_event_rule_matches_get_captured_values().
Definition event-rule-matches.h:33
enum lttng_evaluation_event_rule_matches_status lttng_evaluation_event_rule_matches_get_captured_values(const struct lttng_evaluation *evaluation, const struct lttng_event_field_value **field_val)
Sets *field_val to the array event field value of the “event rule matches” trigger condition evaluati...
enum lttng_condition_status lttng_condition_event_rule_matches_get_capture_descriptor_count(const struct lttng_condition *condition, unsigned int *count)
Sets *count to the number of capture descriptors of the “event rule matches” trigger condition condit...
enum lttng_condition_status lttng_condition_event_rule_matches_append_capture_descriptor(struct lttng_condition *condition, struct lttng_event_expr *expr)
Appends a capture descriptor with the event expression expr to the “event rule matches” trigger condi...
struct lttng_condition * lttng_condition_event_rule_matches_create(struct lttng_event_rule *rule)
Creates an “event rule matches” trigger condition to execute an action when the event rule rule match...
const struct lttng_event_expr * lttng_condition_event_rule_matches_get_capture_descriptor_at_index(const struct lttng_condition *condition, unsigned int index)
Returns the capture descriptor of the “event rule matches” trigger condition condition at the index i...
@ LTTNG_EVALUATION_EVENT_RULE_MATCHES_STATUS_OK
Success.
Definition event-rule-matches.h:35
@ LTTNG_EVALUATION_EVENT_RULE_MATCHES_STATUS_INVALID
Unsatisfied precondition.
Definition event-rule-matches.h:41
@ LTTNG_EVALUATION_EVENT_RULE_MATCHES_STATUS_NONE
The condition of the evaluation has no capture descriptors.
Definition event-rule-matches.h:38
lttng_condition_status
Return type of trigger condition API functions.
Definition condition.h:72
Trigger condition (opaque type).
Trigger condition evaluation (opaque type).
Event rule (opaque type).