summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/io
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.examples/io')
-rwxr-xr-xtestsuite/systemtap.examples/io/iotop.stp4
-rwxr-xr-xtestsuite/systemtap.examples/io/traceio.stp4
-rwxr-xr-xtestsuite/systemtap.examples/io/traceio2.stp4
3 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/systemtap.examples/io/iotop.stp b/testsuite/systemtap.examples/io/iotop.stp
index 2fa3e3ae..f868169b 100755
--- a/testsuite/systemtap.examples/io/iotop.stp
+++ b/testsuite/systemtap.examples/io/iotop.stp
@@ -2,11 +2,11 @@
global reads, writes, total_io
-probe kernel.function("vfs_read") {
+probe vfs.read {
reads[execname()] += $count
}
-probe kernel.function("vfs_write") {
+probe vfs.write {
writes[execname()] += $count
}
diff --git a/testsuite/systemtap.examples/io/traceio.stp b/testsuite/systemtap.examples/io/traceio.stp
index cb667be5..4ca4dd4c 100755
--- a/testsuite/systemtap.examples/io/traceio.stp
+++ b/testsuite/systemtap.examples/io/traceio.stp
@@ -9,11 +9,11 @@
global reads, writes, total_io
-probe kernel.function("vfs_read").return {
+probe vfs.read.return {
reads[execname()] += $return
}
-probe kernel.function("vfs_write").return {
+probe vfs.write.return {
writes[execname()] += $return
}
diff --git a/testsuite/systemtap.examples/io/traceio2.stp b/testsuite/systemtap.examples/io/traceio2.stp
index 988ea36c..91445d3e 100755
--- a/testsuite/systemtap.examples/io/traceio2.stp
+++ b/testsuite/systemtap.examples/io/traceio2.stp
@@ -9,8 +9,8 @@ probe begin {
device_of_interest = MKDEV(MAJOR(dev), MINOR(dev))
}
-probe kernel.function ("vfs_write"),
- kernel.function ("vfs_read")
+probe vfs.write,
+ vfs.read
{
dev_nr = $file->
%( kernel_v < "2.6.19" %? f_dentry %: f_path->dentry %)