Skbtrace
Helper tool for generating and running BPFTrace scripts which trace and measure timings related to Linux Networking Stack, specifically SocKet Buffer contents
Install / Use
/learn @yandex-cloud/SkbtraceREADME
skbtrace is a helper tool for generating and running BPFTrace scripts which trace and measure timings related
to Linux Networking Stack, specifically SocKet Buffer contents (hence the name).
It can be used to:
- find TCP retransmits even in encapsulated packets;
- roughly measure packet forwarding times;
- simple tcpdump replacement which allows to trace some kernel routines which are not accessible by tcpdump.
An example of such routine is kfree_skb which is called when kernel frees (drops) packet.
Usage
For the usage examples see Usage
For full documentation see skbtrace(1)
Building
go get -u github.com/yandex-cloud/skbtrace
go build -o skbtrace
or
git clone github.com/yandex-cloud/skbtrace
make build
Requirements
skbtrace is tested with Linux Kernel 4.14 and BPFTrace 0.9.2.
Extending
skbtrace can be extended by:
- Adding extra shortcut commands and root command child while using one of the visitors
such as
DumpTracerCommand. - Extending builder with additional protocols, field and probe descriptions in
SetUp()method of cli dependencies structure. - Or by simply contributing a patch (see Contributing).
License
See License
Related Skills
pestel-analysis
Analyze political, economic, social, technological, environmental, and legal forces
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
38PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
