X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_notifier_discarded_count;h=b0fce8aa8d59f722a469d6d08cb6fd6c7ffdd374;hb=761ffce23895ccf66a7a410b9037fa3f128fb20a;hp=697c652bc79cce22b0dfd1c9263bc274bbbfb810;hpb=709fb83f37a5315693a65d8ac6c0c7d1a607745f;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_notifier_discarded_count b/tests/regression/tools/notification/test_notification_notifier_discarded_count index 697c652bc..b0fce8aa8 100755 --- a/tests/regression/tools/notification/test_notification_notifier_discarded_count +++ b/tests/regression/tools/notification/test_notification_notifier_discarded_count @@ -76,17 +76,17 @@ function test_kernel_notifier_discarded_count # To fill it, we need to generate (16 * 4096)/42 = 1561 notifications. # That number is a bit larger than what we need since some of the space # is lost in subbuffer boundaries. - echo -n "200000" > /proc/lttng-test-filter-event + echo -n "2000" > /proc/lttng-test-filter-event "$FULL_LTTNG_BIN" list-triggers > "$list_triggers_stdout" # Confirm that the discarded notification line is present. To avoid # false positives. - cat "$list_triggers_stdout" | grep --quiet "dicarded tracer messages" + cat "$list_triggers_stdout" | grep --quiet "discarded tracer messages" ok $? "Tracer notification discarded line printed" # Confirm that the number of dicarded tracer messages is not zero. - cat "$list_triggers_stdout" | grep --quiet "dicarded tracer messages: 0" + cat "$list_triggers_stdout" | grep --quiet "discarded tracer messages: 0" isnt $? 0 "Discarded tracer notification number non-zero as expected" lttng_remove_trigger_ok "$trigger_name" @@ -100,6 +100,8 @@ function test_kernel_notifier_discarded_count --condition on-event --kernel lttng_test_filter_event \ --action notify + "$FULL_LTTNG_BIN" list-triggers > "$list_triggers_stdout" + # Confirm that the discarded notification line is not present. cat "$list_triggers_stdout" | grep -v --quiet "discarded tracer messages" ok $? "No discarded tracer notification message" @@ -118,7 +120,7 @@ function test_kernel_notifier_discarded_count function test_kernel_notifier_discarded_count_max_bucket { - start_lttng_sessiond "" "--event-notifier-error-number-of-bucket=3" + start_lttng_sessiond "" "--event-notifier-error-buffer-size-kernel=3" diag "Kernel event notifer error counter bucket limit" for i in $(seq 3); do @@ -237,7 +239,7 @@ function test_ust_notifier_discarded_count } function test_ust_notifier_discarded_count_max_bucket { - start_lttng_sessiond "" "--event-notifier-error-number-of-bucket=3" + start_lttng_sessiond "" "--event-notifier-error-buffer-size-userspace=3" diag "UST event notifer error counter bucket limit" for i in $(seq 3); do