diff options
Diffstat (limited to 'testsuite/systemtap.examples/general/para-callgraph-simple.stp')
-rwxr-xr-x | testsuite/systemtap.examples/general/para-callgraph-simple.stp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/testsuite/systemtap.examples/general/para-callgraph-simple.stp b/testsuite/systemtap.examples/general/para-callgraph-simple.stp deleted file mode 100755 index 17cf50a5..00000000 --- a/testsuite/systemtap.examples/general/para-callgraph-simple.stp +++ /dev/null @@ -1,40 +0,0 @@ -function trace(entry_p) {
- if(tid() in trace)
- printf("%s%s%s\n",thread_indent(entry_p),
- (entry_p>0?"->":"<-"),
- probefunc())
-}
-
-global trace
-probe kernel.function(@1).call {
- if (execname() == "stapio") next # skip our own helper process
- trace[tid()] = 1
- trace(1)
-}
-probe kernel.function(@1).return {
- trace(-1)
- delete trace[tid()]
-}
-
-probe kernel.function(@2).call { trace(1) }
-probe kernel.function(@2).return { trace(-1) }
-function trace(entry_p) {
- if(tid() in trace)
- printf("%s%s%s\n",thread_indent(entry_p),
- (entry_p>0?"->":"<-"),
- probefunc())
-}
-
-global trace
-probe kernel.function(@1).call {
- if (execname() == "stapio") next # skip our own helper process
- trace[tid()] = 1
- trace(1)
-}
-probe kernel.function(@1).return {
- trace(-1)
- delete trace[tid()]
-}
-
-probe kernel.function(@2).call { trace(1) }
-probe kernel.function(@2).return { trace(-1) }
|