summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
/*