Call Graph Tracing
script examples
call graph tracing
examples of SystemTap scripts
call graph tracing
call graph tracing
examples of SystemTap scripts
incoming/outgoing function calls, tracing
examples of SystemTap scripts
function calls (incoming/outgoing), tracing
examples of SystemTap scripts
tracing incoming/outgoing function calls
examples of SystemTap scripts
tracing call graph
examples of SystemTap scripts
WAR STORY: Call graph tracing http://sourceware.org/systemtap/wiki/WSCallGraph?highlight=((WarStories))
script: http://sourceware.org/systemtap/examples/general/para-callgraph.stp
This section describes how to trace incoming and outgoing function calls.
para-callgraph-simple.stp
script examples
multiple command-line arguments, example of
examples of SystemTap scripts
multiple command-line arguments, example of
multiple command-line arguments, example of
examples of SystemTap scripts
example of multiple command-line arguments
examples of SystemTap scripts
takes two command-line arguments:
script examples
trigger function
examples of SystemTap scripts
trigger function
trigger function
examples of SystemTap scripts
A trigger function (@1), 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.
The kernel function/s whose entry/exit call you'd like to trace
(@2).
please verify previous if correct; i'm particularly interested in finding out how to better describe "trigger function"
script examples
thread_indent(), sample usage
examples of SystemTap scripts
thread_indent(), sample usage
thread_indent(), sample usage
examples of SystemTap scripts
uses thread_indent(); as such, its output contains the timestamp, process name, and thread ID of @2 (i.e. the probe function you are tracing). For more information about thread_indent(), refer to its entry in .
The following example contains an excerpt from the output for stap para-callgraph.stp sys_read '*@fs/*.c':
Sample Output
[...]
0 klogd(1391):->sys_read
14 klogd(1391): ->fget_light
22 klogd(1391): <-fget_light
27 klogd(1391): ->vfs_read
35 klogd(1391): ->rw_verify_area
43 klogd(1391): <-rw_verify_area
49 klogd(1391): ->kmsg_read
0 sendmail(1696):->sys_read
17 sendmail(1696): ->fget_light
26 sendmail(1696): <-fget_light
34 sendmail(1696): ->vfs_read
44 sendmail(1696): ->rw_verify_area
52 sendmail(1696): <-rw_verify_area
58 sendmail(1696): ->proc_file_read
70 sendmail(1696): ->loadavg_read_proc
84 sendmail(1696): ->proc_calc_metrics
92 sendmail(1696): <-proc_calc_metrics
95 sendmail(1696): <-loadavg_read_proc
101 sendmail(1696): <-proc_file_read
106 sendmail(1696): ->dnotify_parent
115 sendmail(1696): <-dnotify_parent
119 sendmail(1696): ->inotify_dentry_parent_queue_event
127 sendmail(1696): <-inotify_dentry_parent_queue_event
133 sendmail(1696): ->inotify_inode_queue_event
141 sendmail(1696): <-inotify_inode_queue_event
146 sendmail(1696): <-vfs_read
151 sendmail(1696):<-sys_read