Return-Path: From: Qiu Tingting Date: Thu, 15 Nov 2018 12:26:05 +0800 Message-ID: <1542255972-10772-8-git-send-email-qiutt@cn.fujitsu.com> In-Reply-To: <1542255972-10772-1-git-send-email-qiutt@cn.fujitsu.com> References: <1542255972-10772-1-git-send-email-qiutt@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 08/15] ptsematest: add RT group warning List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Add a warning if CONFIG_RT_GROUP_SCHED enabled in kernel. By following the warning, right settings of boards could be setted before test. Signed-off-by: Qiu Tingting --- engine/tests/Benchmark.ptsematest/fuego_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/tests/Benchmark.ptsematest/fuego_test.sh b/engine/tests/Benchmark.ptsematest/fuego_test.sh index 5f0633e..77e041a 100755 --- a/engine/tests/Benchmark.ptsematest/fuego_test.sh +++ b/engine/tests/Benchmark.ptsematest/fuego_test.sh @@ -4,6 +4,12 @@ NEED_ROOT=1 function test_pre_check { assert_define BENCHMARK_PTSEMATEST_PARAMS + if check_kconfig "CONFIG_RT_GROUP_SCHED=y"; then + echo "WARNING: CONFIG_RT_GROUP_SCHED enabled in your kernel. Please check the RT" + echo "settings as following if this test failed with 'Unable to change scheduling policy'." + echo "- If the user does not need the RT groups functionality, disable CONFIG_RT_GROUP_SCHED and compile the kernel again, or 'sysctl -w kernel.sched_rt_runtime_us=-1'" + echo "- If the user does want to use RT groups functionality, you may want to assign the ssh daemon service a realtime budget by specifyihg the cpu.rt_runtime_us attribute" + fi } function test_build { -- 2.7.4