oshogbo / pagedout-tracing

Tracing Recipes!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracing Recipes!

Code snippets from the Paged Out #2 article.

Dependencies

GDB

Required GDB and basic shell tools.

DTrace on FreeBSD

Just load the DTrace module:

kldload dtraceall.ko

eBPF

For systems with apt:

sudo apt install bpfcc-tools linux-headers-$(uname -r)

For other Linux distro please refer INSTALL.md.

Usage

GDB

You have to set TRACE_BIN environment variable to point to the binary you want to trace.

DTrace on FreeBSD

dtrace -s script.d -p PROCESS\_PID

or

dtrace -s script.d -c BINARY

eBPF

python script.py BINARY PROCESS\_PID

Author

Mariusz Zaborski

Thanks

Disconnect3d for review of the article.

License

BSD

About

Tracing Recipes!


Languages

Language:Python 66.3%Language:DTrace 18.1%Language:Shell 15.6%