Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1005 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 1005 Bytes

ftrace-stream

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

Quick start

cargo build
./run.sh

Libraries

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