이 콘텐츠는 선택한 언어로 제공되지 않습니다.
4.3.2. Call Graph Tracing
This section describes how to trace incoming and outgoing function calls.
para-callgraph.stp
para-callgraph.stp takes two command-line arguments:
- The function(s) whose entry or exit you would like to trace (
$1
). - A second optional trigger function (
$2
), which enables or disables tracing on a per-thread basis. Tracing in each thread will continue as long as the trigger function has not exited yet.
para-callgraph.stp uses
thread_indent()
; as such, its output contains the timestamp, process name, and thread ID of $1
(that is the probe function you are tracing). For more information about thread_indent()
, refer to its entry in SystemTap Functions.
The following example contains an excerpt from the output for
stap para-callgraph.stp 'kernel.function("*@fs/*.c")' 'kernel.function("sys_read")'
:
Example 4.12. para-callgraph.stp Sample Output