Deleted Added
full compact
ktrace.2 (108028) ktrace.2 (108087)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/ktrace.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/ktrace.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd June 4, 1993
36.Dt KTRACE 2
37.Os
38.Sh NAME
39.Nm ktrace
40.Nd process tracing
41.Sh LIBRARY

--- 9 unchanged lines hidden (view full) ---

51The
52.Fn ktrace
53system call enables or disables tracing of one or more processes.
54Users may only trace their own processes.
55Only the super-user can trace setuid or setgid programs.
56.Pp
57The
58.Fa tracefile
34.\"
35.Dd June 4, 1993
36.Dt KTRACE 2
37.Os
38.Sh NAME
39.Nm ktrace
40.Nd process tracing
41.Sh LIBRARY

--- 9 unchanged lines hidden (view full) ---

51The
52.Fn ktrace
53system call enables or disables tracing of one or more processes.
54Users may only trace their own processes.
55Only the super-user can trace setuid or setgid programs.
56.Pp
57The
58.Fa tracefile
59argument
59gives the pathname of the file to be used for tracing.
60The file must exist and be a regular file writable by the calling process.
61All trace records are always appended to the file,
62so the file must be truncated to zero length to discard
63previous trace data.
64If tracing points are being disabled (see KTROP_CLEAR below),
65.Fa tracefile
66may be NULL.
67.Pp
68The
69.Fa ops
60gives the pathname of the file to be used for tracing.
61The file must exist and be a regular file writable by the calling process.
62All trace records are always appended to the file,
63so the file must be truncated to zero length to discard
64previous trace data.
65If tracing points are being disabled (see KTROP_CLEAR below),
66.Fa tracefile
67may be NULL.
68.Pp
69The
70.Fa ops
70parameter specifies the requested ktrace operation.
71argument specifies the requested ktrace operation.
71The defined operations are:
72.Bl -column KTRFLAG_DESCENDXXX -offset indent
73.It "KTROP_SET Enable trace points specified in"
74.Fa trpoints .
75.It "KTROP_CLEAR Disable trace points specified in
76.Fa trpoints .
77.It "KTROP_CLEARFILE Stop all tracing."
78.It "KTRFLAG_DESCEND The tracing change should apply to the"
79specified process and all its current children.
80.El
81.Pp
82The
83.Fa trpoints
72The defined operations are:
73.Bl -column KTRFLAG_DESCENDXXX -offset indent
74.It "KTROP_SET Enable trace points specified in"
75.Fa trpoints .
76.It "KTROP_CLEAR Disable trace points specified in
77.Fa trpoints .
78.It "KTROP_CLEARFILE Stop all tracing."
79.It "KTRFLAG_DESCEND The tracing change should apply to the"
80specified process and all its current children.
81.El
82.Pp
83The
84.Fa trpoints
84parameter specifies the trace points of interest.
85argument specifies the trace points of interest.
85The defined trace points are:
86.Bl -column KTRFAC_SYSCALLXXX -offset indent
87.It "KTRFAC_SYSCALL Trace system calls."
88.It "KTRFAC_SYSRET Trace return values from system calls."
89.It "KTRFAC_NAMEI Trace name lookup operations."
90.It "KTRFAC_GENIO Trace all I/O (note that this option can"
91generate much output).
92.It "KTRFAC_PSIG Trace posted signals."

--- 78 unchanged lines hidden ---
86The defined trace points are:
87.Bl -column KTRFAC_SYSCALLXXX -offset indent
88.It "KTRFAC_SYSCALL Trace system calls."
89.It "KTRFAC_SYSRET Trace return values from system calls."
90.It "KTRFAC_NAMEI Trace name lookup operations."
91.It "KTRFAC_GENIO Trace all I/O (note that this option can"
92generate much output).
93.It "KTRFAC_PSIG Trace posted signals."

--- 78 unchanged lines hidden ---