doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/bz5274.a.stp
raw| 1 | #! /usr/bin/env stap |
| 2 | probe process("./bz5274").function("funcb").call, |
| 3 | process("./bz5274").function("funcc").call, |
| 4 | process("./bz5274").function("funcd").call |
| 5 | { |
| 6 | printf("%s Entering %s\n", pp(), thread_indent(1)) |
| 7 | } |
| 8 | |
| 9 | |
| 10 | probe process("./bz5274").function("funcb").return, |
| 11 | process("./bz5274").function("funcc").return, |
| 12 | process("./bz5274").function("funcd").return |
| 13 | { |
| 14 | printf("%s %s returns %s\n", pp(), thread_indent(-1), returnstr(2)) |
| 15 | } |
| 16 |