X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_event_rule.c;h=6cc9d5cd63c7f73d93c40784c94e6ab42785ce20;hp=0e83850a77bc8f460ef09a21b9a0c484fb01529a;hb=1f1567a534b09badcbe6f6c10a4693e9fddb62dc;hpb=a3c516531ffff69b8d5f6564c8e4d00b4f18e7da diff --git a/tests/unit/test_event_rule.c b/tests/unit/test_event_rule.c index 0e83850a7..6cc9d5cd6 100644 --- a/tests/unit/test_event_rule.c +++ b/tests/unit/test_event_rule.c @@ -225,7 +225,7 @@ static void test_event_rule_syscall(void) lttng_event_rule_destroy(syscall_from_buffer); } -static void test_event_rule_uprobe(void) +static void test_event_rule_userspace_probe(void) { struct lttng_event_rule *uprobe = NULL; struct lttng_event_rule *uprobe_from_buffer = NULL; @@ -261,14 +261,14 @@ static void test_event_rule_uprobe(void) lttng_payload_init(&payload); - uprobe = lttng_event_rule_uprobe_create(); + uprobe = lttng_event_rule_userspace_probe_create(); ok(uprobe, "uprobe event rule object creation."); - status = lttng_event_rule_uprobe_set_location(uprobe, probe_location); + status = lttng_event_rule_userspace_probe_set_location(uprobe, probe_location); ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Setting uprobe event rule location."); - status = lttng_event_rule_uprobe_get_location( + status = lttng_event_rule_userspace_probe_get_location( uprobe, &probe_location_tmp); ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Getting uprobe event rule location."); @@ -276,10 +276,10 @@ static void test_event_rule_uprobe(void) probe_location, probe_location_tmp), "Location is equal."); - status = lttng_event_rule_uprobe_set_name(uprobe, probe_name); + status = lttng_event_rule_userspace_probe_set_name(uprobe, probe_name); ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Setting uprobe event rule name: %s.", probe_name); - status = lttng_event_rule_uprobe_get_name(uprobe, &tmp); + status = lttng_event_rule_userspace_probe_get_name(uprobe, &tmp); ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Getting uprobe name."); ok(!strcmp(probe_name, tmp), "Uprobe name are equal."); @@ -383,7 +383,7 @@ int main(int argc, const char *argv[]) plan_tests(NUM_TESTS); test_event_rule_tracepoint(); test_event_rule_syscall(); - test_event_rule_uprobe(); + test_event_rule_userspace_probe(); test_event_rule_kernel_probe(); return exit_status(); }