other versions
- buster 0.8.0-4
- buster-backports 0.17.0-7~bpo10+2
- testing 0.18.0+ds-2
- unstable 0.18.0+ds-2
- experimental 0.21.0+ds-1
shmsnoop(8) | System Manager's Manual | shmsnoop(8) |
NAME¶
shmsnoop - Trace System V shared memory syscalls. Uses Linux eBPF/bcc.SYNOPSIS¶
shmsnoop [-h] [-T] [-p] [-t] [-d DURATION] [-n NAME]DESCRIPTION¶
shmsnoop traces System V shared memory syscalls: shmget, shmat, shmdt, shmctlSince this uses BPF, only the root user can use this tool.
REQUIREMENTS¶
CONFIG_BPF and bcc.OPTIONS¶
- -h
- Print usage message.
- -T
- Include a timestamp column.
- -p PID
- Trace this process ID only (filtered in-kernel).
- -t TID
- Trace this thread ID only (filtered in-kernel).
- -d DURATION
- Total duration of trace in seconds.
- -n NAME
- Only print command lines matching this command name (regex)
EXAMPLES¶
- Trace all shm* syscalls:
- # shmsnoop
- Trace all shm* syscalls, and include timestamps:
- # shmsnoop -T
- Only trace shm* syscalls where the process contains "server":
- # shmsnoop -n server
FIELDS¶
- TIME(s)
- Time of shm syscall return, in seconds.
- PID
- Process ID
- COMM
- Parent process/command name.
- RET
- Return value of shm syscall.
- ARGS
- "arg: value" couples that represent given syscall arguments as described in their manpage
SOURCE¶
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.
OS¶
LinuxSTABILITY¶
Unstable - in development.AUTHOR¶
Jiri OlsaSEE ALSO¶
opensnoop(1)2018-09-24 | USER COMMANDS |