https://github.com/jalalmostafa/socktrace
A tool to trace BSD sockets concurrency behavior using eBPF
https://github.com/jalalmostafa/socktrace
bsd-sockets ebpf ebpf-programs linux linux-kernel socket-programming sockets
Last synced: about 1 month ago
JSON representation
A tool to trace BSD sockets concurrency behavior using eBPF
- Host: GitHub
- URL: https://github.com/jalalmostafa/socktrace
- Owner: jalalmostafa
- License: bsd-3-clause
- Created: 2024-08-20T14:21:07.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-14T23:31:22.000Z (3 months ago)
- Last Synced: 2025-04-15T00:29:51.823Z (3 months ago)
- Topics: bsd-sockets, ebpf, ebpf-programs, linux, linux-kernel, socket-programming, sockets
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Socktrace
A tool to trace parallel system calls to BSD sockets using eBPF.
This tool answers the question: how many times has socket syscalls been called by each process in a program?## To do
- [ ] Use TUI to print output
## Usage
```bash
Usage:
Usage: ./socktrace [options] program args..
-d duration
Run duration.
-h Prints this help text.
-s duration
Set sampling period
```## Build
```bash
# 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 libbpf-dev golang
git clone https://github.com/jalalmostafa/socktrace.git
cd socktrace
make
```