ktrace
Written inC[1]
Operating systemBSD Unix and Mac OS X
Available inEnglish
TypeTracing

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.[2]

Trace files generated by ktrace (named ktrace.out by default) can be viewed in human-readable form by using the kdump utility.[3]

Since Mac OS X Leopard, ktrace has been replaced by DTrace.[4] The identically-named ktrace program in recent macOS versions does not have the same functions as this utility.

See also

edit
  • DTrace, Sun Microsystems's trace version, now running on OpenSolaris, FreeBSD, macOS, and Windows
  • kdump (Linux), Linux kernel's crash dump mechanism, which internally uses kexec
  • SystemTap
  • trace on Linux, part of the Linux Trace Toolkit

References

edit
  1. ^ "C source of ktrace utility in FreeBSD". cgit.freebsd.org. Retrieved 2024-03-07.
  2. ^ "ktrace(1) manpage". freebsd.org. 2012-05-31. Retrieved 2014-07-23.
  3. ^ "kdump(1) manpage". freebsd.org. 2014-03-28. Retrieved 2014-07-23.
  4. ^ "What happened to ktrace and kdump". discussions.apple.com. 2008-10-17.


📚 Artikel Terkait di Wikipedia

Strace

provides the truss command, ktrace and DTrace NetBSD provides ktrace and DTrace OpenBSD uses ktrace and kdump macOS provides ktrace (10.4 and earlier), DTrace

ProcDump

open-source software portal WinDbg Dr. Watson (debugger) kdump (Linux) ktrace Process Explorer "microsoft/ProcDump-for-Linux". GitHub. 4 November 2022

DTrace

events, interrupts, memory-mapped I/O, CPU power state transitions, etc. ktrace – a BSD Unix and macOS utility that traces kernel–program interactions ltrace –

Ltrace

= 0 [pid 11783] strlen("off") = 3 strace – system call tracer for linux ktrace – system call tracer for *BSD DTrace – Solaris / OS X / BSD / Windows kernel

List of Plan 9 applications

arithmetic language cb – C program beautifier cpp – C language preprocessor ktrace – interpret kernel stack dumps leak, kmem – help find memory leaks mk, membername

Kdump (Linux)

purposes kdump (BSD) – a BSD utility for viewing trace files generated by the ktrace utility Linux kernel oops – a potentially non-fatal deviation from correct

Ftrace

troubleshooting kernel and application problems, originally developed for Solaris ktrace – a BSD Unix and Mac OS X utility that traces kernel–program interactions

Kdump

to: kdump (BSD), a BSD utility for viewing trace files generated by the ktrace utility kdump (Linux), Linux kernel's crash dump mechanism, which internally