Skip to content

A tool to trace BSD sockets concurrency behavior using eBPF

License

Notifications You must be signed in to change notification settings

jalalmostafa/socktrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sockstats

A tool to discover BSD sockets concurrency statistics using eBPF

To do

  • Use TUI to print output
  • Add option to output to file

Usage

Usage:
./src/sockstats <command>

An eBPF tool to monitor how many threads did a socket use
    -h        Print this help message
    -t <nb>   Fetch statistics every <nb> seconds.
              Default fetch at end of program or received signal to quit.

Build

# install dependencies
apt install clang llvm libelf-dev build-essential linux-tools-common linux-tools-generic linux-headers-$(uname -r) linux-tools-$(uname -r)-generic
git clone --recursive https://github.com/jalalmostafa/sockstats.git
cd sockstats
make