-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/30/2011 11:09 AM, Amit Kucheria wrote:
> On 11 Jun 30, Daniel Lezcano wrote:
>> These tests are used to test the cpufreq driver on ARM architecture.
>> As the cpufreq is not yet complete, the test suite is based on the cpufreq
>> sysfs API exported on intel architecture, assuming it is consistent across
>> architecture.
>>
>> The different tests are described at:
>>
>> https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts
>>
>> Each test's header contains an URL to the anchor related item of this web 
>> page
>> describing the script.
>>
>> Daniel Lezcano (2):
>>   cpufreq: add a test set for cpufreq
>>   cpufreq: check the frequency affect the performances
>>
>>  Makefile           |    6 ++
>>  cpufreq/test_01.sh |   43 ++++++++++
>>  cpufreq/test_02.sh |   43 ++++++++++
>>  cpufreq/test_03.sh |   64 ++++++++++++++
>>  cpufreq/test_04.sh |   85 +++++++++++++++++++
>>  cpufreq/test_05.sh |  145 ++++++++++++++++++++++++++++++++
>>  cpufreq/test_06.sh |  236 
>> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>>  utils/Makefile     |   11 +++
>>  utils/cpucycle.c   |  102 ++++++++++++++++++++++
>>  utils/nanosleep.c  |   45 ++++++++++
>>  10 files changed, 780 insertions(+), 0 deletions(-)
>>  create mode 100644 cpufreq/test_01.sh
>>  create mode 100644 cpufreq/test_02.sh
>>  create mode 100644 cpufreq/test_03.sh
>>  create mode 100644 cpufreq/test_04.sh
>>  create mode 100644 cpufreq/test_05.sh
>>  create mode 100644 cpufreq/test_06.sh
>>  create mode 100644 utils/Makefile
>>  create mode 100644 utils/cpucycle.c
>>  create mode 100644 utils/nanosleep.c
>>
> 
> Daniel,
> 
> The scripts themselves look ok and the documentation is excellent. 

Thanks

But I'm in
> two minds regarding the location of the documentation though.
> 
> While having it on a wiki in the current form allows people w/o access to the
> code to browse through the docs, it means that the 'comments' are at a
> different place from the code.

I though, once commited, the patches to add a link for each test
description in the wiki page to the corresponding file in the git pm-qa
repo.

> But as long as you're confident this works for you, I'm ok with it.
> 
> Once youv've published the tree, please get in touch with Paul Larson to
> start pulling these scripts into LAVA.

Sure.

> I'd like to see what the reports would
> look like.

I added in attachment the result of these scripts on a fully working
cpufreq framework on my intel box. That will show the ouput of the tests.

But the cpufreq is not complete on a pandaboard, so results won't be
really nice.


- -- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJODEV7AAoJEAKBbMCpUGYA60YH+QGBcRseV68zwcMcaF7HLnBm
AQVJti3VqIlq535wJj/tk2wymosWtZJSSjRI06G1twXZ2Mzw6K65aEj4KM6dJuji
rdtkIF3+T+FHxPuhBkYuv5rIa2DRGiKxoUgIf8GZhFSJB5z1+SjU3muQFe292DL/
U/hLmtam1vzBDs/+Q3iA/DdX3N/ZYu21xAfmyDhT6vZgTXenaK++fFi04dmX8oxQ
fz/yrfUkEPfKqiwnn7L+VQnnKi8s39unbKmaD9bUk9UgWzqB1nWe4EW1T1OpWUUb
S5G5ebjt72B4tfTKeFkOciyQzYcYShfCCoRV0DZFEIin7QLtBeTPZv5V2Lf8BfE=
=9KXc
-----END PGP SIGNATURE-----
make[1]: Entering directory `/home/dlezcano/work/src/pm-qa/utils'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/dlezcano/work/src/pm-qa/utils'
make[1]: Entering directory `/home/dlezcano/work/src/pm-qa/cpufreq'

--- Running test_01.sh ---
for 'cpu0':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu1':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu2':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu3':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu4':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu5':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu6':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS
for 'cpu7':
checking scaling_available_frequencies file presence ...              PASS
checking scaling_cur_freq file presence ...                           PASS
checking scaling_setspeed file presence ...                           PASS

--- Running test_02.sh ---
for 'cpu0':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu1':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu2':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu3':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu4':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu5':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu6':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS
for 'cpu7':
checking scaling_available_governors file presence ...                PASS
checking scaling_governor file presence ...                           PASS

--- Running test_03.sh ---
checking if we are root ...                                           PASS
for 'cpu0':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu1':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu2':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu3':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu4':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu5':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu6':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS
for 'cpu7':
setting governor to conservative ...                                  PASS
setting governor to ondemand ...                                      PASS
setting governor to userspace ...                                     PASS
setting governor to powersave ...                                     PASS
setting governor to performance ...                                   PASS

--- Running test_04.sh ---
checking if we are root ...                                           PASS
for 'cpu0':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu1':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu2':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu3':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu4':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu5':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu6':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS
for 'cpu7':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
setting frequency to 2000000 KHz ...                                  PASS

--- Running test_05.sh ---
checking if we are root ...                                           PASS
saving governor for cpu0 ...                                          DONE
saving governor for cpu1 ...                                          DONE
saving governor for cpu2 ...                                          DONE
saving governor for cpu3 ...                                          DONE
saving governor for cpu4 ...                                          DONE
saving governor for cpu5 ...                                          DONE
saving governor for cpu6 ...                                          DONE
saving governor for cpu7 ...                                          DONE
for 'cpu0':
setting governor to 'ondemand' ...                                    PASS
for 'cpu1':
setting governor to 'ondemand' ...                                    PASS
for 'cpu2':
setting governor to 'ondemand' ...                                    PASS
for 'cpu3':
setting governor to 'ondemand' ...                                    PASS
for 'cpu4':
setting governor to 'ondemand' ...                                    PASS
for 'cpu5':
setting governor to 'ondemand' ...                                    PASS
for 'cpu6':
setting governor to 'ondemand' ...                                    PASS
for 'cpu7':
setting governor to 'ondemand' ...                                    PASS
checking 'ondemand' configuration directory ...                       PASS
for 'cpu0':
setting governor to 'conservative' ...                                PASS
for 'cpu1':
setting governor to 'conservative' ...                                PASS
for 'cpu2':
setting governor to 'conservative' ...                                PASS
for 'cpu3':
setting governor to 'conservative' ...                                PASS
for 'cpu4':
setting governor to 'conservative' ...                                PASS
for 'cpu5':
setting governor to 'conservative' ...                                PASS
for 'cpu6':
setting governor to 'conservative' ...                                PASS
for 'cpu7':
setting governor to 'conservative' ...                                PASS
checking 'conservative' configuration directory ...                   PASS
for 'cpu0':
setting governor to 'userspace' ...                                   PASS
for 'cpu1':
setting governor to 'userspace' ...                                   PASS
for 'cpu2':
setting governor to 'userspace' ...                                   PASS
for 'cpu3':
setting governor to 'userspace' ...                                   PASS
for 'cpu4':
setting governor to 'userspace' ...                                   PASS
for 'cpu5':
setting governor to 'userspace' ...                                   PASS
for 'cpu6':
setting governor to 'userspace' ...                                   PASS
for 'cpu7':
setting governor to 'userspace' ...                                   PASS
checking 'ondemand' configuration directory is not there ...          PASS
checking 'conservative' configuration directory is not there ...      PASS
for 'cpu0':
setting governor to 'ondemand' ...                                    PASS
for 'cpu1':
setting governor to 'conservative' ...                                PASS
checking 'ondemand' configuration directory ...                       PASS
checking 'conservative' configuration directory ...                   PASS
restoring governor 'ondemand' for cpu0 ...                            DONE
restoring governor 'ondemand' for cpu1 ...                            DONE
restoring governor 'ondemand' for cpu2 ...                            DONE
restoring governor 'ondemand' for cpu3 ...                            DONE
restoring governor 'ondemand' for cpu4 ...                            DONE
restoring governor 'ondemand' for cpu5 ...                            DONE
restoring governor 'ondemand' for cpu6 ...                            DONE
restoring governor 'ondemand' for cpu7 ...                            DONE

--- Running test_06.sh ---
checking if we are root ...                                           PASS
saving governor for cpu0 ...                                          DONE
saving governor for cpu1 ...                                          DONE
saving governor for cpu2 ...                                          DONE
saving governor for cpu3 ...                                          DONE
saving governor for cpu4 ...                                          DONE
saving governor for cpu5 ...                                          DONE
saving governor for cpu6 ...                                          DONE
saving governor for cpu7 ...                                          DONE
for 'cpu0':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu0 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu0 at '2000000' KHz ...                       PASS
deviation 0.3 % for 2333000 is ...                                    VERY GOOD
deviation .300 % for 2000000 is ...                                   VERY GOOD
for 'cpu1':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu1 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu1 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu2':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu2 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu2 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu3':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu3 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu3 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu4':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu4 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu4 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu5':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu5 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu5 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu6':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu6 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu6 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
for 'cpu7':
setting governor to 'userspace' ...                                   PASS
setting frequency to 2333000 KHz ...                                  PASS
running 'cpucycle' on cpu7 at '2333000' KHz ...                       PASS
setting frequency to 2000000 KHz ...                                  PASS
running 'cpucycle' on cpu7 at '2000000' KHz ...                       PASS
deviation 0 % for 2333000 is ...                                      VERY GOOD
deviation 0 % for 2000000 is ...                                      VERY GOOD
restoring governor 'ondemand' for cpu0 ...                            DONE
restoring governor 'ondemand' for cpu1 ...                            DONE
restoring governor 'ondemand' for cpu2 ...                            DONE
restoring governor 'ondemand' for cpu3 ...                            DONE
restoring governor 'ondemand' for cpu4 ...                            DONE
restoring governor 'ondemand' for cpu5 ...                            DONE
restoring governor 'ondemand' for cpu6 ...                            DONE
restoring governor 'ondemand' for cpu7 ...                            DONE
make[1]: Leaving directory `/home/dlezcano/work/src/pm-qa/cpufreq'
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to