summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-05-13 18:13:40 -0400
committerSteve Dickson <steved@redhat.com>2010-05-13 18:13:40 -0400
commitb1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999 (patch)
treeb97d1a672aae7ea1cb5ca4c9883e2230d4d483a3
parentb5e790d3f4a6232c107f17428e9071e9c34fbb9a (diff)
downloadsystemtap-b1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999.tar.gz
systemtap-b1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999.tar.xz
systemtap-b1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999.zip
Added nfs_offsets prob
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--nfs/nfs_offsets.stp17
1 files changed, 17 insertions, 0 deletions
diff --git a/nfs/nfs_offsets.stp b/nfs/nfs_offsets.stp
new file mode 100644
index 0000000..1b6b3f9
--- /dev/null
+++ b/nfs/nfs_offsets.stp
@@ -0,0 +1,17 @@
+global next_pos
+
+probe nfs.fop.aio_write {
+ if ((pos - next_pos) > 0x100000)
+ printf("%s: offset 0x%x > 0x%x\n", name, pos, (pos - next_pos));
+ next_pos = pos;
+}
+/*
+probe nfs.fop.aio_write.return {
+ printf("%s: \n", name);
+}
+*/
+
+probe begin { log("starting nfs-offset probe") }
+
+probe end { log("ending nfs-offset probe") }
+