GithubHelp home page GithubHelp logo

global-localhost / bart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arm-software/bart

0.0 0.0 0.0 714 KB

Behavioural Analysis and Regression Toolkit

License: Apache License 2.0

Python 100.00%

bart's Introduction

BART Build Status Version

The Behavioural Analysis and Regression Toolkit is based on TRAPpy. The primary goal is to assert behaviours using the FTrace output from the kernel.

Target Audience

The framework is designed to cater to a wide range of audience. Aiding developers as well as automating the testing of "difficult to test" behaviours.

Kernel Developers

Making sure that the code that you are writing is doing the right thing.

Performance Engineers

Plotting/Asserting performance behaviours between different revisions of the kernel.

Quality Assurance/Release Engineers

Verifying behaviours when different components/patches are integrated.

Installation

The following instructions are for Ubuntu 14.04 LTS but they should also work with Debian jessie. Older versions of Ubuntu or Debian (e.g. Ubuntu 12.04 or Debian wheezy) will likely require to install more packages from pip as the ones present in Ubuntu 12.04 or Debian wheezy will probably be too old.

Required dependencies

Install additional tools required for some tests and functionalities

$ sudo apt install trace-cmd kernelshark

Install the Python package manager

$ sudo apt install python-pip python-dev

Install required python packages

$ sudo apt install libfreetype6-dev libpng12-dev python-nose
$ sudo pip install hypothesis numpy matplotlib pandas ipython[all]
$ sudo pip install --upgrade trappy

ipython[all] will install IPython Notebook, a web based interactive python programming interface. It is required if you plan to use interactive plotting in BART.

Install BART

$ sudo pip install --upgrade bart-py

For developers

Instead of installing TRAPpy and BART using pip you should clone the repositories:

$ git clone [email protected]:ARM-software/bart.git
$ git clone [email protected]:ARM-software/trappy.git

Add the directories to your PYTHONPATH

$ export PYTHONPATH=$BASE_DIR/bart:$BASE_DIR/trappy:$PYTHONPATH

Trace Analysis Language

BART also provides a generic Trace Analysis Language, which allows the user to construct complex relation statements on trace data and assert their expected behaviours. The usage of the Analyzer module can be seen for the thermal behaviours here

Scheduler Assertions

Enables assertion and the calculation of the following parameters:

Runtime

The total time that the task spent on a CPU executing.

Switch

Assert that a task switched between CPUs/Clusters in a given window of time.

Duty Cycle

The ratio of the execution time to the total time.

Period

The average difference between two switch-in or two switch-out events of a task.

First CPU

The first CPU that a task ran on.

Residency

Calculate and assert the total residency of a task on a CPU or cluster.

Examples

The Scheduler assertions also use TRAPpy's EventPlot to provide a kernelshark like timeline for the tasks under consideration. (in IPython notebooks).

A notebook explaining the usage of the framework for asserting the deadline scheduler behaviours can be seen here.

API reference

The API reference can be found in https://pythonhosted.org/bart-py

bart's People

Contributors

bjackman avatar derkling avatar javimerino avatar mdigiorgio avatar sinkap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.