Clone this repo:
  1. c881adf DO NOT MERGE by Xin Li · 5 years ago main master oreo-mr1-iot-release android-o-mr1-iot-release-1.0.10 android-o-mr1-iot-release-1.0.12 android-o-mr1-iot-release-1.0.13 android-o-mr1-iot-release-1.0.14 android-o-mr1-iot-release-1.0.7 android-o-mr1-iot-release-1.0.8
  2. 41680f3 Snap for 4605948 from 08808a75e6fd92995ad2be2730e9334ba8ce1c8a to pi-release by android-build-team Robot · 6 years ago pie-cts-release pie-cuttlefish-testing pie-gsi pie-platform-release pie-r2-release pie-r2-s1-release pie-r2-s2-release pie-release pie-release-2 pie-s2-release pie-security-release pie-vts-release security-pi-release android-9.0.0_r1 android-9.0.0_r10 android-9.0.0_r17 android-9.0.0_r18 android-9.0.0_r2 android-9.0.0_r3 android-9.0.0_r48 android-9.0.0_r49 android-9.0.0_r5 android-9.0.0_r50 android-9.0.0_r51 android-9.0.0_r52 android-9.0.0_r53 android-9.0.0_r54 android-9.0.0_r55 android-9.0.0_r56 android-9.0.0_r57 android-9.0.0_r58 android-9.0.0_r59 android-9.0.0_r6 android-9.0.0_r60 android-9.0.0_r61 android-9.0.0_r7 android-9.0.0_r8 android-9.0.0_r9 android-cts-9.0_r1 android-cts-9.0_r10 android-cts-9.0_r11 android-cts-9.0_r12 android-cts-9.0_r13 android-cts-9.0_r14 android-cts-9.0_r15 android-cts-9.0_r16 android-cts-9.0_r17 android-cts-9.0_r18 android-cts-9.0_r19 android-cts-9.0_r2 android-cts-9.0_r20 android-cts-9.0_r3 android-cts-9.0_r4 android-cts-9.0_r5 android-cts-9.0_r6 android-cts-9.0_r7 android-cts-9.0_r8 android-cts-9.0_r9 android-security-9.0.0_r62 android-security-9.0.0_r63 android-security-9.0.0_r64 android-security-9.0.0_r65 android-security-9.0.0_r66 android-security-9.0.0_r67 android-security-9.0.0_r68 android-security-9.0.0_r69 android-security-9.0.0_r70 android-security-9.0.0_r71 android-security-9.0.0_r72 android-security-9.0.0_r73 android-security-9.0.0_r74 android-security-9.0.0_r75 android-security-9.0.0_r76 android-vts-9.0_r10 android-vts-9.0_r11 android-vts-9.0_r12 android-vts-9.0_r13 android-vts-9.0_r14 android-vts-9.0_r15 android-vts-9.0_r16 android-vts-9.0_r17 android-vts-9.0_r18 android-vts-9.0_r19 android-vts-9.0_r4 android-vts-9.0_r5 android-vts-9.0_r6 android-vts-9.0_r7 android-vts-9.0_r8 android-vts-9.0_r9 android-wear-9.0.0_r1 android-wear-9.0.0_r10 android-wear-9.0.0_r11 android-wear-9.0.0_r12 android-wear-9.0.0_r13 android-wear-9.0.0_r14 android-wear-9.0.0_r15 android-wear-9.0.0_r16 android-wear-9.0.0_r17 android-wear-9.0.0_r18 android-wear-9.0.0_r19 android-wear-9.0.0_r2 android-wear-9.0.0_r20 android-wear-9.0.0_r21 android-wear-9.0.0_r22 android-wear-9.0.0_r23 android-wear-9.0.0_r24 android-wear-9.0.0_r25 android-wear-9.0.0_r26 android-wear-9.0.0_r27 android-wear-9.0.0_r28 android-wear-9.0.0_r29 android-wear-9.0.0_r3 android-wear-9.0.0_r30 android-wear-9.0.0_r31 android-wear-9.0.0_r32 android-wear-9.0.0_r33 android-wear-9.0.0_r34 android-wear-9.0.0_r4 android-wear-9.0.0_r5 android-wear-9.0.0_r6 android-wear-9.0.0_r7 android-wear-9.0.0_r8 android-wear-9.0.0_r9
  3. 08808a7 Add metadata am: 8c0608b2d5 am: a55a504a4b am: c4f7765019 by Bill Yi · 6 years ago master-cuttlefish-testing-release oreo-mr1-1.2-iot-release pie-b4s4-dev pie-b4s4-release pie-dev pie-dr1-dev pie-dr1-release pie-qpr1-release pie-qpr1-s1-release pie-qpr1-s2-release pie-qpr1-s3-release pie-qpr2-release pie-qpr3-b-release pie-qpr3-release pie-qpr3-s1-release android-9.0.0_r11 android-9.0.0_r12 android-9.0.0_r16 android-9.0.0_r19 android-9.0.0_r20 android-9.0.0_r21 android-9.0.0_r22 android-9.0.0_r30 android-9.0.0_r31 android-9.0.0_r32 android-9.0.0_r33 android-9.0.0_r34 android-9.0.0_r35 android-9.0.0_r36 android-9.0.0_r37 android-9.0.0_r38 android-9.0.0_r39 android-9.0.0_r40 android-9.0.0_r41 android-9.0.0_r42 android-9.0.0_r43 android-9.0.0_r44 android-9.0.0_r45 android-9.0.0_r46 android-9.0.0_r47 android-o-mr1-iot-release-1.0.3 android-o-mr1-iot-release-1.0.4 android-o-mr1-iot-release-1.0.5 android-o-mr1-iot-release-smart-clock-fcs android-o-mr1-iot-release-smart-clock-fsi android-o-mr1-iot-release-smart-clock-r2 android-o-mr1-iot-release-smart-clock-r6 android-o-mr1-iot-release-smart-display-r14 android-o-mr1-iot-release-smart-display-r22 android-o-mr1-iot-release-smart-display-r3 android-o-mr1-iot-release-smart-display-r30 android-o-mr1-iot-release-smart-display-r39 android-o-mr1-iot-release-smart-display-r4 android-o-mr1-iot-release-smart-display-r40.1J android-o-mr1-iot-release-smart-display-r5 android-o-mr1-iot-release-smart-display-r8 android-o-mr1-iot-release-smart-display-r9 android-wear-8.0.0_r2
  4. c4f7765 Add metadata am: 8c0608b2d5 am: a55a504a4b by Bill Yi · 6 years ago
  5. a55a504 Add metadata am: 8c0608b2d5 by Bill Yi · 6 years ago

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 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 git@github.com:ARM-software/bart.git
$ git clone git@github.com: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