version 1.15, 2006/07/06 16:43:02 |
version 1.16, 2006/07/06 21:10:06 |
|
|
default ktrace dump file |
default ktrace dump file |
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
# trace all kernel operations of process ID 34 |
Trace all kernel operations of process ID 34: |
.Dl $ ktrace -p 34 |
.Dl $ ktrace -p 34 |
.Bd -unfilled |
.Pp |
# trace all kernel operations of processes in process group 15 and |
Trace all kernel operations of processes in process group 15 and |
# pass the trace flags to all current and future children |
pass the trace flags to all current and future children: |
.Ed |
|
.Dl $ ktrace -idg 15 |
.Dl $ ktrace -idg 15 |
.Pp |
.Pp |
# disable all tracing of process 65 |
Disable all tracing of process 65: |
.Dl $ ktrace -cp 65 |
.Dl $ ktrace -cp 65 |
.Pp |
.Pp |
# disable tracing signals on process 70 and all current children |
Disable tracing signals on process 70 and all current children: |
.Dl $ ktrace -t s -cdp 70 |
.Dl $ ktrace -t s -cdp 70 |
.Pp |
.Pp |
# enable tracing of I/O on process 67 |
Enable tracing of I/O on process 67: |
.Dl $ ktrace -ti -p 67 |
.Dl $ ktrace -ti -p 67 |
.Pp |
.Pp |
# run the command "w", tracing only system calls |
Run the command |
|
.Xr w 1 , |
|
tracing only system calls: |
.Dl $ ktrace -tc w |
.Dl $ ktrace -tc w |
.Pp |
.Pp |
# disable all tracing to the file "tracedata" |
Disable all tracing to the file "tracedata": |
.Dl $ ktrace -c -f tracedata |
.Dl $ ktrace -c -f tracedata |
.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 SEE ALSO |
.Sh SEE ALSO |
.Xr kdump 1 , |
.Xr kdump 1 , |