X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fevaluation.c;h=15e4f11ee3d6f53b2e4389fc834d619c7c5453c1;hp=eee39ead866b8c0d2c316f0e3f820182214a5850;hb=8dbb86b8a981917165030d3a7fbbc2cb932888ed;hpb=670a26e4165562ab2dc5a16b9941f942e4f30996 diff --git a/src/common/evaluation.c b/src/common/evaluation.c index eee39ead8..15e4f11ee 100644 --- a/src/common/evaluation.c +++ b/src/common/evaluation.c @@ -117,12 +117,13 @@ ssize_t lttng_evaluation_create_from_payload( } evaluation_size += ret; break; - case LTTNG_CONDITION_TYPE_ON_EVENT: + case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES: assert(condition); - assert(condition->type == LTTNG_CONDITION_TYPE_ON_EVENT); - ret = lttng_evaluation_on_event_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_on_event, + const struct lttng_condition_event_rule_matches, parent), &evaluation_view, evaluation); if (ret < 0) {