Ktrace

From Wikipedia, the free encyclopedia
ktrace
Written in C
Operating system BSD Unix and Mac OS X
Available in English
Type Tracing

ktrace is a utility included with certain versions of BSD Unix and Mac OS X that traces kernel interaction with a program and dumps it to disk for debugging and analysis. It is somewhat similar to Linux's strace, except much faster - with strace, every system call executed by the program being traced requires context switch to the tracing program and back, while with ktrace, tracing is actually performed by the kernel, so no additional context switches are required.

Log files generated by ktrace[1] are viewable in human-readable form using kdump[2]

Since Mac OS X 10.5 Leopard, ktrace has been replaced by dtrace.

See also

References

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.