summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/general
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-10-29 12:29:45 +1000
committerddomingo <ddomingo@redhat.com>2008-10-29 12:29:45 +1000
commit38b8c86a6dca11017d03fdfa6ce1ee201154ae07 (patch)
treef9ce7f56d6071cfa0a007e078add7522a28ddbe3 /testsuite/systemtap.examples/general
parent4204677f1886822f60ce544e55d4f44f10c668d0 (diff)
downloadsystemtap-steved-38b8c86a6dca11017d03fdfa6ce1ee201154ae07.tar.gz
systemtap-steved-38b8c86a6dca11017d03fdfa6ce1ee201154ae07.tar.xz
systemtap-steved-38b8c86a6dca11017d03fdfa6ce1ee201154ae07.zip
removed simples
Diffstat (limited to 'testsuite/systemtap.examples/general')
-rw-r--r--testsuite/systemtap.examples/general/inodewatch-simple.stp11
-rw-r--r--testsuite/systemtap.examples/general/inodewatch2-simple.stp12
-rw-r--r--testsuite/systemtap.examples/general/para-callgraph-simple.meta7
-rwxr-xr-xtestsuite/systemtap.examples/general/para-callgraph-simple.stp40
4 files changed, 0 insertions, 70 deletions
diff --git a/testsuite/systemtap.examples/general/inodewatch-simple.stp b/testsuite/systemtap.examples/general/inodewatch-simple.stp
deleted file mode 100644
index 5f81008d..00000000
--- a/testsuite/systemtap.examples/general/inodewatch-simple.stp
+++ /dev/null
@@ -1,11 +0,0 @@
-probe kernel.function ("vfs_write"),
- kernel.function ("vfs_read")
-{
- dev_nr = $file->f_dentry->d_inode->i_sb->s_dev
- inode_nr = $file->f_dentry->d_inode->i_ino
- if (dev_nr == ($1 << 20 | $2) # major/minor device
- && inode_nr == $3)
- printf ("%s(%d) %s 0x%x/%u\n",
- execname(), pid(), probefunc(), dev_nr, inode_nr)
-}
- stap -p4 para-callgraph.stp sys_read '*@fs/*.c'
diff --git a/testsuite/systemtap.examples/general/inodewatch2-simple.stp b/testsuite/systemtap.examples/general/inodewatch2-simple.stp
deleted file mode 100644
index 4fea18e6..00000000
--- a/testsuite/systemtap.examples/general/inodewatch2-simple.stp
+++ /dev/null
@@ -1,12 +0,0 @@
-global ATTR_MODE = 1
-
-probe kernel.function("inode_setattr") {
- dev_nr = $inode->i_sb->s_dev
- inode_nr = $inode->i_ino
-
- if (dev_nr == ($1 << 20 | $2) # major/minor device
- && inode_nr == $3
- && $attr->ia_valid & ATTR_MODE)
- printf ("%s(%d) %s 0x%x/%u %o %d\n",
- execname(), pid(), probefunc(), dev_nr, inode_nr, $attr->ia_mode, uid())
-}
diff --git a/testsuite/systemtap.examples/general/para-callgraph-simple.meta b/testsuite/systemtap.examples/general/para-callgraph-simple.meta
deleted file mode 100644
index 4a0bb251..00000000
--- a/testsuite/systemtap.examples/general/para-callgraph-simple.meta
+++ /dev/null
@@ -1,7 +0,0 @@
-title: Callgraph tracing with arguments
-name: para-callgraph.stp
-keywords: trace callgraph
-subsystem: general
-description: Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.
-test_check: stap -p4 para-callgraph.stp sys_read '*@fs/*.c'
-test_installcheck: TBD
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) }