summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-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
-rw-r--r--testsuite/systemtap.examples/io/traceio2-simple.meta13
-rwxr-xr-xtestsuite/systemtap.examples/io/traceio2-simple.stp8
6 files changed, 0 insertions, 91 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) }
diff --git a/testsuite/systemtap.examples/io/traceio2-simple.meta b/testsuite/systemtap.examples/io/traceio2-simple.meta
deleted file mode 100644
index 558539e3..00000000
--- a/testsuite/systemtap.examples/io/traceio2-simple.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-title: Watch I/O Activity on a Particular Device Simplified
-name: traceio2-simple.stp
-version: 1.0
-author: Red Hat
-keywords: io
-subsystem: io
-status: production
-exit: user-controlled
-output: trace
-scope: system-wide
-description: Print out the executable name and process number as reads and writes to the specified device occur.
-test_check: stap -p4 traceio2.stp 8 5
-test_installcheck: stap traceio2.stp 8 5 -c "sleep 1"
diff --git a/testsuite/systemtap.examples/io/traceio2-simple.stp b/testsuite/systemtap.examples/io/traceio2-simple.stp
deleted file mode 100755
index 7b9708a9..00000000
--- a/testsuite/systemtap.examples/io/traceio2-simple.stp
+++ /dev/null
@@ -1,8 +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))
-printf ("%s(%d) %s 0x%x\n", execname(), pid(), probefunc(), dev_nr)
-}