Ktrace
Software
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 the purposes of debugging and analysis. Traced kernel operations include system calls, name translations, signal processing, and I/O.
Trace files generated by ktrace (named ktrace.out by default) can be viewed in human-readable form by using the kdump utility.
Since Mac OS X Leopard, ktrace has been replaced by DTrace. The identically-named ktrace program in recent macOS versions does not have the same functions as this utility.
Sources and credits
This article is adapted from the Wikipedia article “Ktrace”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.