Skip to content

An interactive web-app tool built with dash for call-graph visualisation using the BCC trace tool.

License

Notifications You must be signed in to change notification settings

Matyasch/tracerface

Repository files navigation

Visualisation tool for BCC trace

Build Status Language grade: Python

An interactive web-app built with dash for call-graph visualisation in realtime, using BCC trace.

trace

Installation

Packages from iovisor are required to run as others may be outdated.

  1. Install the bcc-tools package, by following the BCC installation guide
  2. Install the python3-bcc package
  3. Clone this repo

It's important to install bcc-tools instead of bpfcc-tools as only the former supports python3

Usage

Run run.sh with superuser privileges. The privileges are needed for bcc trace to access the kernel. Use the --help argument for more information about arguemnts.

Run the run-tests.sh script for tests. For integration tests too you have to run it with superuser privileges for the previous reasons.

Features

Select what to trace on the GUI

  • Add binaries or built-in functions you wish to monitor.
  • Set functions you wish to trace by managing functions of an application.
  • Define traced parameters for a function by managing parameters.

Load setup from file

You can add binaries, functions and parameters from a yaml file instead:

/path/to/app1:
  func1: {}
  func2:
    1: '%s' # position and format of parameter
    3: '%d'
/path/to/app2:
  func3: {}
/path/to/app3: {} # need to set functions to trace in UI

If you want to trace built-in functions, you can write them as if they were functions of a binary, but on the binary level:

/path/to/app:
  func: {}
do_sys_open: {} # built-in functions do not need path

Start tracing

Click on the grey power button to start tracing. After it turns green, the functions are getting traced.

Load output of BCC trace run

Create the interactive call-graph of a given bcc trace output

About

An interactive web-app tool built with dash for call-graph visualisation using the BCC trace tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages