Sort options and their descriptions. Replace tab with space in table. Make non-standard section subsections. Comment out Xr to procsystime(1) which does not exist on NetBSD.diff -r1.5 -r1.6 src/external/cddl/dtracetoolkit/dist/Man/man1m/dtruss.1m
(wiz)
--- src/external/cddl/dtracetoolkit/dist/Man/man1m/dtruss.1m 2020/06/25 14:08:48 1.5
+++ src/external/cddl/dtracetoolkit/dist/Man/man1m/dtruss.1m 2020/06/26 15:45:18 1.6
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | .\" $NetBSD: dtruss.1m,v 1.5 2020/06/25 14:08:48 uwe Exp $ | 1 | .\" $NetBSD: dtruss.1m,v 1.6 2020/06/26 15:45:18 wiz Exp $ | |
2 | .Dd June 25, 2020 | 2 | .Dd June 25, 2020 | |
3 | .Dt DTRUSS 1 | 3 | .Dt DTRUSS 1 | |
4 | .Os | 4 | .Os | |
5 | .Sh NAME | 5 | .Sh NAME | |
6 | .Nm dtruss | 6 | .Nm dtruss | |
7 | .Nd process syscall details. Uses DTrace | 7 | .Nd process syscall details. Uses DTrace | |
8 | .Sh SYNOPSIS | 8 | .Sh SYNOPSIS | |
9 | .Nm | 9 | .Nm | |
10 | .Op Fl acdeflhoLs | 10 | .Op Fl acdeflhLos | |
11 | .Op Fl t Ar syscall | 11 | .Op Fl t Ar syscall | |
12 | .Op Fl p Ar PID | Fl n Ar name | command | 12 | .Op Fl p Ar PID | Fl n Ar name | command | |
13 | .Sh DESCRIPTION | 13 | .Sh DESCRIPTION | |
14 | .Nm | 14 | .Nm | |
15 | prints details on process system calls. | 15 | prints details on process system calls. | |
16 | It is like a DTrace version of truss, and has been designed to be less | 16 | It is like a DTrace version of truss, and has been designed to be less | |
17 | intrusive than truss. | 17 | intrusive than truss. | |
18 | .Pp | 18 | .Pp | |
19 | Of particular interest is the elapsed times and on cpu times, which can | 19 | Of particular interest is the elapsed times and on cpu times, which can | |
20 | identify both system calls that are slow to complete, and those which are | 20 | identify both system calls that are slow to complete, and those which are | |
21 | consuming CPU cycles. | 21 | consuming CPU cycles. | |
22 | .Pp | 22 | .Pp | |
23 | Since this uses DTrace, only the root user or users with the dtrace_kernel | 23 | Since this uses DTrace, only the root user or users with the dtrace_kernel | |
@@ -29,47 +29,47 @@ print all details | @@ -29,47 +29,47 @@ print all details | |||
29 | dynamic variable buffer size. | 29 | dynamic variable buffer size. | |
30 | Increase this if you notice dynamic variable drop errors. | 30 | Increase this if you notice dynamic variable drop errors. | |
31 | The default is | 31 | The default is | |
32 | .Ql "4m" | 32 | .Ql "4m" | |
33 | for 4\~megabytes per CPU. | 33 | for 4\~megabytes per CPU. | |
34 | .It Fl c | 34 | .It Fl c | |
35 | print system call counts | 35 | print system call counts | |
36 | .It Fl d | 36 | .It Fl d | |
37 | print relative timestamps, us (microseconds) | 37 | print relative timestamps, us (microseconds) | |
38 | .It Fl e | 38 | .It Fl e | |
39 | print elapsed times, us | 39 | print elapsed times, us | |
40 | .It Fl f | 40 | .It Fl f | |
41 | follow children as they are forked | 41 | follow children as they are forked | |
42 | .It Fl l | |||
43 | force printing of pid/lwpid per line | |||
44 | .It Fl L | 42 | .It Fl L | |
45 | don't print pid/lwpid per line | 43 | don't print pid/lwpid per line | |
44 | .It Fl l | |||
45 | force printing of pid/lwpid per line | |||
46 | .It Fl n Ar name | 46 | .It Fl n Ar name | |
47 | examine processes with this name | 47 | examine processes with this name | |
48 | .It Fl o | 48 | .It Fl o | |
49 | print on-cpu times, us | 49 | print on-cpu times, us | |
50 | .It Fl s | |||
51 | print stack backtraces | |||
52 | .It Fl p Ar PID | 50 | .It Fl p Ar PID | |
53 | examine this PID | 51 | examine this PID | |
52 | .It Fl s | |||
53 | print stack backtraces | |||
54 | .It Fl t Ar syscall | 54 | .It Fl t Ar syscall | |
55 | examine this syscall only | 55 | examine this syscall only | |
56 | .El | 56 | .El | |
57 | .Bl -column "SYSCALL(args)" | 57 | .Bl -column "SYSCALL(args)" | |
58 | .It Sy Field Ta Sy Description | 58 | .It Sy Field Ta Sy Description | |
59 | .It PID/LWPID Ta Process ID\|/\|Lightweight Process ID | 59 | .It PID/LWPID Ta Process ID\|/\|Lightweight Process ID | |
60 | .It RELATIVE Ta relative timestamps to the start of the thread, us | 60 | .It RELATIVE Ta relative timestamps to the start of the thread, us | |
61 | .It ELAPSD Ta elapsed time for this system call, us | 61 | .It ELAPSD Ta elapsed time for this system call, us | |
62 | .It CPU Ta on-cpu time for this system call, us | 62 | .It CPU Ta on-cpu time for this system call, us | |
63 | .It SYSCALL(args) Ta system call name, with arguments (some may be evaluated) | 63 | .It SYSCALL(args) Ta system call name, with arguments (some may be evaluated) | |
64 | .El | 64 | .El | |
65 | .Sh EXAMPLES | 65 | .Sh EXAMPLES | |
66 | run and examine the | 66 | run and examine the | |
67 | .Ql df -h | 67 | .Ql df -h | |
68 | command | 68 | command | |
69 | .Pp | 69 | .Pp | |
70 | .Dl Ic dtruss df -h | 70 | .Dl Ic dtruss df -h | |
71 | .Pp | 71 | .Pp | |
72 | examine PID 1871 | 72 | examine PID 1871 | |
73 | .Pp | 73 | .Pp | |
74 | .Dl Ic dtruss -p 1871 | 74 | .Dl Ic dtruss -p 1871 | |
75 | .Pp | 75 | .Pp | |
@@ -78,28 +78,28 @@ examine all processes called "tar" | @@ -78,28 +78,28 @@ examine all processes called "tar" | |||
78 | .Dl Ic dtruss -n tar | 78 | .Dl Ic dtruss -n tar | |
79 | .Pp | 79 | .Pp | |
80 | run | 80 | run | |
81 | .Ql test.sh | 81 | .Ql test.sh | |
82 | and follow children | 82 | and follow children | |
83 | .Pp | 83 | .Pp | |
84 | .Dl Ic dtruss -f test.sh | 84 | .Dl Ic dtruss -f test.sh | |
85 | .Pp | 85 | .Pp | |
86 | run the | 86 | run the | |
87 | .Ql date | 87 | .Ql date | |
88 | command and print elapsed and on cpu times, | 88 | command and print elapsed and on cpu times, | |
89 | .Pp | 89 | .Pp | |
90 | .Dl Ic dtruss -eo date | 90 | .Dl Ic dtruss -eo date | |
91 | .Sh STABILITY | 91 | .Ss STABILITY | |
92 | stable \(em needs the syscall provider. | 92 | stable \(em needs the syscall provider. | |
93 | .Sh DOCUMENTATION | 93 | .Ss DOCUMENTATION | |
94 | See the DTraceToolkit for further documentation under the Docs directory. | 94 | See the DTraceToolkit for further documentation under the Docs directory. | |
95 | The DTraceToolkit docs may include full worked examples with verbose | 95 | The DTraceToolkit docs may include full worked examples with verbose | |
96 | descriptions explaining the output. | 96 | descriptions explaining the output. | |
97 | .Sh EXIT | 97 | .Sh EXIT | |
98 | dtruss will run forever until Ctrl\-C is hit, or if a command was | 98 | dtruss will run forever until Ctrl\-C is hit, or if a command was | |
99 | executed dtruss will finish when the command ends. | 99 | executed dtruss will finish when the command ends. | |
100 | .Sh SEE ALSO | 100 | .Sh SEE ALSO | |
101 | .Xr dtrace 1 , | 101 | .Xr dtrace 1 | |
102 | .Xr procsystime 1 | 102 | .\".Xr procsystime 1 | |
103 | .Sh AUTHORS | 103 | .Sh AUTHORS | |
104 | .An Brendan Gregg | 104 | .An Brendan Gregg | |
105 | [Sydney, Australia] | 105 | [Sydney, Australia] |
--- src/external/cddl/dtracetoolkit/dist/Man/man1m/opensnoop.1m 2020/06/25 14:59:51 1.4
+++ src/external/cddl/dtracetoolkit/dist/Man/man1m/opensnoop.1m 2020/06/26 15:45:18 1.5
@@ -1,61 +1,61 @@ | @@ -1,61 +1,61 @@ | |||
1 | .\" $NetBSD: opensnoop.1m,v 1.4 2020/06/25 14:59:51 uwe Exp $ | 1 | .\" $NetBSD: opensnoop.1m,v 1.5 2020/06/26 15:45:18 wiz Exp $ | |
2 | .Dd June 25, 2020 | 2 | .Dd June 25, 2020 | |
3 | .Dt OPENSNOOP 1 | 3 | .Dt OPENSNOOP 1 | |
4 | .Os | 4 | .Os | |
5 | .Sh NAME | 5 | .Sh NAME | |
6 | .Nm opensnoop | 6 | .Nm opensnoop | |
7 | .Nd snoop file opens as they occur. Uses DTrace | 7 | .Nd snoop file opens as they occur. Uses DTrace | |
8 | .Sh SYNOPSIS | 8 | .Sh SYNOPSIS | |
9 | .Nm | 9 | .Nm | |
10 | .Op Fl a | Fl A | Fl ceghsvxZ | 10 | .Op Fl a | Fl A | Fl ceghsvxZ | |
11 | .Op Fl f Ar pathname | 11 | .Op Fl f Ar pathname | |
12 | .Op Fl n Ar name | 12 | .Op Fl n Ar name | |
13 | .Op Fl p Ar PID | 13 | .Op Fl p Ar PID | |
14 | .Sh DESCRIPTION | 14 | .Sh DESCRIPTION | |
15 | .Nm | 15 | .Nm | |
16 | tracks file opens. | 16 | tracks file opens. | |
17 | As a process issues a file open, details such as UID, PID and pathname are | 17 | As a process issues a file open, details such as UID, PID and pathname are | |
18 | printed out. | 18 | printed out. | |
19 | The returned file descriptor is printed, a value of \-1 indicates an error. | 19 | The returned file descriptor is printed, a value of \-1 indicates an error. | |
20 | This can be useful for troubleshooting to determine if appliacions are | 20 | This can be useful for troubleshooting to determine if appliacions are | |
21 | attempting to open files that do not exist. | 21 | attempting to open files that do not exist. | |
22 | Since this uses DTrace, only the root user or users with the | 22 | Since this uses DTrace, only the root user or users with the | |
23 | dtrace_kernel privilege can run this command. | 23 | dtrace_kernel privilege can run this command. | |
24 | .Bl -tag -width Fl | 24 | .Bl -tag -width Fl | |
25 | .It Fl a | |||
26 | print all data | |||
27 | .It Fl A | 25 | .It Fl A | |
28 | dump all data, space delimited | 26 | dump all data, space delimited | |
27 | .It Fl a | |||
28 | print all data | |||
29 | .It Fl c | 29 | .It Fl c | |
30 | print current working directory of process | 30 | print current working directory of process | |
31 | .It Fl e | 31 | .It Fl e | |
32 | print errno value | 32 | print errno value | |
33 | .It Fl f Ar pathname | |||
34 | file pathname to snoop | |||
33 | .It Fl g | 35 | .It Fl g | |
34 | print full command arguments | 36 | print full command arguments | |
37 | .It Fl n Ar name | |||
38 | process name to snoop | |||
39 | .It Fl p Ar PID | |||
40 | process ID to snoop | |||
35 | .It Fl s | 41 | .It Fl s | |
36 | print start time, us | 42 | print start time, us | |
37 | .It Fl v | 43 | .It Fl v | |
38 | print start time, string | 44 | print start time, string | |
39 | .It Fl x | 45 | .It Fl x | |
40 | only print failed opens | 46 | only print failed opens | |
41 | .It Fl Z | 47 | .It Fl Z | |
42 | print zonename | 48 | print zonename | |
43 | .It Fl f Ar pathname | |||
44 | file pathname to snoop | |||
45 | .It Fl n Ar name | |||
46 | process name to snoop | |||
47 | .It Fl p Ar PID | |||
48 | process ID to snoop | |||
49 | .El | 49 | .El | |
50 | .Bl -column "STRTIME" | 50 | .Bl -column "STRTIME" | |
51 | .It Sy Fields Ta Sy Description | 51 | .It Sy Fields Ta Sy Description | |
52 | .It ZONE Ta Zone name | 52 | .It ZONE Ta Zone name | |
53 | .It UID Ta User ID | 53 | .It UID Ta User ID | |
54 | .It PID Ta Process ID | 54 | .It PID Ta Process ID | |
55 | .It PPID Ta Parent Process ID | 55 | .It PPID Ta Parent Process ID | |
56 | .It FD Ta File Descriptor | 56 | .It FD Ta File Descriptor | |
57 | .Pq \-1 is error | 57 | .Pq \-1 is error | |
58 | .It ERR Ta Va errno | 58 | .It ERR Ta Va errno | |
59 | value | 59 | value | |
60 | .Pq see Pa /usr/include/sys/errno.h | 60 | .Pq see Pa /usr/include/sys/errno.h | |
61 | .It CWD Ta current working directory of process | 61 | .It CWD Ta current working directory of process | |
@@ -71,29 +71,29 @@ Default output, print file opens by proc | @@ -71,29 +71,29 @@ Default output, print file opens by proc | |||
71 | .Dl Ic opensnoop | 71 | .Dl Ic opensnoop | |
72 | .Pp | 72 | .Pp | |
73 | Print human readable timestamps, | 73 | Print human readable timestamps, | |
74 | .Pp | 74 | .Pp | |
75 | .Dl Ic opensnoop -v | 75 | .Dl Ic opensnoop -v | |
76 | .Pp | 76 | .Pp | |
77 | See error codes, | 77 | See error codes, | |
78 | .Pp | 78 | .Pp | |
79 | .Dl Ic opensnoop -e | 79 | .Dl Ic opensnoop -e | |
80 | .Pp | 80 | .Pp | |
81 | Snoop this file only, | 81 | Snoop this file only, | |
82 | .Pp | 82 | .Pp | |
83 | .Dl Ic opensnoop -f /etc/passwd | 83 | .Dl Ic opensnoop -f /etc/passwd | |
84 | .Sh STABILITY | 84 | .Ss STABILITY | |
85 | stable \(em needs the syscall provider. | 85 | stable \(em needs the syscall provider. | |
86 | .Sh DOCUMENTATION | 86 | .Ss DOCUMENTATION | |
87 | See the DTraceToolkit for further documentation under the Docs directory. | 87 | See the DTraceToolkit for further documentation under the Docs directory. | |
88 | The DTraceToolkit docs may include full worked examples with verbose | 88 | The DTraceToolkit docs may include full worked examples with verbose | |
89 | descriptions explaining the output. | 89 | descriptions explaining the output. | |
90 | .Sh EXIT | 90 | .Sh EXIT | |
91 | .Nm | 91 | .Nm | |
92 | will run forever until Ctrl\-C is hit. | 92 | will run forever until Ctrl\-C is hit. | |
93 | .Sh SEE ALSO | 93 | .Sh SEE ALSO | |
94 | .Xr dtrace 1 | 94 | .Xr dtrace 1 | |
95 | .Sh AUTHORS | 95 | .Sh AUTHORS | |
96 | .An Brendan Gregg | 96 | .An Brendan Gregg | |
97 | [Sydney, Australia] | 97 | [Sydney, Australia] | |
98 | .Sh BUGS | 98 | .Sh BUGS | |
99 | Occasionally the pathname for the file open cannot be read and the following | 99 | Occasionally the pathname for the file open cannot be read and the following |