undump.bt(8)
β¨ undump.bt(8) β¨
okay bestie, welcome to the undump.bt page, straight out of the System Manager's Manual π she's a little script, she's a whole vibe, and she's about to catch some UNIX domain socket packages for you.
π NAME π
undump.bt β catch UNIX domain socket packages. Uses bpftrace/eBPF. no cap π
π¦ SYNOPSIS π¦
undump.bt
πΈ DESCRIPTION πΈ
So undump.bt tracks reception of UNIX domain sockets. like, it watches them arrive. it's giving surveillance but make it cute π«Ά
This program is also a basic example of bpftrace and kprobes. so if you're trying to figure out how kprobes work, she's literally right there, serving as a tutorial. iconic.
β οΈ Since this uses BPF, only the root user can use this tool. not me casually trying to run it as a normal user π nope, root only, periodt.
π REQUIREMENTS π
CONFIG_BPFbpftrace
that's it bestie. that's the whole list. two things. slay.
π EXAMPLES π
Trace reception of UNIX domain sockets:
# undump.bt
that's the whole command. no flags, no drama, just vibes π
π§ FIELDS π§
here's the tea on what each column means, ok so:
TIMEβ a timestamp on the output, in"HH:MM:SS"format. βCOMMβ the process COMM. πPIDβ the process ID. the whole "who is this" moment.SIZEβ the size of the received packet, in bytes. yes, actual bytes, we measure here πDATAβ display received packets in hex or string. so you get to see the goods π
π₯ OVERHEAD π₯
The overhead of this program mainly comes from the data packets received by the terminal output. so like... the terminal is the one doing the heavy lifting here. if you dump a lot of packets, the printing is what's gonna get you, not the tracing. fr fr. π
π SOURCE π
This is from bpftrace.
https://github.com/iovisor/bpftrace
Also look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool. yes bestie, there's bonus content, go read it πβ¨
This is a bpftrace version of the bcc examples/tracing of the same name. The bcc tool may provide more options and customizations.
https://github.com/iovisor/bcc
so if you want more knobs to turn, bcc is your girl π
π OS π
Linux π§ (as if there was any doubt)
π STABILITY π
Unstable - in development.
so like, she's growing, she's evolving, she's in her development era π¦ don't be surprised if she changes on you.
π AUTHOR π
Rong Tao β give them their flowers π
π SEE ALSO π
and that's the page!! undump.bt(8) from the USER COMMANDS section, dated 2022-06-03. mwah, ily, go trace some sockets responsibly ππ β¨
π¦ where this page comes from
- debian bookworm: bpftrace 0.17.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms