Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 1.3 KB

Stacktrack Src Readme

This directory contains the code to create the json files (callgraphs and execution traces):

  • Static Call graphs are created with the which queries the xref database
  • Dynamic call graphs (which I call execution traces) are created with the script. The tracing sets kernel breakpoints on the master. It then ssh's to the slave to execute the test program on the slave.


To install the xref database and query it to generate call graphs in json format, execute the following commands:

git clone
mysql -e "create database stacktrack"
mysql stacktrack < database/stacktrack.sql
# Change database username & password (DBUSER & DBPASS) in 
vi src/
python src/ -e sys_kexec_file_load

You will need python 2.7, and MySQL-python.

$ python src/ -e sys_kexec_file_load
INFO:root:dumping callees of Node sys_kexec_file_load to /tmp/sys_kexec_file_load_callees.json

The json graphs can be rendered with the tree.html html code in the repository by adding adding a 'json=' url parameter. For example

The javascript graph rendering is done in javascript so it can run locally.