Skip to content

oshogbo/pagedout-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published