undump.bt(8)

πŸ“¦ version 0.17.0, in debian bookworm

✨ 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_BPF
  • bpftrace

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