X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fcondition%2Fevent-rule-internal.h;fp=include%2Flttng%2Fcondition%2Fevent-rule-internal.h;h=6dd663d7c498637aac9e3f9b082458badc5b8455;hp=0f2f3fbf6c3e7971a587bdb2bcdff3b8a79e3087;hb=7c920b632d63ffd82074430d77862176e0fc477c;hpb=82b3cbf431e12b5c5f65eaa474d0328fb86ece87 diff --git a/include/lttng/condition/event-rule-internal.h b/include/lttng/condition/event-rule-internal.h index 0f2f3fbf6..6dd663d7c 100644 --- a/include/lttng/condition/event-rule-internal.h +++ b/include/lttng/condition/event-rule-internal.h @@ -13,6 +13,7 @@ #include #include #include +#include struct lttng_capture_descriptor { struct lttng_event_expr *event_expression; @@ -30,6 +31,18 @@ struct lttng_condition_event_rule { struct lttng_evaluation_event_rule { struct lttng_evaluation parent; char *name; + + /* MessagePack-encoded captured event field values. */ + struct lttng_dynamic_buffer capture_payload; + + /* + * The content of this array event field value is the decoded + * version of `capture_payload` above. + * + * This is a cache: it's not serialized/deserialized in + * communications from/to the library and the session daemon. + */ + struct lttng_event_field_value *captured_values; }; struct lttng_evaluation_event_rule_comm { @@ -52,10 +65,14 @@ lttng_condition_event_rule_borrow_rule_mutable( LTTNG_HIDDEN struct lttng_evaluation *lttng_evaluation_event_rule_create( - const char* trigger_name); + const struct lttng_condition_event_rule *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, struct lttng_payload_view *view, struct lttng_evaluation **_evaluation);