/usr/share/systemtap/examples/general
NameSizeModeActions
alias_suffixes.meta7240644editdlrm
alias_suffixes.stp10600755editdlrm
also_ran.meta6050644editdlrm
also_ran.stp8040755editdlrm
ansi_colors.meta5070644editdlrm
ansi_colors.stp7160755editdlrm
ansi_colors2.meta5700644editdlrm
ansi_colors2.stp7380755editdlrm
badname.meta4590644editdlrm
badname.stp13350755editdlrm
badname.txt1260644editdlrm
callgraph.meta3880644editdlrm
callgraph.stp2120755editdlrm
callgraph.txt37000644editdlrm
click.wav12900644editdlrm
cpu_throttle.meta7950644editdlrm
cpu_throttle.stp14810755editdlrm
eventcount.meta6370644editdlrm
eventcount.stp69310755editdlrm
eventcount.txt18980644editdlrm
floatingpoint.meta4790644editdlrm
floatingpoint.stp5170644editdlrm
floatingpoint.txt1560644editdlrm
func_time_stats.meta6960644editdlrm
func_time_stats.stp5200755editdlrm
func_time_stats.txt4930644editdlrm
grapher.stp12860755editdlrm
graphs.meta4530644editdlrm
graphs.stp14990755editdlrm
helloworld.meta3970644editdlrm
helloworld.stp570755editdlrm
key.meta3190644editdlrm
key.stp4140755editdlrm
keyhack.meta3550644editdlrm
keyhack.stp2880755editdlrm
measureinterval.meta15820644editdlrm
measureinterval.stp8300755editdlrm
para-callgraph-verbose.meta8790644editdlrm
para-callgraph-verbose.stp4070755editdlrm
para-callgraph.meta7560644editdlrm
para-callgraph.stp4050755editdlrm
para-callgraph.txt44150644editdlrm
py2example.meta5310644editdlrm
py2example.tcl790644editdlrm
py3example.meta5320644editdlrm
py3example.tcl790644editdlrm
pyexample.py8320644editdlrm
pyexample.stp2160644editdlrm
regex.meta5040644editdlrm
regex.stp4910755editdlrm
return.wav65840644editdlrm
sizeof.meta6640644editdlrm
sizeof.stp4820755editdlrm
sizeof.txt1000644editdlrm
sizeof_interactive.meta8160644editdlrm
sizeof_interactive.stp5720644editdlrm
sizeof_interactive.txt1540644editdlrm
socket-events.meta5630644editdlrm
socket-events.stp54510755editdlrm
stopwatches.meta8600644editdlrm
stopwatches.stp9570755editdlrm
tcl-funtop.meta4790644editdlrm
tcl-funtop.stp8170755editdlrm
tcl-trace.meta3640644editdlrm
tcl-trace.stp10370755editdlrm
varwatch.meta5830644editdlrm
varwatch.stp4590755editdlrm
varwatch.txt26780644editdlrm
watchdog.meta9220644editdlrm
watchdog.stp4470755editdlrm
whythefail.meta4810644editdlrm
whythefail.stp22770644editdlrm
whythefail.txt37900644editdlrm
Edit: /usr/share/systemtap/examples/general/callgraph.txt (3700B)
callgraph.stp - Simple Callgraph Tracing Print a timed per-thread microsecond-timed nested callgraph. The first parameter names the function probe points to trace. For tracing calls to a single function: $ stap callgraph.stp 'kernel.function("sys_open")' 0 nscd(23451):->SyS_open 6 nscd(23451):<-SyS_open 0 nscd(23451):->SyS_open 7 nscd(23451):<-SyS_open 0 roxterm(21323):->SyS_open 43 roxterm(21323):<-SyS_open 0 roxterm(21323):->SyS_open 2604 roxterm(21323):<-SyS_open 0 systemd-udevd(637):->SyS_open 268 systemd-udevd(637):<-SyS_open 0 roxterm(21323):->SyS_open 24 roxterm(21323):<-SyS_open [...] For tracing all functions in a binary: $ stap callgraph.stp 'process("/bin/ls").function("*")' 0 ls(4261):->main 6 ls(4261): ->set_program_name 12 ls(4261): <-set_program_name 49 ls(4261): ->atexit 53 ls(4261): <-atexit 62 ls(4261): ->human_options 66 ls(4261): <-human_options 68 ls(4261): ->clone_quoting_options 73 ls(4261): ->xmemdup 77 ls(4261): ->xmalloc 81 ls(4261): <-xmalloc 83 ls(4261): <-xmemdup 84 ls(4261): <-clone_quoting_options 85 ls(4261): ->get_quoting_style 89 ls(4261): <-get_quoting_style 90 ls(4261): ->clone_quoting_options 94 ls(4261): ->xmemdup 98 ls(4261): ->xmalloc 101 ls(4261): <-xmalloc 103 ls(4261): <-xmemdup 104 ls(4261): <-clone_quoting_options 105 ls(4261): ->set_char_quoting 109 ls(4261): <-set_char_quoting 110 ls(4261): ->xmalloc 115 ls(4261): <-xmalloc 117 ls(4261): ->clear_files 121 ls(4261): <-clear_files 122 ls(4261): ->queue_directory 126 ls(4261): ->xmalloc 130 ls(4261): <-xmalloc 131 ls(4261): ->xstrdup 135 ls(4261): ->xmemdup 139 ls(4261): ->xmalloc 143 ls(4261): <-xmalloc 144 ls(4261): <-xmemdup 145 ls(4261): <-xstrdup 146 ls(4261): <-queue_directory 152 ls(4261): ->clear_files 156 ls(4261): <-clear_files 178 ls(4261): ->gobble_file.constprop.49 182 ls(4261): ->xstrdup 186 ls(4261): ->xmemdup 189 ls(4261): ->xmalloc 193 ls(4261): <-xmalloc 194 ls(4261): <-xmemdup 195 ls(4261): <-xstrdup 197 ls(4261): <-gobble_file.constprop.49 198 ls(4261): ->process_signals 202 ls(4261): <-process_signals [...] 4847 ls(4261): ->print_file_name_and_frills 4851 ls(4261): ->set_normal_color 4854 ls(4261): <-set_normal_color 4855 ls(4261): ->print_name_with_quoting 4863 ls(4261): ->quote_name 4867 ls(4261): ->quotearg_buffer 4870 ls(4261): ->quotearg_buffer_restyled 4874 ls(4261): <-quotearg_buffer_restyled 4875 ls(4261): <-quotearg_buffer 4877 ls(4261): <-quote_name 4878 ls(4261): ->process_signals 4881 ls(4261): <-process_signals 4882 ls(4261): <-print_name_with_quoting 4884 ls(4261): <-print_file_name_and_frills 4885 ls(4261): <-print_current_files 4888 ls(4261): ->close_stdout 4892 ls(4261): ->close_stream 4906 ls(4261): ->rpl_fclose 4910 ls(4261): ->rpl_fflush 4915 ls(4261): <-rpl_fflush 4922 ls(4261): <-rpl_fclose 4923 ls(4261): <-close_stream 4925 ls(4261): ->close_stream 4928 ls(4261): ->rpl_fclose 4932 ls(4261): ->rpl_fflush 4935 ls(4261): <-rpl_fflush 4937 ls(4261): <-rpl_fclose 4939 ls(4261): <-close_stream 4940 ls(4261): <-close_stdout 4943 ls(4261): ->__do_global_dtors_aux 4947 ls(4261): ->deregister_tm_clones 4950 ls(4261): <-deregister_tm_clones 4951 ls(4261): <-__do_global_dtors_aux 4953 ls(4261): ->_fini 4956 ls(4261): <-_fini