]> sourceware.org Git - systemtap.git/commitdiff
In ioblock.stp ioblock.end set bytes_done depending on kernel version.
authorMark Wielaard <mwielaard@redhat.com>
Thu, 8 May 2008 11:48:11 +0000 (13:48 +0200)
committerMark Wielaard <mwielaard@redhat.com>
Thu, 8 May 2008 11:48:11 +0000 (13:48 +0200)
tapset/ChangeLog
tapset/ioblock.stp

index cf41c9cbc76357ad85c7a00ca7912d4bbd0289f4..70d75b83800d78d0d7a4dd7fbbdc3db5a81aa569 100644 (file)
@@ -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
index 94781c04148dee9d959499ebb67f8fdcc8e6fa6b..14ce3f6ba21c7527ce61fe563b81d7eca5b34d12 100644 (file)
@@ -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
This page took 0.029987 seconds and 5 git commands to generate.