summaryrefslogtreecommitdiffstats
path: root/nfs
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-05-17 14:21:39 -0400
committerSteve Dickson <steved@redhat.com>2010-05-17 14:21:39 -0400
commitad251dbccf649034189e4a464b63fbbdae95c487 (patch)
tree52b966aa2cc2dd7f259391b7b52f5f098c4244d4 /nfs
parentb1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999 (diff)
downloadsystemtap-ad251dbccf649034189e4a464b63fbbdae95c487.tar.gz
systemtap-ad251dbccf649034189e4a464b63fbbdae95c487.tar.xz
systemtap-ad251dbccf649034189e4a464b63fbbdae95c487.zip
Update nfs_offsets to be more explicited
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'nfs')
-rw-r--r--nfs/nfs_offsets.stp6
1 files changed, 4 insertions, 2 deletions
diff --git a/nfs/nfs_offsets.stp b/nfs/nfs_offsets.stp
index 1b6b3f9..168b961 100644
--- a/nfs/nfs_offsets.stp
+++ b/nfs/nfs_offsets.stp
@@ -1,8 +1,10 @@
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));
+ if (next_pos) {
+ if ((pos - next_pos) != 0x100000)
+ printf("%s: offset 0x%x > 0x%x\n", name, pos, (pos - next_pos));
+ }
next_pos = pos;
}
/*