|
NAMEopensnoop - snoop file opens as they occur. Uses DTrace.SYNOPSISopensnoop [-a|-A|-ceghsvxZ] [-f pathname] [-n name] [-p PID]DESCRIPTIONopensnoop tracks file opens. As a process issues a file open, details such as UID, PID and pathname are printed out.The returned file descriptor is printed, a value of -1 indicates an error. This can be useful for troubleshooting to determine if appliacions are attempting to open files that do not exist. Since this uses DTrace, only the root user or users with the dtrace_kernel privilege can run this command. OSSolarisSTABILITYstable - needs the syscall provider.OPTIONS
EXAMPLES
FIELDS
DOCUMENTATIONSee the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with verbose descriptions explaining the output.EXITopensnoop will run forever until Ctrl-C is hit.BUGSoccasionally the pathname for the file open cannot be read and the following error will be seen,dtrace: error on enabled probe ID 6 (...): invalid address this is normal behaviour. AUTHORBrendan Gregg [Sydney, Australia]SEE ALSOdtrace(1M), truss(1)
Visit the GSP FreeBSD Man Page Interface. |