version 1.7, 1999/06/05 01:21:28 |
version 1.8, 2000/03/04 15:53:40 |
|
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm ktrace |
.Nm ktrace |
enables kernel trace logging for the specified processes. |
enables kernel trace logging for the specified processes. |
Kernel trace data is logged to the file |
By default, kernel trace data is logged to the file |
.Pa ktrace.out . |
.Pa ktrace.out , |
|
unless overridden by the |
|
.Fl f |
|
option. |
The kernel operations that are traced include system calls, namei |
The kernel operations that are traced include system calls, namei |
translations, signal processing, and |
translations, signal processing, and |
.Tn I/O . |
.Tn I/O . |
|
|
Once tracing is enabled on a process, trace data will be logged until |
Once tracing is enabled on a process, trace data will be logged until |
either the process exits or the trace point is cleared. |
either the process exits or the trace point is cleared. |
A traced process can generate enormous amounts of log data quickly; |
A traced process can generate enormous amounts of log data quickly; |
It is strongly suggested that users memorize how to disable tracing before |
it is strongly suggested that users memorize how to disable tracing before |
attempting to trace a process. |
attempting to trace a process. |
The following command is sufficient to disable tracing on all user owned |
The following command is sufficient to disable tracing on all user owned |
processes, and, if executed by root, all processes: |
processes, and, if executed by root, all processes: |
|
|
.Pp |
.Pp |
# disable tracing of all processes owned by the user |
# disable tracing of all processes owned by the user |
.Dl $ ktrace -C |
.Dl $ ktrace -C |
|
.Sh FILES |
|
.Bl -tag -width ktrace.out -compact |
|
.It Pa ktrace.out |
|
default ktrace dump file |
|
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr kdump 1 |
.Xr kdump 1 |
.Sh HISTORY |
.Sh HISTORY |