diff options
| author | Steve Dickson <steved@redhat.com> | 2010-05-17 14:21:39 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2010-05-17 14:21:39 -0400 |
| commit | ad251dbccf649034189e4a464b63fbbdae95c487 (patch) | |
| tree | 52b966aa2cc2dd7f259391b7b52f5f098c4244d4 /nfs | |
| parent | b1abc38ebb67fc1ce4cc53bba265f3eaa8a2f999 (diff) | |
| download | systemtap-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.stp | 6 |
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; } /* |
