projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng add-trigger: rename on-event condition to event-rule-matches
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
test_notification_notifier_discarded_count
diff --git
a/tests/regression/tools/notification/test_notification_notifier_discarded_count
b/tests/regression/tools/notification/test_notification_notifier_discarded_count
index 2186bfb2ce4d6703f9fe8a917be9b32f758c674b..51b6e04eba4a296f7aea4be030d2f6cc8e221099 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_notifier_discarded_count
+++ b/
tests/regression/tools/notification/test_notification_notifier_discarded_count
@@
-78,7
+78,7
@@
function test_kernel_notifier_discarded_count
done
lttng_add_trigger_ok "$trigger_name" \
done
lttng_add_trigger_ok "$trigger_name" \
- --condition
on-event
--kernel lttng_test_filter_event \
+ --condition
event-rule-matches
--kernel lttng_test_filter_event \
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
@@
-103,11
+103,11
@@
function test_kernel_notifier_discarded_count
# Confirm that no notifier is enabled.
list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l)
# Confirm that no notifier is enabled.
list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l)
- is "$list_triggers_line_count" "0" "No \`
on-event
\` kernel notifier enabled as expected"
+ is "$list_triggers_line_count" "0" "No \`
event-rule-matches
\` kernel notifier enabled as expected"
# Enable another notifier and list it to confirm the counter was cleared.
lttng_add_trigger_ok "$trigger_name" \
# Enable another notifier and list it to confirm the counter was cleared.
lttng_add_trigger_ok "$trigger_name" \
- --condition
on-event
--kernel lttng_test_filter_event \
+ --condition
event-rule-matches
--kernel lttng_test_filter_event \
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
@@
-129,13
+129,13
@@
function test_kernel_notifier_discarded_count_max_bucket
diag "Kernel event notifer error counter bucket limit"
for i in $(seq 3); do
lttng_add_trigger_ok "$i" \
diag "Kernel event notifer error counter bucket limit"
for i in $(seq 3); do
lttng_add_trigger_ok "$i" \
- --condition
on-event
--kernel my_event_that_doesnt_need_to_really_exist_$i \
+ --condition
event-rule-matches
--kernel my_event_that_doesnt_need_to_really_exist_$i \
--action notify
done
for i in $(seq 4 5); do
lttng_add_trigger_fail "$i" \
--action notify
done
for i in $(seq 4 5); do
lttng_add_trigger_fail "$i" \
- --condition
on-event
--kernel my_event_that_doesnt_need_to_really_exist_$i \
+ --condition
event-rule-matches
--kernel my_event_that_doesnt_need_to_really_exist_$i \
--action notify
done
--action notify
done
@@
-180,7
+180,7
@@
function test_ust_notifier_discarded_count
done
lttng_add_trigger_ok "$trigger_name" \
done
lttng_add_trigger_ok "$trigger_name" \
- --condition
on-event
--userspace tp:tptest \
+ --condition
event-rule-matches
--userspace tp:tptest \
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
@@
-202,11
+202,11
@@
function test_ust_notifier_discarded_count
# Confirm that no notifier is enabled.
list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l)
# Confirm that no notifier is enabled.
list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l)
- is "$list_triggers_line_count" "0" "No \`
on-event
\` userspace notifier enabled as expected"
+ is "$list_triggers_line_count" "0" "No \`
event-rule-matches
\` userspace notifier enabled as expected"
# Enable another notifier and list it to confirm the counter was cleared.
lttng_add_trigger_ok "$trigger_name" \
# Enable another notifier and list it to confirm the counter was cleared.
lttng_add_trigger_ok "$trigger_name" \
- --condition
on-event
--userspace tp:tptest \
+ --condition
event-rule-matches
--userspace tp:tptest \
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
--action notify
trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name")
@@
-226,13
+226,13
@@
function test_ust_notifier_discarded_count_max_bucket
diag "UST event notifer error counter bucket limit"
for i in $(seq 3); do
lttng_add_trigger_ok "$i" \
diag "UST event notifer error counter bucket limit"
for i in $(seq 3); do
lttng_add_trigger_ok "$i" \
- --condition
on-event
--userspace my_event_that_doesnt_need_to_really_exist_$i \
+ --condition
event-rule-matches
--userspace my_event_that_doesnt_need_to_really_exist_$i \
--action notify
done
for i in $(seq 4 5); do
lttng_add_trigger_fail "$i" \
--action notify
done
for i in $(seq 4 5); do
lttng_add_trigger_fail "$i" \
- --condition
on-event
--userspace my_event_that_doesnt_need_to_really_exist_$i \
+ --condition
event-rule-matches
--userspace my_event_that_doesnt_need_to_really_exist_$i \
--action notify
done
--action notify
done
This page took
0.02503 seconds
and
4
git commands to generate.