projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event-rule: userspace probe: force location on create
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
notification.c
diff --git
a/tests/regression/tools/notification/notification.c
b/tests/regression/tools/notification/notification.c
index f6cd908b915a425694f77231ef887bcae05087ed..68a76f922a08ded50d602ca606a235300c76c9b5 100644
(file)
--- 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)) {
}
switch (lttng_evaluation_get_type(evaluation)) {
- case LTTNG_CONDITION_TYPE_
EVENT_RULE_HI
T:
+ case LTTNG_CONDITION_TYPE_
ON_EVEN
T:
{
{
- status = lttng_evaluation_
event_rule
_get_trigger_name(
+ status = lttng_evaluation_
on_event
_get_trigger_name(
evaluation, &name);
if (status != LTTNG_EVALUATION_STATUS_OK) {
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;
}
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");
}
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(tmp_condition, "Condition event rule object creation");
if (capture_desc_cb) {
@@
-1864,20
+1864,15
@@
static void test_kprobe_event_rule_notification(
lttng_session_daemon_notification_endpoint);
ok(notification_channel, "Notification channel object creation");
lttng_session_daemon_notification_endpoint);
ok(notification_channel, "Notification channel object creation");
- event_rule = lttng_event_rule_k
probe_create(
);
+ event_rule = lttng_event_rule_k
ernel_probe_create(location
);
ok(event_rule, "kprobe event rule object creation");
ok(event_rule, "kprobe event rule object creation");
- event_rule_status = lttng_event_rule_kprobe_set_location(
- event_rule, location);
- ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
- "Setting kprobe event rule location: '%s'", symbol_name);
-
- event_rule_status = lttng_event_rule_kprobe_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);
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(condition, "Condition event rule object creation");
/* Register the trigger for condition. */
@@
-1978,20
+1973,15
@@
static void test_uprobe_event_rule_notification(
lttng_session_daemon_notification_endpoint);
ok(notification_channel, "Notification channel object creation");
lttng_session_daemon_notification_endpoint);
ok(notification_channel, "Notification channel object creation");
- event_rule = lttng_event_rule_u
probe_create(
);
+ event_rule = lttng_event_rule_u
serspace_probe_create(probe_location
);
ok(event_rule, "kprobe event rule object creation");
ok(event_rule, "kprobe event rule object creation");
- event_rule_status = lttng_event_rule_uprobe_set_location(
- event_rule, probe_location);
- ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
- "Setting uprobe event rule location");
-
- event_rule_status = lttng_event_rule_uprobe_set_name(
+ event_rule_status = lttng_event_rule_userspace_probe_set_event_name(
event_rule, trigger_name);
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting uprobe event rule name: '%s'", trigger_name);
event_rule, trigger_name);
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(condition, "Condition event rule object creation");
/* Register the trigger for condition. */
@@
-2083,7
+2073,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);
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(condition, "Condition syscall event rule object creation");
/* Register the trigger for condition. */
@@
-2178,7
+2168,7
@@
static void test_syscall_event_rule_notification_filter(
ok(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK,
"Setting filter: '%s'", filter_pattern);
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 */
ok(condition, "Condition event rule object creation");
/* Register the triggers for condition */
@@
-2293,7
+2283,7
@@
static int generate_capture_descr(struct lttng_condition *condition)
goto end;
}
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");
condition, expr);
if (cond_status != LTTNG_CONDITION_STATUS_OK) {
fail("Failed to append capture descriptor");
@@
-2329,7
+2319,7
@@
static int validator_notification_trigger_capture(
goto end;
}
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",
evaluation, &captured_fields);
if (evaluation_status != LTTNG_EVALUATION_STATUS_OK) {
diag("Failed to get event rule evaluation captured values: status = %d",
@@
-2600,7
+2590,7
@@
int main(int argc, const char *argv[])
}
case 4:
{
}
case 4:
{
- plan_tests(1
3
);
+ plan_tests(1
2
);
/* Test cases that need the kernel tracer. */
assert(domain_type == LTTNG_DOMAIN_KERNEL);
/* Test cases that need the kernel tracer. */
assert(domain_type == LTTNG_DOMAIN_KERNEL);
@@
-2633,7
+2623,7
@@
int main(int argc, const char *argv[])
{
const char *testapp_path, *test_symbol_name;
{
const char *testapp_path, *test_symbol_name;
- plan_tests(1
3
);
+ plan_tests(1
2
);
if (argc < 7) {
fail("Missing parameter for tests to run %d", argc);
if (argc < 7) {
fail("Missing parameter for tests to run %d", argc);
This page took
0.028069 seconds
and
4
git commands to generate.