8#ifndef LTTNG_CONDITION_EVENT_RULE_MATCHES_H
9#define LTTNG_CONDITION_EVENT_RULE_MATCHES_H
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>
25struct lttng_event_expr;
26struct lttng_event_field_value;
152 const struct lttng_event_field_value **field_val);
194 struct lttng_event_expr *expr);
260LTTNG_EXPORT
extern const struct lttng_event_expr *
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:64
Trigger condition (opaque type).
Trigger condition evaluation (opaque type).
Event rule (opaque type).