X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fcondition%2Fevent-rule-internal.h;h=e22cb762a7b7a05e483677d4453c1befeffd2fcc;hp=6dd663d7c498637aac9e3f9b082458badc5b8455;hb=d602bd6a8ee25d5ca662dde4edb3db3cabf264e1;hpb=e957bf98e634c79b13281d0a2fe144be0245d310 diff --git a/include/lttng/condition/event-rule-internal.h b/include/lttng/condition/event-rule-internal.h index 6dd663d7c..e22cb762a 100644 --- a/include/lttng/condition/event-rule-internal.h +++ b/include/lttng/condition/event-rule-internal.h @@ -5,8 +5,8 @@ * */ -#ifndef LTTNG_CONDITION_EVENT_RULE_INTERNAL_H -#define LTTNG_CONDITION_EVENT_RULE_INTERNAL_H +#ifndef LTTNG_CONDITION_ON_EVENT_INTERNAL_H +#define LTTNG_CONDITION_ON_EVENT_INTERNAL_H #include #include @@ -20,7 +20,7 @@ struct lttng_capture_descriptor { struct lttng_bytecode *bytecode; }; -struct lttng_condition_event_rule { +struct lttng_condition_on_event { struct lttng_condition parent; struct lttng_event_rule *rule; @@ -28,7 +28,7 @@ struct lttng_condition_event_rule { struct lttng_dynamic_pointer_array capture_descriptors; }; -struct lttng_evaluation_event_rule { +struct lttng_evaluation_on_event { struct lttng_evaluation parent; char *name; @@ -45,7 +45,7 @@ struct lttng_evaluation_event_rule { struct lttng_event_field_value *captured_values; }; -struct lttng_evaluation_event_rule_comm { +struct lttng_evaluation_on_event_comm { /* Includes the null terminator. */ uint32_t trigger_name_length; /* Trigger name. */ @@ -53,37 +53,37 @@ struct lttng_evaluation_event_rule_comm { } LTTNG_PACKED; LTTNG_HIDDEN -ssize_t lttng_condition_event_rule_create_from_payload( +ssize_t lttng_condition_on_event_create_from_payload( struct lttng_payload_view *view, struct lttng_condition **condition); LTTNG_HIDDEN enum lttng_condition_status -lttng_condition_event_rule_borrow_rule_mutable( +lttng_condition_on_event_borrow_rule_mutable( const struct lttng_condition *condition, struct lttng_event_rule **rule); LTTNG_HIDDEN -struct lttng_evaluation *lttng_evaluation_event_rule_create( - const struct lttng_condition_event_rule *condition, +struct lttng_evaluation *lttng_evaluation_on_event_create( + const struct lttng_condition_on_event *condition, const char* trigger_name, const char *capture_payload, size_t capture_payload_size, bool decode_capture_payload); LTTNG_HIDDEN -ssize_t lttng_evaluation_event_rule_create_from_payload( - const struct lttng_condition_event_rule *condition, +ssize_t lttng_evaluation_on_event_create_from_payload( + const struct lttng_condition_on_event *condition, struct lttng_payload_view *view, struct lttng_evaluation **_evaluation); LTTNG_HIDDEN enum lttng_error_code -lttng_condition_event_rule_generate_capture_descriptor_bytecode( +lttng_condition_on_event_generate_capture_descriptor_bytecode( struct lttng_condition *condition); LTTNG_HIDDEN const struct lttng_bytecode * -lttng_condition_event_rule_get_capture_bytecode_at_index( +lttng_condition_on_event_get_capture_bytecode_at_index( const struct lttng_condition *condition, unsigned int index); -#endif /* LTTNG_CONDITION_EVENT_RULE_INTERNAL_H */ +#endif /* LTTNG_CONDITION_ON_EVENT_INTERNAL_H */