|ktrace(1)||enable kernel process tracing|
|ktrace, ktrgenio, ktrnamei, KTRPOINT, ktrpsig, ktrsyscall, ktrsysret(9)||process tracing kernel interface|
|KTRACE(1)||General Commands Manual||KTRACE(1)|
ktraceenables kernel trace logging for the specified processes. By default, kernel trace data is logged to the file ktrace.out, unless overridden by the
-foption. The kernel operations traced are system calls, namei translations, signal processing and I/O. Once tracing is enabled on a process, trace data will be logged until either the process exits or the trace point is cleared. A traced process can generate enormous amounts of log data quickly; it is strongly suggested that users memorize how to disable tracing before attempting to trace a process. The following command is sufficient to disable tracing on all user owned processes and, if executed by root, all processes:
$ ktrace -C
LD_BIND_NOWenvironment variable to specify that the dynamic linker should process relocations immediately instead of as they are encountered. This eliminates the resulting ld.so(1) relocation sequences.
-gflag is permitted).
-pflag is permitted).
Xare enabled. The following table equates the letters with the trace points:
-g, and command options are mutually exclusive.
$ ktrace -p 34
$ ktrace -idg 15
$ ktrace -cp 65
$ ktrace -t s -cdp 70
$ ktrace -ti -p 67
$ ktrace -tc w
$ ktrace -c -f tracedata
$ ktrace -C
ktracecommand appeared in 4.4BSD.
|July 18, 2016||OpenBSD-current|