Scroll to navigation

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, shmctl

Since this uses BPF, only the root user can use this tool.

REQUIREMENTS

CONFIG_BPF and bcc.

OPTIONS

Print usage message.
Include a timestamp column.
Trace this process ID only (filtered in-kernel).
Trace this thread ID only (filtered in-kernel).
Total duration of trace in seconds.
Only print command lines matching this command name (regex)

EXAMPLES

# shmsnoop
# shmsnoop -T
# shmsnoop -n server

FIELDS

Time of shm syscall return, in seconds.
Process ID
Parent process/command name.
Return value of shm syscall.
"arg: value" couples that represent given syscall arguments as described in their manpage

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

Linux

STABILITY

Unstable - in development.

AUTHOR

Jiri Olsa

SEE ALSO

opensnoop(1)

2018-09-24 USER COMMANDS