Debian Codegraph @

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

raw
1 #!/usr/bin/env stap
2
3 // Note, we don't have any $var access without full debuginfo.
4 // Make sure @defined can mask it in both call and return probes.
5
6 probe process.function("*") {
7 log(@choose_defined($foo, probefunc()))
8 }
9
10
11 probe process.function("main").return {
12 log(@choose_defined($foo, "return"))
13 }