undump.bt(8)

πŸ“¦
version 0.27.0 Β· 2 versions
  • 0.27.0 Β· alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.20.2 Β· ubuntu noble
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– undump.bt(8) β€” System Manager's Manual ✨

bestie, okay so undump.bt is a bpftrace tool that catches UNIX domain socket packages as they get received πŸ¦‹ It's written in bpftrace/eBPF, so it's giving low-level and it's honestly iconic.


πŸŽ€ NAME πŸŽ€

undump.bt β€” Catch UNIX domain socket packages. Uses bpftrace/eBPF. πŸ’…

🧚 SYNOPSIS 🧚

undump.bt

πŸ“– DESCRIPTION πŸ“–

okay so undump.bt tracks reception of UNIX domain sockets. main character energy πŸ‘‘

it's also a basic example of bpftrace and kprobes, so if you're learning, this one is lowkey the perfect starter 🌸

⚠️ bestie, this uses BPF, so only the root user can run this tool. no cap, you need to be root 😭

πŸ“ REQUIREMENTS πŸ“

you'll need CONFIG_BPF and bpftrace. that's it, that's the whole list πŸ’œ

✨ EXAMPLES ✨

Trace reception of UNIX domain sockets:

# undump.bt

πŸ’… FIELDS πŸ’…

  • TIME β€” a timestamp on the output, in "HH:MM:SS" format πŸ•°οΈ
  • COMM β€” the process COMM 🫢
  • PID β€” the process ID πŸ”₯
  • SIZE β€” the size of the received packet, in bytes πŸ“¦
  • DATA β€” displays received packets in hex or string 🌈

🌊 OVERHEAD 🌊

the overhead mainly comes from the data packets received by the terminal output. so yeah, the printing is the expensive part πŸ™ˆ

🌍 SOURCE 🌍

this is from bpftrace, so the main source is:

https://github.com/bpftrace/bpftrace

also look in the bpftrace distribution for a companion _examples.txt file. it has example usage, output, and commentary for this tool, and it's giving very helpful 🧠

this is a bpftrace version of the bcc examples/tracing tool of the same name. the bcc tool may provide more options and customizations, so check it out if you want more πŸ’–

https://github.com/iovisor/bcc

🐧 OS 🐧

Linux 🐧

πŸ§ͺ STABILITY πŸ§ͺ

🚧 Unstable β€” it's still in development, so bestie, expect some drama πŸ™ˆ

πŸ‘©β€πŸ’» AUTHOR πŸ‘©β€πŸ’»

Rong Tao 🫢

πŸ”— SEE ALSO πŸ”—

opensnoop.bt(8) πŸ¦‹


bestie, that's the whole undump.bt tea β˜•πŸ’œ it's from the USER COMMANDS section, dated 2022-06-03, and it's all about undump.bt(8). love you, mwah 😘🌸✨