SOFDSNOOP(8) System Manager's Manual SOFDSNOOP(8)

# [NAME](#NAME)

sofdsnoop - traces FDs passed by sockets

# [SYNOPSIS](#SYNOPSIS)

usage: sofdsnoop \[-h] \[-T] \[-p PID] \[-t TID] \[-n NAME] \[-d DURATION]

# [DESCRIPTION](#DESCRIPTION)

Trace file descriptors passed via socket

## [optional arguments:](#optional_arguments:)

[**-h**, **--help**](#h)

show this help message and exit

[**-T**, **--timestamp**](#T)

include timestamp on output

[**-p** PID, **--pid** PID](#p)

trace this PID only

[**-t** TID, **--tid** TID](#t)

trace this TID only

[**-n** NAME, **--name** NAME](#n)

only print process names containing this name

[**-d** DURATION, **--duration** DURATION](#d)

total duration of trace in seconds

# [EXAMPLES](#EXAMPLES)

[Trace passed file descriptors](#Trace)

\# **sofdsnoop**

[Include timestamps](#Include)

\# **sofdsnoop -T**

[Only trace PID 181](#Only)

\# **sofdsnoop -p 181**

[Only trace TID 123](#Only~2)

\# **sofdsnoop -t 123**

[Trace for 10 seconds only](#Trace~2)

\# **sofdsnoop -d 10**

[Only print process names containing "main"](#Only~3)

\# **sofdsnoop -n main**

# [SOURCE](#SOURCE)

This is from bcc.

https://github.com/iovisor/bcc

Also look in the bcc distribution for a companion \_examples.txt file containing example usage, output, and commentary for this tool.

# [OS](#OS)

Linux

# [STABILITY](#STABILITY)

Unstable - in development.

2019-07-29 USER COMMANDS

---

Document: sofdsnoop(8) from bcc 0.37.0-r2 (Chainguard OS)
Source: https://github.com/iovisor/bcc
