Code Monkey home page Code Monkey logo

pmugraph's Introduction

pmugraph

A tools to display charts computed from SoC PMUs

Requirements

The application leverage LibRegice to perform access to target using JTAG. This uses and only have been tested on python3.6. The device must be supported by LibRegice (a least, must have a PMU driver).

Installation

pmugraph uses pyqt5 for UI. Although this could be installed using pip, this have not given good results, so it is recommended to install it using the package manager of the distribution.

sudo apt-get install python3-pyqt5

The rest of the installation use setuptools.This could installed using:

apt-get install python3-setuptools

Then, you can install pmugraph by runnig:

python3 setup.py install --user

You may have to install architecture files to support a specific target. Refer to libregice wiki for more details

Usage

Options

usage: pmugraph.py [-h] [--svd SVD] [--openocd] [--jlink]
                   [--jlink-script JLINK_SCRIPT] [--jlink-device JLINK_DEVICE]
                   [--test] [--cpu-load] [--memory-load]

optional arguments:
  -h, --help            show this help message and exit
  --svd SVD             SVD file that contains registers definition
  --openocd             Use openocd to connect to target
  --test                Use a mock as target
  --cpu-load            Display the cpu load
  --memory-load         Display the memory load

jlink:
  --jlink               Use JLink to connect to target
  --jlink-script JLINK_SCRIPT
                        Load and run a JLink script before to connect to
                        target
  --jlink-device JLINK_DEVICE
                        Name of device to connect to

Examples

# Run the demo, with cpu and memory load graphics
# This assumes that RegiceTest has been installed
python3 -m pmugraph --test --svd BL123.svd --cpu-load --memory-load

# Show cpu load of S905X
# This assumes that RegiceMeson has been installed, and openocd is connected to target
python3 -m pmugraph --openocd --svd S905X.svd --cpu-load

pmugraph's People

Contributors

anobli avatar

Watchers

Sebastien Jan avatar James Cloos avatar Patrick Titiano avatar  avatar  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.