}
switch (lttng_evaluation_get_type(evaluation)) {
- case LTTNG_CONDITION_TYPE_EVENT_RULE_HIT:
+ case LTTNG_CONDITION_TYPE_ON_EVENT:
{
- status = lttng_evaluation_event_rule_get_trigger_name(
+ status = lttng_evaluation_on_event_get_trigger_name(
evaluation, &name);
if (status != LTTNG_EVALUATION_STATUS_OK) {
- fail("lttng_evaluation_event_rule_get_trigger_name");
+ fail("lttng_evaluation_on_event_get_trigger_name");
name = NULL;
goto end;
}
ok(success, "Setting tracepoint event rule exclusions");
}
- tmp_condition = lttng_condition_event_rule_create(event_rule);
+ tmp_condition = lttng_condition_on_event_create(event_rule);
ok(tmp_condition, "Condition event rule object creation");
if (capture_desc_cb) {
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting kprobe event rule location: '%s'", symbol_name);
- event_rule_status = lttng_event_rule_kernel_probe_set_name(
+ event_rule_status = lttng_event_rule_kernel_probe_set_event_name(
event_rule, trigger_name);
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting kprobe event rule name: '%s'", trigger_name);
- condition = lttng_condition_event_rule_create(event_rule);
+ condition = lttng_condition_on_event_create(event_rule);
ok(condition, "Condition event rule object creation");
/* Register the trigger for condition. */
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting uprobe event rule name: '%s'", trigger_name);
- condition = lttng_condition_event_rule_create(event_rule);
+ condition = lttng_condition_on_event_create(event_rule);
ok(condition, "Condition event rule object creation");
/* Register the trigger for condition. */
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting syscall event rule pattern: '%s'", syscall_name);
- condition = lttng_condition_event_rule_create(event_rule);
+ condition = lttng_condition_on_event_create(event_rule);
ok(condition, "Condition syscall event rule object creation");
/* Register the trigger for condition. */
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting filter: '%s'", filter_pattern);
- condition = lttng_condition_event_rule_create(event_rule);
+ condition = lttng_condition_on_event_create(event_rule);
ok(condition, "Condition event rule object creation");
/* Register the triggers for condition */
goto end;
}
- cond_status = lttng_condition_event_rule_append_capture_descriptor(
+ cond_status = lttng_condition_on_event_append_capture_descriptor(
condition, expr);
if (cond_status != LTTNG_CONDITION_STATUS_OK) {
fail("Failed to append capture descriptor");
goto end;
}
- evaluation_status = lttng_evaluation_event_rule_get_captured_values(
+ evaluation_status = lttng_evaluation_on_event_get_captured_values(
evaluation, &captured_fields);
if (evaluation_status != LTTNG_EVALUATION_STATUS_OK) {
diag("Failed to get event rule evaluation captured values: status = %d",