commit bb43a35ce70ad638f72ae7dcd8c198ca95dac43f
Author: Xu,Anhua <[email protected]>
Date: Wed Feb 8 11:04:33 2012 +0800
Power Management: fix configuration check for sched_domain.py
Add checking for "sched_debug" in kernel cmdline parameter.
Without this option, power policy change via sched_mc/smt_power_savings
will not cause any output from dmesg that is needed for sched_domain.py
Signed-off-by: Anhua Xu <[email protected]>
diff --git a/testcases/kernel/power_management/runpwtests.sh
b/testcases/kernel/power_management/runpwtests.sh
index c4a1d39..ab4536f 100755
--- a/testcases/kernel/power_management/runpwtests.sh
+++ b/testcases/kernel/power_management/runpwtests.sh
@@ -188,8 +188,11 @@ fi
# sched_domain test
if ! type python > /dev/null ; then
- tst_resm TCONF "Python is not installed, CPU Consoldation\
+ tst_resm TCONF "Python is not installed, CPU Consolidation\
test cannot run"
+elif ! grep sched_debug -qw /proc/cmdline ; then
+ tst_resm TCONF "Kernel cmdline parameter 'sched_debug' needed,\
+CPU Consolidation test cannot run"
else
if [ -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
echo "max sched mc $max_sched_mc"
-----Original Message-----
From: Cyril Hrubis [mailto:[email protected]]
Sent: Thursday, February 09, 2012 9:10 PM
To: Xu, Anhua
Cc: Garrett Cooper; [email protected]
Subject: Re: [Ltp-commits] [patch] Power Management: add notification once
'sched_debug' not in boot cmdline
Hi!
> commit bb43a35ce70ad638f72ae7dcd8c198ca95dac43f
> Author: Xu,Anhua <[email protected]>
> Date: Wed Feb 8 11:04:33 2012 +0800
>
> Power Management: fix configuration check for sched_domain.py
>
> Add checking for "sched_debug" in kernel cmdline parameter.
> Without this option, power policy change via sched_mc/smt_power_savings
> will not cause any output from dmesg that is needed for sched_domain.py
The signed-off-by line is missing here. Could you please resend with it.
> diff --git a/testcases/kernel/power_management/runpwtests.sh
> b/testcases/kernel/power_management/runpwtests.sh
> index c4a1d39..ab4536f 100755
> --- a/testcases/kernel/power_management/runpwtests.sh
> +++ b/testcases/kernel/power_management/runpwtests.sh
> @@ -188,8 +188,11 @@ fi
>
> # sched_domain test
> if ! type python > /dev/null ; then
> - tst_resm TCONF "Python is not installed, CPU Consoldation\
> + tst_resm TCONF "Python is not installed, CPU Consolidation\
> test cannot run"
> +elif ! grep sched_debug -qw /proc/cmdline ; then
> + tst_resm TCONF "Kernel cmdline parameter 'sched_debug' needed,\
> +CPU Consolidation test cannot run"
> else
> if [ -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
> echo "max sched mc $max_sched_mc"
>
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list