Skip to content

Trace

trace是debug中非常常见的一种形式。

What is trace?

"trace"即“跟踪”。

wikipedia Tracing (software)

wikipedia Trace

Examples

Stack trace

wikipedia Stack trace

Stack-trace: Shell-and-tools\Tools\Debug\Stack-trace

System call trace

System-call-trace: Shell-and-tools\Tools\Debug\System-call-trace

Library call trace

Library-call-tracer: Shell-and-tools\Tools\Debug\Library-call-trace

Trace point

gdb Tracepoints

linux tracepoint:

Signal trace

wikipedia Signal trace

Kernel tracing framework

framework OS kernel
ktrace - BSD Unix
- Mac OS X
ftrace - Linux kernel
DTrace - Solaris

wikipedia LTTng

TODO

3.2.1. Process State TASK_TRACED

TODO

dev Say this five times fast: strace, ptrace, dtrace, dtruss