commit | e6352fee78f7a0adc8b3fa3c6a061086cd22dd8e | [log] [tgz] |
---|---|---|
author | Michele Di Giorgio <michele.digiorgio@arm.com> | Mon Apr 25 17:23:18 2016 +0100 |
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | Mon Apr 25 17:23:21 2016 +0100 |
tree | 50b1d89f3b2fb21932ec455503906d3518270ba3 | |
parent | 36cda2dd4ba2af9d9c61e4c04a5500956c9aff6e [diff] |
ipynb: add function to launch n apps before flinging recents This adds the possibility to launch a certain number of apps from the list of available apps on the device before starting the Recents Flinger workload. Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
NOTE: This is still a work in progress project, suitable for: developers, contributors and testers.
None of the provided tests should be considered stable and/or suitable for the evaluation of a product.
The LISA project provides a toolkit that supports regression testing and interactive analysis of workload behavior. LISA stands for Linux Integrated/Interactive System Analysis. LISA's goal is to help Linux kernel developers to measure the impact of modifications in core parts of the kernel. The focus is on the scheduler, power management and thermal frameworks. However LISA is generic and can be used for other purposes too.
LISA provides an API for modeling use-cases of interest and developing regression tests for use-cases. A ready made set of test-cases to support regression testing of core kernel features is provided. In addition, LISA uses the excellent IPython notebook framework and a set of notebooks are provided for live experiments on a target platform.
This note assumes installation from scratch on a freshly installed Debian system.
$ sudo apt-get install build-essential autoconf automake libtool pkg-config
$ sudo apt-get install nmap trace-cmd sshpass kernelshark net-tools
$ sudo apt-get install python-matplotlib python-numpy libfreetype6-dev libpng12-dev python-nose
$ sudo apt-get install python-pip python-dev
$ sudo pip install --upgrade trappy bart-py devlib
NOTE: TRAPpy and BART depend on ipython and ipython-notebook. Some IPython Notebooks examples are written in JSON nbformat version 4 which might not be supported by the IPython version installed by apt-get (current version is 1.2.1-2 which does not support such format). In this case, it is needed to remove IPython and install it using pip instead:
$ sudo apt-get remove ipython ipython-notebook $ sudo pip install ipython ipython-notebook
The code of the LISA toolkit with all the supported tests and Notebooks can be cloned from the official GitHub repository with this command:
$ git clone https://github.com/ARM-software/lisa.git
The target platform to be used for experiments with LISA must satisfy the following requirements:
Most of the tests targets a kernel with support for some new frameworks which are currently in-development:
Tests targeting an evaluation of these frameworks requires also a set of tracepoint which are not available in mainline kernel. The series of patches required to add to a recent kernel the tracepoints required by some tests are available on this git repository:
git://www.linux-arm.org/linux-power.git lisa/debug
The patches required are: lisa/debug_base..lisa/debug
Once cloned, source init_env to initialized the LISA Shell, which provides a convenient set of shell commands for easy access to many LISA related functions.
$ source init_env
To start the IPython Notebook Server required to use this Notebook, on a LISAShell run:
[LISAShell lisa] \> lisa-ipython start Starting IPython Notebooks... Starting IPython Notebook server... IP Address : http://127.0.0.1:8888/ Folder : /home/derkling/Code/lisa/ipynb Logfile : /home/derkling/Code/lisa/ipynb/server.log PYTHONPATH : /home/derkling/Code/lisa/libs/bart /home/derkling/Code/lisa/libs/trappy /home/derkling/Code/lisa/libs/devlib /home/derkling/Code/lisa/libs/wlgen /home/derkling/Code/lisa/libs/utils Notebook server task: [1] 24745
The main folder served by the server is: http://127.0.0.1:8888/
Once the server is started you can have a look at the provide tutorial notebooks are accessible starting from this link: http://127.0.0.1:8888/notebooks/tutorial/00_LisaInANutshell.ipynb
This project is licensed under Apache-2.0.
This project includes some third-party code under other open source licenses. For more information, see lisa/tools/LICENSE.*
Contributions are accepted under Apache-2.0. Only submit contributions where you have authored all of the code. If you do this on work time make sure your employer is cool with this.