Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/proc_by_pid.stp

raw
1 global funcs
2 global marks
3
4 probe begin { printf("systemtap starting probe\n") }
5 probe process.function("first_function"),
6 process.function("second_function") { funcs++ }
7 # Exit, since scripts with -x flag do not auto-stop when PID exits
8 probe process.function("exit_probe_function") { funcs++; exit (); }
9 probe process.mark("*") { marks++ }
10 probe end {
11 printf("systemtap ending probe\n");
12 printf("Encountered %d functions, and %d marks\n", funcs, marks);
13 }