From ad251dbccf649034189e4a464b63fbbdae95c487 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 17 May 2010 14:21:39 -0400 Subject: Update nfs_offsets to be more explicited Signed-off-by: Steve Dickson --- nfs/nfs_offsets.stp | 6 ++++-- 1 file 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; } /* -- cgit