Skip to content

abusque/pydebuginfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pydebuginfo

Python prototype to map trace events to code via debug info

Requirements

You will need babeltrace with python bindings installed, as well as the following python packages:

The processed trace needs to be of userspace domain, with instruction pointer context enabled. This context can be enabled with the following command prior to the start of the trace:

$ lttng add-context -u -t ip

The traced binary also has to be compiled in debug mode if you want to have source file/function information, extracted from the DWARF info. It is also necessary to LD_PRELOAD the dynamic linking tracing helper, liblttng-ust-dl.so, which you can easily do using the env command, as such:

$ env LD_PRELOAD="liblttng-ust-dl.so" /path/to/executable

Usage

Once your trace has been recorded, you can perform the analysis as follows:

$ ./debuginfo /path/to/trace

About

Python prototype to map trace events to code via debug info

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages