From: Jérémie Galarneau Date: Thu, 27 Jul 2017 20:48:44 +0000 (-0400) Subject: Tests: don't assume a 4K page size in test_notification X-Git-Tag: v2.11.0-rc1~505 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=63f1709b6e76d5158720512fb06c8b78b3c954b9;hp=b6025e9476332b75eb8184345c3eb3e924780088 Tests: don't assume a 4K page size in test_notification Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/notification/test_notification b/tests/regression/tools/notification/test_notification index 48a5a16cb..421abe0ee 100755 --- a/tests/regression/tools/notification/test_notification +++ b/tests/regression/tools/notification/test_notification @@ -36,6 +36,7 @@ CHANNEL_NAME="my_ust_channel" EVENT_NAME="tp:tptest" TRACE_PATH=$(mktemp -d) +PAGE_SIZE=$(getconf PAGE_SIZE) DIR=$(readlink -f $TESTDIR) @@ -50,7 +51,7 @@ start_lttng_sessiond_notap create_lttng_session_notap $SESSION_NAME $TRACE_PATH -enable_ust_lttng_channel_notap $SESSION_NAME $CHANNEL_NAME --subbuf-size=4096 +enable_ust_lttng_channel_notap $SESSION_NAME $CHANNEL_NAME --subbuf-size=$PAGE_SIZE enable_ust_lttng_event_notap $SESSION_NAME $EVENT_NAME $CHANNEL_NAME #This is needed since the testpoint create a pipe with the consumer type suffixed