condition: implement event rule based condition
[lttng-tools.git] / src / common / conditions / condition.c
index cffe6cf5e2b7408034781f23063681bebe9f2f7c..d1990414c2fb759dd9de851306bf9db79c287fbe 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <lttng/condition/condition-internal.h>
 #include <lttng/condition/buffer-usage-internal.h>
+#include <lttng/condition/event-rule-internal.h>
 #include <lttng/condition/session-consumed-size-internal.h>
 #include <lttng/condition/session-rotation-internal.h>
 #include <common/macros.h>
@@ -169,6 +170,9 @@ ssize_t lttng_condition_create_from_payload(
        case LTTNG_CONDITION_TYPE_SESSION_ROTATION_COMPLETED:
                create_from_payload = lttng_condition_session_rotation_completed_create_from_payload;
                break;
+       case LTTNG_CONDITION_TYPE_EVENT_RULE_HIT:
+               create_from_payload = lttng_condition_event_rule_create_from_payload;
+               break;
        default:
                ERR("Attempted to create condition of unknown type (%i)",
                                (int) condition_comm->condition_type);
This page took 0.031034 seconds and 4 git commands to generate.