summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog6
-rw-r--r--tapset/ioblock.stp2
2 files changed, 7 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index cf41c9cb..70d75b83 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-08 Ananth N Mavinakayanahalli <ananth@in.ibm.com>
+
+ PR 5231
+ * ioblock.stp (ioblock.end): Set bytes_done depending on kernel
+ version.
+
2008-04-29 Frank Ch. Eigler <fche@elastic.org>
PR 6466
diff --git a/tapset/ioblock.stp b/tapset/ioblock.stp
index 94781c04..14ce3f6b 100644
--- a/tapset/ioblock.stp
+++ b/tapset/ioblock.stp
@@ -167,7 +167,7 @@ probe ioblock.end = kernel.function("bio_endio")
devname = __bio_devname($bio)
ino = __bio_ino($bio)
- bytes_done = $bytes_done
+ bytes_done = %( kernel_vr < "2.6.24" %? $bytes_done %: $bio->bi_size %)
error = $error
sector = $bio->bi_sector