aboutsummaryrefslogtreecommitdiff
path: root/cpuidle
AgeCommit message (Collapse)Author
2019-05-02Android.mk: fix compiling errors caused by unused parametersHEADmasterZhengwang Ruan
Android enables '-Wall -Werror' compiling parameters by default, as a result compiling errors are caused in cpuidle and utils, so add '-Wno-error' to disable this check. Signed-off-by: Zhengwang Ruan <ruanzw@xiaopeng.com>
2016-09-15Fix build with Bionic 7.xBernhard Rosenkränzer
Change-Id: I98a495a9b6750f1ff33b7a6c4c875481e2698070 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2015-03-13include <sys/time.h>Bernhard Rosenkränzer
On glibc, <sys/timex.h> includes <sys/time.h> -- on Bionic, it doesn't, causing setitimer and gettimeofday to be undeclared Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Change-Id: Ibc7c1e31720f915be2e3d63ef0e9b7d156bda844
2015-03-06Fix build with Bionic from AOSP masterBernhard Rosenkränzer
Current Bionic (including 5.0.x releases) provides timex, but still not adjtimex Change-Id: Ice82b5ad98ad94ad8ea241f629944a9e988dffbc Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2015-02-20Make sure pm-qa builds when we build systemimageVishal Bhoj
Signed-off-by: Vishal Bhoj <vishal.bhoj@hackbox.linaro.org>
2015-02-18Fix Android.mk for building on Android 5.0Vishal Bhoj
Signed-off-by: Vishal Bhoj <vishal.bhoj@hackbox.linaro.org> [Fix minor merge issues so Vishal's patch could apply.] Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2015-02-02cpuidle: Use is_root() function in cpuidle_03Lisa Nguyen
Instead of using a command to check if the user is root, use the is_root() function to perform that check in the cpuidle_03.sh script Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2015-02-02Fix the syntax to call C programsLisa Nguyen
In PM-QA, there are external programs written in C (e.g. cpuidle_killer, uevent_reader) that run in the background while some scripts are being executed. However, remove the extra slash and period when it's not necessary and create variables to store the path of these programs. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2015-02-02Remove local keywords and uninitialized variablesLisa Nguyen
Remove keywords such as "let", "typeset", and "local" that are defined in BASH. Also, clean up any unused variables in the process. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2015-02-02Remove sigtrap prefixes for trapsLisa Nguyen
Remove signals that begin with SIG* since that is considered a bashism. Use the POSIX-compliant version to list signals to be used with the trap command. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2015-02-02Fix path to library files and change shebang lineLisa Nguyen
'source' is a BASH keyword. Edit the path to the library files by using the POSIX version of the 'source' keyword. Also change the interpreter from #!/bin/bash to #!/bin/sh. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2014-09-10Display all skipped test results in LAVALisa Nguyen
Allow LAVA to record all the skipped test cases including the ones that will not be executed due to failed sanity checks. This enhancement will keep the number of PM-QA results more consistent across multiple platforms. Fix for Bug #386: https://bugs.linaro.org/show_bug.cgi?id=386 Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2014-08-06android: move pmqa to system/bin pathSanjay Singh Rawat
- execute permission for utils is removed when they are copied to data/benchmark, moving pmqa to system/bin resolves this issue. - bug : https://bugs.linaro.org/show_bug.cgi?id=156 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-07-16cpuidle: increase wait time for child to finishSanjay Singh Rawat
- fix for bug 152 on Panda, wait for more time for child to finish - don't wait for child pid for offlined cpus - bug 152 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-07-07fix: add Err string for timeoutSanjay Singh Rawat
lava searches for result pattern in the same line, adding _Err_ string in timeout case here Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-20Revert "pmqa: cpuidle: add test to check cpuidle statistics"Sanjay Singh Rawat
This reverts commit f698a6736fc105beca5feca8e5f5e4b6c97c41c8. Removing as this has evolved to idlestat tool https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/Tools/Idlestat Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-12cpuidle: add cpu number in the cpuidle_killer logs for readabilitySanjay Singh Rawat
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-05-04cpuidle_killer: allocate per cpu process array dynamicallySanjay Singh Rawat
currently percpu process array is set to 2, for cpus >2 test results in segfault Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-02-20test feature supported before running suiteSanjay Singh Rawat
add a basic sanity file which will check for feature support and will proceed only if feature supported Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-02-20add common function to check the useridSanjay Singh Rawat
id command option doesn't return same output, as it does for ubuntu. Add function with will check the system type and return the userid. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-12-15change options for numerical comparisionSanjay Singh Rawat
use directory test option for cpufreq test and add warning message for hotplug 07 test Signed-off-by: Carlos Hernandez <ceh@ti.com> Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-08-21update url for the testsSanjay Singh Rawat
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-10pm-qa: change result message for testsSanjay Singh Rawat
- change the result message for each subtest, so that it won't interfere with lava log parsing. Report total pass and fail count for tests. - bug: https://bugs.launchpad.net/linaro-power-qa/+bug/1156614 - change permission in cputopology scripts for execution Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-10pm-qa: change android out dir to data partitionSanjay Singh Rawat
- pmqa should be on a RW permission partition to function properly. New path is /data/benchmark/pm-qa - bug: https://bugs.launchpad.net/linaro-power-qa/+bug/1156610 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-10pmqa: cpuidle: add test to check cpuidle statisticsDaniel Lezcano
Add functionality to record the current runtime cpuidle statistics and show the same. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2012-11-28pm-qa: run sanity check before running test casesRajagopal Venkat
run sanity test for each functionality if present. If functionality enabled, then run all respective test cases. This patch also adds sanity checks for cpuidle and sched_mc. Signed-off-by: Rajagopal Venkat <rajagopal.venkat@linaro.org>
2012-11-28Update for Android build systemkejun.zhou
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
2012-11-28Add Android.mk for pm-qa in Android system.kejun.zhou
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
2012-11-28Change some head files in cpuidle_kill.c for pm-qa in Android system.kejun.zhou
Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
2012-05-02add cpuidle_02 and cpuidle_03 testsDaniel Lezcano
This patch provides a couple of tests for cpuidle in addition with a small program which behaves to sollicitate the cpuidle drivers especially when both cores needs to reach the same C-states. The program forks as many online processors present on the system and set the affinity to it. Then it runs, during 120 secs, small chunks of busy loops and idle loops. When there is something wrong with the cpuidle driver, this program often triggers the problem which results in a kernel panic, tasks hung warning or system hang. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-11-15change execution modeDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-11-15check the cpuidle filesDaniel Lezcano
This first test is trivial and check the presence of the cpuidle files in sysfs. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-11-15Add the cpuidle test caseDaniel Lezcano
Add the Makefile rule for cpuidle test cases. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>