-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathopensnoop-nd.8
56 lines (55 loc) · 1.24 KB
/
opensnoop-nd.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.TH opensnoop-nd 8 "2015-01-30" "USER COMMANDS"
.SH NAME
opensnoop-nd \- trace process open() with arguments. Uses Linux SystemTap (non-debuginfo).
.SH SYNOPSIS
.B opensnoop-nd.stp
.SH DESCRIPTION
This traces the open() syscall system-wide, to show which files are being
opened, and by who.
This is a basic version of opensnoop.
.SH REQUIREMENTS
SystemTap.
.SH EXAMPLES
.TP
Trace all open() syscalls, showing process and file details:
#
.B opensnoop-nd.stp
.SH FIELDS
.TP
UID
User ID.
.TP
PID
Process ID.
.TP
PPID
Parent process ID.
.TP
COMM
Process name.
.TP
FD
Return value of the open() syscall, which is either the resulting file descriptor
(positive) or error code (negative).
.TP
PATH
File pathname provided to the open() syscall.
.SH OVERHEAD
This reads and processes open() events and prints a line of output for each.
If your applications perform a high rate of open()s, the overhead of this
tool may become noticeable.
.SH SOURCE
This is from the SystemTap lwtools collection.
.IP
https://github.com/brendangregg/systemtap-lwtools
.PP
Also look under the examples directory for a text file containing example
usage, output, and commentary for this tool.
.SH OS
Linux
.SH STABILITY
Unstable - in development.
.SH AUTHOR
Brendan Gregg
.SH SEE ALSO
strace(1)