#include <common/macros.h>
#include <common/error.h>
#include <stdbool.h>
-#include <assert.h>
-LTTNG_HIDDEN
void lttng_evaluation_init(struct lttng_evaluation *evaluation,
enum lttng_condition_type type)
{
evaluation->type = type;
}
-LTTNG_HIDDEN
int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation,
struct lttng_payload *payload)
{
return ret;
}
-LTTNG_HIDDEN
ssize_t lttng_evaluation_create_from_payload(
const struct lttng_condition *condition,
struct lttng_payload_view *src_view,
evaluation_size += ret;
break;
case LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES:
- assert(condition);
- assert(condition->type ==
+ LTTNG_ASSERT(condition);
+ LTTNG_ASSERT(condition->type ==
LTTNG_CONDITION_TYPE_EVENT_RULE_MATCHES);
ret = lttng_evaluation_event_rule_matches_create_from_payload(
container_of(condition,
return;
}
- assert(evaluation->destroy);
+ LTTNG_ASSERT(evaluation->destroy);
evaluation->destroy(evaluation);
}