generic-poky/meta/lib/oeqa
Markus Lehtonen cee685ca0d oeqa.buildperf: functionality to drop kernel caches
Add a new utility class for dropping Linux kernel caches.  It uses sudo
and tee to write to the drop_caches file. Checking if the user has the
permissions to drop caches (without a password) is done by trying to
writing an invalid value to the drop_caches file. This way, we will find
if writing (with tee) is possible but not really dropping caches, yet.

User can avoid giving the password by adding something like:
<user> ALL = NOPASSWD: /usr/bin/tee /proc/sys/vm/drop_caches
to the system sudoers file.

(From OE-Core rev: c9cb248429ced50c96d11ba5361c272d4c9b9323)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-07-01 16:22:46 +01:00
..
buildperf oeqa.buildperf: functionality to drop kernel caches 2016-07-01 16:22:46 +01:00
controllers classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00
runtime oeqa: fix hasPackage, add hasPackageMatch 2016-06-23 14:26:14 +01:00
sdk oeqa: fix hasPackage, add hasPackageMatch 2016-06-23 14:26:14 +01:00
sdkext devtool: sdk-update: drop support for local updates 2016-05-21 22:24:57 +01:00
selftest selftest/testexport.py: Add test test_testexport_basic 2016-06-07 21:36:20 +01:00
utils oeqa.utils.commands: runCmd: return stderr output, too 2016-07-01 16:22:46 +01:00
oetest.py oeqa: fix hasPackage, add hasPackageMatch 2016-06-23 14:26:14 +01:00
runexported.py testexport.bbclass: Add support for testexport-tarball 2016-06-07 15:22:38 +01:00
targetcontrol.py classes/lib: Complete transition to python3 2016-06-02 08:24:01 +01:00