X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Fnotification.c;h=9356d432eea8a5d8072ee910eda6aa1f45121874;hp=b701681c089dfd2d0f83807baa0bc606b62bcc79;hb=d602bd6a8ee25d5ca662dde4edb3db3cabf264e1;hpb=e957bf98e634c79b13281d0a2fe144be0245d310 diff --git a/tests/regression/tools/notification/notification.c b/tests/regression/tools/notification/notification.c index b701681c0..9356d432e 100644 --- a/tests/regression/tools/notification/notification.c +++ b/tests/regression/tools/notification/notification.c @@ -589,12 +589,12 @@ static const char *get_notification_trigger_name( } 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; } @@ -1504,7 +1504,7 @@ static void create_tracepoint_event_rule_trigger(const char *event_pattern, 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) { @@ -1877,7 +1877,7 @@ static void test_kprobe_event_rule_notification( 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. */ @@ -1991,7 +1991,7 @@ static void test_uprobe_event_rule_notification( 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. */ @@ -2083,7 +2083,7 @@ static void test_syscall_event_rule_notification( 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. */ @@ -2178,7 +2178,7 @@ static void test_syscall_event_rule_notification_filter( 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 */ @@ -2293,7 +2293,7 @@ static int generate_capture_descr(struct lttng_condition *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"); @@ -2329,7 +2329,7 @@ static int validator_notification_trigger_capture( 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",