diff options
author | Mark Wielaard <mwielaard@redhat.com> | 2008-05-08 13:48:11 +0200 |
---|---|---|
committer | Mark Wielaard <mwielaard@redhat.com> | 2008-05-08 13:48:11 +0200 |
commit | 5341054cc6cbe0ecc05947b59c12820a34635e1b (patch) | |
tree | 9c0256793666e8b49a8eb99c5e837d4f0baf2f5a | |
parent | 4bd48e4b30fdf2caa4d4d9cc9a52dad347807535 (diff) | |
download | systemtap-steved-5341054cc6cbe0ecc05947b59c12820a34635e1b.tar.gz systemtap-steved-5341054cc6cbe0ecc05947b59c12820a34635e1b.tar.xz systemtap-steved-5341054cc6cbe0ecc05947b59c12820a34635e1b.zip |
In ioblock.stp ioblock.end set bytes_done depending on kernel version.
-rw-r--r-- | tapset/ChangeLog | 6 | ||||
-rw-r--r-- | tapset/ioblock.stp | 2 |
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 |