X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevaluation.c;h=15e4f11ee3d6f53b2e4389fc834d619c7c5453c1;hb=37ccf8ecee70257a97ab6939e5dcb0112826f409;hp=16c3ef39ca80b6a825f560619b29d3d0f7bdee71;hpb=7c920b632d63ffd82074430d77862176e0fc477c;p=lttng-tools.git diff --git a/src/common/evaluation.c b/src/common/evaluation.c index 16c3ef39c..15e4f11ee 100644 --- a/src/common/evaluation.c +++ b/src/common/evaluation.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include @@ -117,12 +117,13 @@ ssize_t lttng_evaluation_create_from_payload( } evaluation_size += ret; break; - case LTTNG_CONDITION_TYPE_EVENT_RULE_HIT: + case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES: assert(condition); - assert(condition->type == LTTNG_CONDITION_TYPE_EVENT_RULE_HIT); - ret = lttng_evaluation_event_rule_create_from_payload( + assert(condition->type == + LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES); + ret = lttng_evaluation_event_rule_matches_create_from_payload( container_of(condition, - const struct lttng_condition_event_rule, + const struct lttng_condition_event_rule_matches, parent), &evaluation_view, evaluation); if (ret < 0) {