summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context/backtrace.stp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-04-14 12:53:38 -0500
committerDavid Smith <dsmith@redhat.com>2008-04-14 12:53:38 -0500
commitff82a2ca27f4fd0086a911656017e3b912778525 (patch)
tree17d6946329f0e52b2201bd1fcda52d2069a731fd /testsuite/systemtap.context/backtrace.stp
parent43807f81b6365864e047583eaebe5e85588c7b36 (diff)
parent775d51e5fb2f379fe4ae15dcbae8b17e4eab8805 (diff)
downloadsystemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.gz
systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.tar.xz
systemtap-steved-ff82a2ca27f4fd0086a911656017e3b912778525.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.context/backtrace.stp')
-rw-r--r--testsuite/systemtap.context/backtrace.stp27
1 files changed, 14 insertions, 13 deletions
diff --git a/testsuite/systemtap.context/backtrace.stp b/testsuite/systemtap.context/backtrace.stp
index c14d071c..ddd7d00a 100644
--- a/testsuite/systemtap.context/backtrace.stp
+++ b/testsuite/systemtap.context/backtrace.stp
@@ -1,10 +1,9 @@
-function print_all_trace_info(point:string) {
+function print_all_trace_info(point) {
printf("backtrace from %s:\n", pp())
print_backtrace()
- print("--------\n")
+ printf("--- %s ---\n", point)
bt = backtrace()
- printf("the %s stack is %s\n", point, bt)
- printf("--<%s>--\n", point)
+ printf("the stack is %s\n", bt)
print_stack(bt);
print("--------\n")
}
@@ -18,18 +17,20 @@ probe end {
}
global flag = 0
-probe module("systemtap_test_module2").function("yyy_func3").call {
- print_all_trace_info("call")
+
+probe module("systemtap_test_module2").function("yyy_func2") {
+ print_all_trace_info("yyy_func2")
flag ++
}
-probe module("systemtap_test_module2").function("yyy_func4").return {
- print_all_trace_info("return")
+
+probe module("systemtap_test_module2").function("yyy_func3") {
+ print_all_trace_info("yyy_func3")
flag ++
}
-probe timer.profile {
- if (cpu() == 0 && flag == 2 && probemod() != "systemtap_test_module2") {
- print_all_trace_info("profile")
- flag ++
- }
+
+probe module("systemtap_test_module2").function("yyy_func4") {
+ print_all_trace_info("yyy_func4")
+ flag ++
}
+