summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2014-12-10Change permissions of coresight-test1.shVijay Dandiga
2014-12-10Add coresight test script working versionVijay Dandiga
2014-10-09Add latest test script and yamlVijay Dandiga
2014-10-07coresight: Add multi source and sink supportVijay Dandiga
2014-09-17Adding coresight-test.shVijay Dandiga
Signed-off-by: Vijay Dandiga <vijay.dandiga@linaro.org>
2014-09-08test-kvm: print qemu versionRiku Voipio
Print used gcc version so nobody gets confused what qemu is used for tests. Change-Id: Ib9834f68a542b8a7426c1d9fa2608f526cc5989d Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-09-04Remove outdated pm-qa scripts from commons dirLisa Nguyen
Effort to clean up the common directory by removing outdated pm-qa scripts that are no longer in use. Change-Id: I48f3912869effd11f865d38b272231a8be91fac3 Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
2014-08-25kvm: disable bridge on aarch64Riku Voipio
Don't set up bridge on aarch64 - even if kernel has tun. ARMv8 tests are run on nfsroot so bringing bridge up will kill the job. Change-Id: Ia25fcf2d8955b1f8f73b45edba2899628e4fef44
2014-08-20odp-on-isolated-cpu.sh: Initial script for odp isolationSantosh Shukla
Script to run odp application on isolated cores. This script will isolate CPUs using is-cpu-isolated.sh, will then start odp threads on isolated CPUs. It will then get isolation time and clear cpusets using is-cpu-isolated.sh. Command to run ./odp-on-isolated-cpu.sh This will run odp threads on isolated cores 1 and 2. Change-Id: I5e7b4b7e0ffd3fc50b04987ed50835cc1c490bd8 Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-08-20is-cpu-isolated.sh: broken x86 quirk switch in getoptsSantosh Shukla
In case of x86 - spurious IPI lead to break isolation so mask them in script for temporary period. Only applicable for x86 HW. FIXME(TODO). Added -q switch to enable quirk for x86 isolation test. run this command - ./is-cpu-isolated.sh -q Change-Id: If3aa73755cd9f9a4c39debb99c70ed679dcbb40d Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-08-20is-cpu-isolated.sh: exit early in case of non-stress appSantosh Shukla
By default isolation script runs 'stress' tasks on isolated cores. This patch changes it to not run 'stress' if user wants not to use 'stress' but some other test. Change-Id: I21f0d085f075adde4666bc8e4cb8747426a7b1ff Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-08-20is-cpu-isolated.sh: show script version informationSantosh Shukla
add -v (version) switch into getopt to show version information. Change-Id: I92f8bb240e4b1658f52334e1c0b1d248a16c7a82 Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-08-20is-cpu-isolated.sh: use getopts for argument parsingSantosh Shukla
Currently argument list has to be passed in a specific order for it to work. This isn't scalable as argument list grows. Lets parse arguments with getopts instead to scale better. New command format to test isolation. ./is-cpu-isolated.sh -hv -c <comma separated cpulist> -t <task_name> -f <isolation_func_type> -s <sample count> -d <min isol duration> By default <cpu=cpu1>, <task=stress>, <func_type=all>, <sample_count=1> and <min isol duration =10> Possible function types (-f) 1. isolate : Isolate core(s) for task 2. duration : Application isolation duration 3. clear : Clear cpuset rules used for step1 4. nonisol_list : Update list of all nonisol cpus 5. all : do step1,2,3 Examples : 1) run odp_isolation application on cpu no 1 and 2, function type <isolation> ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f isolate 2) Get step1 isolate <duration> ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f duration 3) <clear> cpuset for step1 ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f clear 4) "-f all" == do step1),2),3) ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f all 5) Update list of all nonisol cpus ./is-cpu-isolated.sh -c 1,2 -t odp_isolation -f nonisol_list 6) Running with no argument execute default ./is-cpu-isolated.sh From now onwards is-cpu-isolated.sh script will run other isolation application unlike default stress application. Change-Id: Id9de13c1353cfc4e5f668a413c4ec666069e0b76 Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-08-15LTP: return 'fail' result in case anything goes wrongMilosz Wasilewski
ltpfixup.sh script was returning result 'pass' when there was no LTP tests available in rootfs. This problem is fixed now. As a side effect the LAVA test LTP_xxx will become 'failed' in case any of the LTP tests fails during execution (runltp return something else than 0). Change-Id: Ib9881741a6311afaac3c4346283a9a62b599fe69 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2014-08-07ubuntu: adding uprobe systemtap testsuiteNaresh Kamboju
Uprobes/kprobes enabled in linux linaro kernel. Systemtap test suite will be used for testing uprobes/kprobes. install-uprobe-kernel-on-arndale.yaml will be used for building and installing linux linaro kernel on arndale with uprobes configs enabled. native-uprobes-systemtap-test.yaml will be used for build, install and installcheck systemtap testsuite on target. This is long running test could run upto 25 hours. This complete testing need 10 GB space on test image. Change-Id: I499609f0537dc2243d5ab7e16dc2cc9c12ed738a Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
2014-08-06pmqa: for android change path to /system/binSanjay Singh Rawat
in android execute permission for binaries is removed, when they are moved to /data/benchmark dir, because of this limitation in the system moving pmqa to /system/bin path bug : https://bugs.linaro.org/show_bug.cgi?id=156 Change-Id: I5e02e3aede3dd66a6d9b58cfde386d1ab3631044 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2014-08-04test-kvm: ensure latest mustang imageRiku Voipio
Currenlty the the scripts will only pull latest version of built image, if all linux-kvm variants (mustang, vexpress, arndale) work. However, if one of the three fails, old kernel and module will be pulled. Fix this by explicitly checking the latest time mustang has built succesfully. Change-Id: Ibb695f8324618b85ae400561a83a3e435bde1d26 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-08-02pmqa: correct sanity check return valueSanjay Singh Rawat
- features which are not supported will be skipped - bug 166 Change-Id: Ifaf0a659c61984fe397f3b39fa3bfe23c8a905a9
2014-07-14is-cpu-isolated: Fix incorrect list of non-isol-cpussantosh shukla
update_non_isol_cpus() was incorrectly expecting ISOL_CPUS to contain only one CPU and would fail badly if a comma separated list of CPUs is passed to it. For example: run ./is_isol_cpus 1,2 [out of 4 physical cpu, cpu 1 & 2 to isolate] would result in: Isolate: CPU 1,2 and leave others: 0,1,2,3 Fix it by adding another routine to find if a cpu is isolated one or not. Change-Id: I64e853dc55efd8fb668e2a3f628e5497aa6d009f Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
2014-07-02kvm: add armv8 supportRiku Voipio
Wide range of changes needed to allow kvm tests to run on both ARMv7 and ARMv8 targets. Currently includes some ugly hacks to faciliate booting mustang from nfs (can't use tun). Change-Id: I92ab87b6439b464db14fdef0cbac41efd64ef9a8 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-07-02is-cpu-isolated: formatting udpatesViresh Kumar
Change-Id: I5f42ee74fc2b6a319a5a086acf8bd388dd92423b Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: skip testing isolation initiallyViresh Kumar
Currently we do a isolation test before starting the major loop for 'n' samples. It was done to precisely know when was interruption last happened. As things are more stable now, we can just check that from the loop. Change-Id: I43bdc5b515e4e3b19f058c83eebf1f7ff509ff6a Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: rename ISOL_CPU to ISOL_CPUSViresh Kumar
Change-Id: I99dea8c9f648092d236a57a222f9e4e1ddedcc6c Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: Isolate more than one CPUViresh Kumar
Until now, we only handle isolation for One cpu. But for better test coverage, we actually need support for more CPUs. This patch adds support for more than one CPU in isolation script. Change-Id: I169766adf900289f4eaf955e1d12f4d3394f642c Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: add delay before removing dplane cpusetViresh Kumar
Change-Id: I4f17592c20027cd4739e188e1c9e14c99717b027 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: create per-cpu cpuset directoriesViresh Kumar
So that we can isolate all CPUs. Change-Id: I8c1baef9fe23950cc8752e7df3628af8c5d8e3bb Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: Run --stress on the right CPUViresh Kumar
Currently we were creating 'stress' on control plane CPU and then migrating it to data plane one. Instead create it on data plane CPU only. Change-Id: I63a38db978e211fada66eb4a646b51517519699f Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: No need to set cpuset/cpus againViresh Kumar
It was done again earlier because we were hotplugging CPUs, but its not done anymore and so this isn't required. Remove it. Change-Id: I5844252f2c95f2c6f1335bd4e54363dc34339a48 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: Move routines aroundViresh Kumar
Just for better readability. Change-Id: I59da04d24519c2fa50ca5dc19636256c7ed2d50d Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: split out sysfs-related-tuning into a separate routineViresh Kumar
Change-Id: Ic2dab8318e6c120ca4802a182e42399c695f4577 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-02is-cpu-isolated: Split out separate routine for cpufreq stuffViresh Kumar
Change-Id: Iefcaf437dd59e8b9d314b4a168db589f877fa47e Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-07-01is-cpu-isolated: Keep an eye on all possible interruptsViresh Kumar
Until now we were only concerned about interruption from ticks and so were checking only interrupts from arch_timer. But there are few problems here: - To check which row belongs to tick-timer, we need to grep for a string. It can be "arch-timer", "twd", "NMI", etc for different platforms and so the script was never generic. - Also, interruption is possible from other peripherals, PPI, SPI, IPC, etc This patch adds in another AWK script to get total number of interrupts for any CPU (though it supports returning that for all CPUs at once, its not used currently). We use this instead of looking at tick-timer. Change-Id: I2aab004314459a928e5ebc505d03a4525957c40e Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-06-27is-cpu-isolated: add prefix to sched_load_balanceViresh Kumar
Commit: 176ea92 (is-cpu-isolated: Fix name of cpuset files) missed fixing this entry. Fix it. Change-Id: I3a724e4fc1bf4e36a84bf7ee52a5ae37b0287cd7 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-06-11move to virtio blockRiku Voipio
Switch to virtio block, since sd is emulated interface. While at it, improve installing and compiling hackbench. Avoid compiling in steps since we have scripts in place. Make sure we have gcc and others installed for compiling. Change-Id: I942e6bbafb09b7739156fb8d15f41c6334f16c8c Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-06-09LTP: Fixed path problem on UbuntuMilosz Wasilewski
On Ubuntu LTP gets installed in the LAVA test execution directory. For this reason the ltpfixup.sh wasn't working correctly so far. It had the /opt/ltp path hardcoded. This patch fixes the issue. Change-Id: I4bd9389d63aea954b01e7162a4a0518aa2223750 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2014-06-04is-cpu-isolated: disable cpu-hotplug hackViresh Kumar
cpu-hotplug was a HACK which was added initially to get everything migrated out. But kernel now has better support for isolation and so this can be disabled now. Leave it commented so that it can be used for testing later. Change-Id: I5dd7b9055f7eac45f1c7447c05be5ade4f8ef490 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-06-04is-cpu-isolated: rename rt as dplane and gp as cplaneViresh Kumar
We are creating two cpusets one for data plane, name RT and other for control plane, named GP currently. Lets give them proper names to avoid confusion. Change-Id: I7c4d7a1fb05ec910d7a9ac879571e27786ec2e2b Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-06-04is-cpu-isolated: Fix name of cpuset filesViresh Kumar
Based on configurations we may or may not have cpuset files names prefixed with "cpuset.". Get provision for this in our script so that it doesn't break for those platforms which have this prefixed. Change-Id: I8cf569d5bdd7f96ec3a86cb2aba3a767a3aa1bc1 Reported-by: Santosh Shukla <santosh.shukla@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-05-21LTP: fixed result parsing when running each package separatelyMilosz Wasilewski
When running packages separately in the same LAVA job, results were concatenated. Now result files are stored in the test execution directory and are separate for each lava-test-shell. ltpfixup.sh script was moved to 'common' directory. Definition was unified between Ubuntu and OE. Change-Id: I43372b0d060d88f871407bc4b1b44c2cf94ef333 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2014-05-09Merge "is-cpu-isolated: Add another parameter to call specific parts"Fathi Boudra
2014-05-09is-cpu-isolated: Add another parameter to call specific partsViresh Kumar
Change-Id: Ic5e831c1330ef3d9f864ee19d74208b694bc5269 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-05-07BP: TCP Replay to pump pcap traffic for testsWeilong Chen
Establish basic sanity and regression tests, this is a special case test since it actually generates traffic for other test cases Change-Id: I711c5a4683b116ad54cc8c69e020dcf041fa7317 Signed-off-by: Weilong Chen <weilong.chen@linaro.org>
2014-04-24is-cpu-isolated.sh: Enable tracking isolation for system with more than 2 CPUsViresh Kumar
Till now this scripts was only useful for a system with two CPUs as there were some assumptions. But there were requirements from multiple people about supporting more platforms which might have more than two cores. Hence this patch, it enables support for multiple cores and any core can be isolated (leaving core 0, which can't be isolated in kernel as that's the boot CPU). Order of parameters is also changed based on what user may want. And so nohz-isolation.yaml is updated in the same patch so that things don't break inbetween. Change-Id: I0656131a6a6d043e662d16f05dd08f172f2a3d9d Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-04-24is-cpu-isolated.sh: rearrange codeViresh Kumar
Change-Id: I939381ec2240a9f0c0ba5075164f0881c4bdf252 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-04-24is-cpu-isolated.sh: offload irqs and change cpufreq governorViresh Kumar
Change-Id: I56a9c51a0c61ec338ece94041b94ab643efb7285 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-04-24is-cpu-isolated.sh: arrange routines in the order they are calledViresh Kumar
Just for readability. Change-Id: Idfbd4acc853038d108244a3ca79c73096350bc8c Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-04-24is-cpu-isolated.sh: Capitalize all parametersViresh Kumar
Change-Id: I92ef53de6dbb3712b8463f6d1a7c0322b53b2730 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2014-04-11pmqa: remove utils from the subtest directory listSanjay Singh Rawat
- utils dir is having binaries which will be used by other tests of the suite. No need to consider it as a subtest. - bug : 1290766 Change-Id: I3f766d51ac423c7d4f4bc29bb892114746548855
2014-04-09kvm: add sanity check for kvm testHongbo Zhang
If success of former step is precondition of later step, when the former step fails, the later step should be skiped, e.g. if the kvm initialization fails, or the kvm.qcow2.gz isn't downloaded correctly, all the following tests should be skipped, otherwise more failures are generated meanlessly, thus bug reporter and analyzer aren't clear easily about which test fails. Change-Id: Iaaa5c6842f8c6864b309cc6e7716a966986b03ef Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
2014-04-03is-cpu-isolated: quiesce CPU by setting cpuset.quiesce optionViresh Kumar
A new feature is being introduced in kernel to migrate away all timers/hrtimers away from CPU in question. Lets use it. Change-Id: I63dfdb69cbb281e90ea1aa5df9f8544120e2dc66 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>