undump.bt(8)
π 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 ππΈβ¨
π¦ where this page comes from
- alpine 3.24: bpftrace-tools-doc 0.26.1-r0 Β· Apache-2.0
- arch rolling: bpftrace 0.27.0-2 Β· Apache-2.0
- centos-stream 10: bpftrace 0.26.1-1.el10 Β· Apache-2.0
- centos-stream 9: bpftrace 0.26.1-1.el9 Β· ASL 2.0
- debian trixie: bpftrace 0.23.2-1 Β· Apache-2.0
- fedora 43: bpftrace 0.24.0-1.fc43 Β· Apache-2.0
- fedora 43: bpftrace 0.24.2-1.fc43 Β· Apache-2.0
- fedora 44: bpftrace 0.24.2-3.fc44 Β· Apache-2.0
- nixos 26.05: bpftrace 0.25.1
- nixpkgs unstable: bpftrace 0.27.1
- opensuse-leap 16.0: bpftrace-tools 0.23.5-160000.1.2 Β· Apache-2.0
- ubuntu questing: bpftrace 0.23.5-1ubuntu1 Β· Apache-2.0
- ubuntu resolute: bpftrace 0.25.0-1ubuntu1 Β· Apache-2.0
- ubuntu stonking: bpftrace 0.25.0-1ubuntu2 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms