MOUNTSNOOP-BPFCC(8) - Linux man page online | Administration and privileged commands
Trace mount() and umount() syscalls. Uses Linux eBPF/bcc.
mountsnoop(8) System Manager's Manual mountsnoop(8)
USER COMMANDS 2016-10-14 mountsnoop(8)
NAMEmountsnoop - Trace mount() and umount() syscalls. Uses Linux eBPF/bcc.
DESCRIPTIONmountsnoop traces the mount() and umount() syscalls, showing which processes are mounting and unmounting filesystems in what mount namespaces. This can be useful for troubleshoot‐ ing system and container setup. This works by tracing the kernel sys_mount() and sys_umount() functions using dynamic tracing, and will need updating to match any changes to this function. This makes use of a Linux 4.4 feature (bpf_perf_event_output()). Since this uses BPF, only the root user can use this tool.
REQUIREMENTSCONFIG_BPF and bcc.
FIELDSCOMM Process name PID Process ID TID Thread ID MNT_NS Mount namespace inode number CALL System call, arguments, and return value
OVERHEADThis traces the kernel mount and umount functions and prints output for each event. As the rate of these calls is generally expected to be very low, the overhead is also expected to be negligible. If your system calls mount() and umount() at a high rate, then test and understand overhead before use.
SOURCEThis 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.
STABILITYUnstable - in development.
SEE ALSOmount(2) umount(2)
|This manual||Reference||Other manuals|
|refer to||mount(2) | umount(2)|