|sofdsnoop(8)||System Manager's Manual||sofdsnoop(8)|
sofdsnoop - Trace FDs passed through unix sockets. Uses Linux eBPF/bcc.
sofdsnoop [-h] [-T] [-p PID] [-t TID] [-n NAME] [-d DURATION]
sofdsnoop traces FDs passed through unix sockets
Every file descriptor that is passed via unix sockets os displayed on separate line together with process info (TID/COMM columns), ACTION details (SEND/RECV), file descriptor number (FD) and its translation to file if available (NAME).
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bcc.
- Trace all sockets:
- # sofdsnoop
- Trace all sockets, and include timestamps:
- # sofdsnoop -T
- Only trace sockets where the process contains "server":
- # sofdsnoop -n server
This is from bcc.
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
Unstable - in development.