On Fri, 2008-10-17 at 14:50 +0530, Nageswara R Sastry wrote: > The Power Management basic testcases are aimed at the user level testing > of the features like cpufrequency and sched_mc. More details are at README > > Signed-Off-By: Nageswara R Sastry <[EMAIL PROTECTED]>
Thanks once again Nageswara for contributing the Power Management Test cases to LTP. I have tested them on x86_64, ppc64 & i386 systems running 2.6.27 kernels with the following options enabled as per your README: CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_DEBUG=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_STAT_DETAILS=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_SCHED_MC=y ====================================================================== Comment 1: ====================================================================== The test cases are not yet integrated to LTP. So, even executing $LTPROOT/testcases/kernel/pwmng/runpwtests.sh alone will not help to execute the tests. So, you would require the following Patch along with the existing one: diff -uprN ltp-full-20081020/runtest/power_management_tests ltp-full-20081020.modified/runtest/power_management_tests --- ltp-full-20081020/runtest/power_management_tests 1970-01-01 00:00:00.000000000 +0000 +++ ltp-full-20081020.modified/runtest/power_management_tests 2008-10-20 09:17:04.000000000 +0000 @@ -0,0 +1 @@ +POWER_MANAGEMENT runpwtests.sh diff -uprN ltp-full-20081020/testcases/kernel/Makefile ltp-full-20081020.modified/testcases/kernel/Makefile --- ltp-full-20081020/testcases/kernel/Makefile 2008-09-30 12:36:39.000000000 +0000 +++ ltp-full-20081020.modified/testcases/kernel/Makefile 2008-10-20 09:29:58.000000000 +0000 @@ -1,4 +1,4 @@ -SUBDIRS = numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers +SUBDIRS = pwmng numa containers controllers connectors include fs io ipc mem pty sched security syscalls timers UCLINUX_SUBDIRS = syscalls all: ====================================================================== Comment 2: Errors Encountered on various architectures ====================================================================== 1) uname -a Linux 2.6.27-autokern1 #1 SMP Mon Oct 20 07:31:24 UTC 2008 ppc64 GNU/Linux # gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) <<<test_start>>> tag=POWER_MANAGEMENT stime=1224495541 cmdline="runpwtests.sh" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> incrementing stop Power Management 1 FAIL : Kernel version or Architecture not supported: Not running testcases MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020.modified/testcases/bin/check_config.sh: line 31: config_sched_mc: No such file or directory Power Management 1 FAIL : Required kernel configuration for SCHED_MC NOT set MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020.modified/testcases/bin/check_config.sh: line 31: config_cpu_freq: No such file or directory Power Management 1 FAIL : Required kernel configuration for CPU_FREQ NOT set <<<execution_status>>> duration=0 termination_type=exited termination_id=0 corefile=no cutime=0 cstime=0 <<<test_end>>> 2) uname -a Linux 2.6.27-autokern1 #1 SMP PREEMPT Mon Oct 20 07:30:55 UTC 2008 x86_64 GNU/Linux # gcc --version gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) <<<test_start>>> tag=POWER_MANAGEMENT stime=1224495490 cmdline="runpwtests.sh" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> incrementing stop MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz MISSING_FILE: can't find the required config file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_sched_mc: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: ---Valid test cases--- /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS: echo 0 > /sys/devices/system/cpu/sched_mc_power_savings /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS: echo 1 > /sys/devices/system/cpu/sched_mc_power_savings /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: ---Invalid test cases--- a /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo a > /sys/devices/system/cpu/sched_mc_power_savings 2 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo 2 > /sys/devices/system/cpu/sched_mc_power_savings abcefg /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo abcefg > /sys/devices/system/cpu/sched_mc_power_savings x1999 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo x1999 > /sys/devices/system/cpu/sched_mc_power_savings xffff /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo xffff > /sys/devices/system/cpu/sched_mc_power_savings -1 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo -1 > /sys/devices/system/cpu/sched_mc_power_savings -00000 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo -00000 > /sys/devices/system/cpu/sched_mc_power_savings 200000000000000000000000000000000000000000000000000000000000000000000000000000 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo 200000000000000000000000000000000000000000000000000000000000000000000000000000 > /sys/devices/system/cpu/sched_mc_power_savings ox324 /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo ox324 > /sys/devices/system/cpu/sched_mc_power_savings -0xfffffffffffffffffffff /root/subrata/ltp/ltp-full-20081020/testcases/bin/test_sched_mc.sh: Testcase PASS - Unable to execute: echo -0xfffffffffffffffffffff > /sys/devices/system/cpu/sched_mc_power_savings MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz MISSING_FILE: can't find the required config file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_cpu_freq: No such file or directory find: /sys/devices/system/cpu/cpu0/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu1/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu2/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu3/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu4/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu5/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu6/cpufreq/: No such file or directory find: /sys/devices/system/cpu/cpu7/cpufreq/: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_cpufreq_sysfs_files.sh: PASS: Checking cpu freq sysfs files cat: /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_govr.sh: PASS: Changing cpu governors cat: /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor: No such file or directory /root/subrata/ltp/ltp-full-20081020/testcases/bin/change_freq.sh: line 12: /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor: No such file or directory FATAL: Module cpufreq_conservative not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_conservative or check whether you compiled as module or not FATAL: Module cpufreq_powersave not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_powersave or check whether you compiled as module or not FATAL: Module cpufreq_userspace not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_userspace or check whether you compiled as module or not FATAL: Module cpufreq_conservative not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_conservative or check whether you compiled as module or not FATAL: Module cpufreq_powersave not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_powersave or check whether you compiled as module or not FATAL: Module cpufreq_userspace not found. /root/subrata/ltp/ltp-full-20081020/testcases/bin/pwkm_load_unload.sh: FAIL: Loading of module cpufreq_userspace or check whether you compiled as module or not <<<execution_status>>> duration=0 termination_type=exited termination_id=0 corefile=no cutime=4 cstime=2 <<<test_end>>> 3) uname -a Linux 2.6.27-autokern1 #1 SMP Mon Oct 20 00:45:37 PDT 2008 i686 GNU/Linux # gcc --version gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) <<<test_start>>> tag=POWER_MANAGEMENT stime=1224496022 cmdline="runpwtests.sh" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> incrementing stop /root/subrata/ltp/ltp-full-20081020/testcases/bin/runpwtests.sh: line 50: 21738 Floating point exceptioncheck_kv_arch MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_sched_mc: No such file or directory Power Management 1 FAIL : Required kernel configuration for SCHED_MC NOT set MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_cpu_freq: No such file or directory Power Management 1 FAIL : Required kernel configuration for CPU_FREQ NOT set <<<execution_status>>> duration=0 termination_type=exited termination_id=0 corefile=no cutime=3 cstime=2 <<<test_end>>> 4) uname -a Linux 2.6.27-autokern1 #1 SMP Mon Oct 20 07:40:06 UTC 2008 ppc64 GNU/Linux # gcc --version gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) <<<test_start>>> tag=POWER_MANAGEMENT stime=1224495879 cmdline="runpwtests.sh" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> incrementing stop /root/subrata/ltp/ltp-full-20081020/testcases/bin/runpwtests.sh: line 50: /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_kv_arch: cannot execute binary file MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz MISSING_FILE: can't find the required config file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_sched_mc: No such file or directory Power Management 1 FAIL : Required kernel configuration for SCHED_MC NOT set MISSING_FILE: can't find the required config file at /boot/config-2.6.27-autokern1 Trying for alternate file at /proc/config.gz MISSING_FILE: can't find the required config file at /proc/config.gz /root/subrata/ltp/ltp-full-20081020/testcases/bin/check_config.sh: line 31: config_cpu_freq: No such file or directory Power Management 1 FAIL : Required kernel configuration for CPU_FREQ NOT set <<<execution_status>>> duration=0 termination_type=exited termination_id=0 corefile=no cutime=0 cstime=1 <<<test_end>>> Can you kindly look into them and submit a refreshed patch once again ? Regards-- Subrata > > Thanks and Regards > R.Nageswara Sastry ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
