A tool to stream ftrace events in binary format. This tool was created to easily get access to binary events, which is normally done through tracefs (in per_cpu/cpu0/trace_pipe_raw). Parsing events in a binary format is an efficient alternative to text parsing (i.e. parsing events out of trace_pipe or trace).
The tool consists of:
- A core in C that uses
trace-cmd's libraries to create a stream of event - A small rust wrapper with bindings to call the C functions of the core part
cargo build
./run.sh
The tool depends on the following libraries:
If you don't have them, run the install script before cargo build:
cd src/binary_parser/lib
sudo ./install.sh