[PATCH 03/03]: Patch to integrate testcase to LTP
Signed-off-by: poornima nayak <[email protected]>
diff -uprN
ltp-full-20090228_orig/testcases/kernel/power_management/Makefile
ltp-full-20090228/testcases/kernel/power_management/Makefile
--- ltp-full-20090228_orig/testcases/kernel/power_management/Makefile
2009-03-06 08:48:37.000000000 -0600
+++ ltp-full-20090228/testcases/kernel/power_management/Makefile
2009-03-06 09:03:37.000000000 -0600
@@ -42,6 +42,7 @@ install:
ln -f config_sched_mc ../../bin/config_sched_mc;
ln -f
check_cpuidle_sysfs_files.sh ../../bin/check_cpuidle_sysfs_files.sh;
ln -f cpu_consolidation.py ../../bin/cpu_consolidation.py
+ ln -f test_sched_smt.sh ../../bin/test_sched_smt.sh;
chmod ugo+x *.sh
clean:
@set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@ ; done
diff -uprN
ltp-full-20090228_orig/testcases/kernel/power_management/README
ltp-full-20090228/testcases/kernel/power_management/README
--- ltp-full-20090228_orig/testcases/kernel/power_management/README
2009-03-06 08:48:37.000000000 -0600
+++ ltp-full-20090228/testcases/kernel/power_management/README
2009-03-06 09:05:38.000000000 -0600
@@ -56,6 +56,9 @@ will be added soon
Test Scripts for SCHED_MC:
test_sched_mc.sh
+Test Scripts for SCHED_SMT:
+test_sched_smt.sh tests sched_smt_power_savings interface
+
Common functionality:
pm_include.sh
check_kv_arch.c
@@ -77,6 +80,6 @@ Power Management 1 FAIL : Required
Then either configuration is not set or the system won't support.
-For CPU consolidation verification ebizzy is included in utils
directory of LTP.
+For CPU consolidation verification ebizzy is included in utils dir.
To run cpu consolidation test user has to provide -w <workload> -l
<sched_mc_level>.
-Refer to README in LTPROOT/utils/benchmark/ebizzy-0.2 directory for
details of ebizzy.
+Refer to README in utils/ebizzy-0.2 directory for details of ebizzy.
diff -uprN
ltp-full-20090228_orig/testcases/kernel/power_management/runpwtests.sh
ltp-full-20090228/testcases/kernel/power_management/runpwtests.sh
---
ltp-full-20090228_orig/testcases/kernel/power_management/runpwtests.sh
2009-03-06 08:48:37.000000000 -0600
+++ ltp-full-20090228/testcases/kernel/power_management/runpwtests.sh
2009-03-06 09:03:47.000000000 -0600
@@ -31,6 +31,8 @@
# Exporting Required variables
+. pm_include.sh
+
export TST_TOTAL=1
LTPTMP=${TMP}
export PATH=${PATH}:.
@@ -114,3 +116,19 @@ check_cpuidle_sysfs_files.sh || RC=$?
if [ $RC -eq 1 ] ; then
tst_resm TFAIL "CPUIDLE sysfs tests failed"
fi
+
+# Test sched_smt_power_savings interface on HT machines
+if [ -f /sys/devices/system/cpu/sched_mc_power_savings ] ; then
+ test_sched_smt.sh || RC=$?
+ if [ $RC -eq 1 ] ; then
+ tst_resm TFAIL "SCHED_MC sysfs tests failed"
+ fi
+else
+ is_hyper_threaded
+ hyper_threaded = $?
+ if [ $hyper_threaded == 1 ]; then
+ tst_resm TFAIL "Required kernel configuration for SCHED_SMT NOT
set"
+ else
+ tst_resm TCONF "Required Hyper Threading support in the system
under
test"
+ fi
+fi
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list