Index
开启ftrace
1 2 |
|
trace cmd
- record - record a trace into a trace.dat file
- start - start tracing without recording into a file
- extract - extract a trace from the kernel
- stop - stop the kernel from recording trace data
- show - show the contents of the kernel tracing buffer
- reset - disable all kernel tracing and clear the trace buffers
- report - read out the trace stored in a trace.dat file
- hist - show a historgram of the trace.dat information
- split - parse a trace.dat file into smaller file(s)
- options - list the plugin options available for trace-cmd report
- listen - listen on a network socket for trace clients
- list - list the available events, plugins or options
- restore - restore a crashed record
- snapshot - take snapshot of running trace
- stack - output, enable or disable kernel stack tracing
- check-events - parse trace event formats
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
Function tracing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
Function triggers
<function-name>:<trigger>:<count>
trigger:
1. traceoff
2. traceon
3. stacktrace
4. dump
5. cpudump
6. enable_event/disable_event
uprobe tracer
https://www.kernel.org/doc/html/v4.17/trace/uprobetracer.html