summaryrefslogtreecommitdiffstats
path: root/doc/SystemTap_Beginners_Guide/en-US/extras
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2008-12-10 14:49:46 -0500
committerWilliam Cohen <wcohen@redhat.com>2008-12-10 14:49:46 -0500
commit1c0f18a9730f1fa5990c79debfc1960b08c8b7cf (patch)
tree8edd722db8a39e4964f3ad2101355732c8e62896 /doc/SystemTap_Beginners_Guide/en-US/extras
parente557e9564abe26495b516332fec90016bc4760ac (diff)
downloadsystemtap-steved-1c0f18a9730f1fa5990c79debfc1960b08c8b7cf.tar.gz
systemtap-steved-1c0f18a9730f1fa5990c79debfc1960b08c8b7cf.tar.xz
systemtap-steved-1c0f18a9730f1fa5990c79debfc1960b08c8b7cf.zip
Edit useful script examples. Clean up formating para-call-graph-simple.stp
Diffstat (limited to 'doc/SystemTap_Beginners_Guide/en-US/extras')
-rwxr-xr-xdoc/SystemTap_Beginners_Guide/en-US/extras/para-callgraph-simple.stp36
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/SystemTap_Beginners_Guide/en-US/extras/para-callgraph-simple.stp b/doc/SystemTap_Beginners_Guide/en-US/extras/para-callgraph-simple.stp
index 17cf50a5..1a3e2e03 100755
--- a/doc/SystemTap_Beginners_Guide/en-US/extras/para-callgraph-simple.stp
+++ b/doc/SystemTap_Beginners_Guide/en-US/extras/para-callgraph-simple.stp
@@ -1,39 +1,39 @@
function trace(entry_p) {
- if(tid() in trace)
- printf("%s%s%s\n",thread_indent(entry_p),
- (entry_p>0?"->":"<-"),
- probefunc())
+ 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)
+ if (execname() == "stapio") next # skip our own helper process
+ trace[tid()] = 1
+ trace(1)
}
probe kernel.function(@1).return {
- trace(-1)
- delete trace[tid()]
+ 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())
+ 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)
+ if (execname() == "stapio") next # skip our own helper process
+ trace[tid()] = 1
+ trace(1)
}
probe kernel.function(@1).return {
- trace(-1)
- delete trace[tid()]
+ trace(-1)
+ delete trace[tid()]
}
probe kernel.function(@2).call { trace(1) }