summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhaolei <zhaolei>2007-09-27 01:42:46 +0000
committerzhaolei <zhaolei>2007-09-27 01:42:46 +0000
commit58a81479785f10c9717997ba1a374125f3da7103 (patch)
treebc9f24b646abfb85fcd5b9305774392e261a7a6d
parent930f61d116d0c37a2eca4d8d3232b439c9f80101 (diff)
downloadsystemtap-steved-58a81479785f10c9717997ba1a374125f3da7103.tar.gz
systemtap-steved-58a81479785f10c9717997ba1a374125f3da7103.tar.xz
systemtap-steved-58a81479785f10c9717997ba1a374125f3da7103.zip
2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
* socket.stp (aio_read): Fix compile error with kernel version less than 2.6.19. * socket.stp (aio_write): Ditto.
-rw-r--r--tapset/ChangeLog6
-rw-r--r--tapset/socket.stp10
2 files changed, 15 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 830e949c..a8e100c2 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-27 Zhaolei <zhaolei@cn.fujitsu.com>
+
+ * socket.stp (aio_read): Fix compile error with kernel version
+ less than 2.6.19.
+ * socket.stp (aio_write): Ditto.
+
2007-09-26 Mike Mason <mmlnx@us.ibm.com>
* vfs.stp:
diff --git a/tapset/socket.stp b/tapset/socket.stp
index fc532b1d..e18d99ee 100644
--- a/tapset/socket.stp
+++ b/tapset/socket.stp
@@ -219,7 +219,11 @@ probe socket.aio_write = kernel.function ("sock_aio_write")
{
name = "socket.aio_write"
_sock = _get_sock_addr ($iocb->ki_filp)
+%( kernel_v < "2.6.19" %?
+ size = $count
+%:
size = _get_sock_size ($iov, $nr_segs)
+%)
protocol = _sock_prot_num (_sock)
family = _sock_fam_num (_sock)
state = _sock_state_num (_sock)
@@ -282,7 +286,11 @@ probe socket.aio_read = kernel.function ("sock_aio_read")
{
name = "socket.aio_read"
_sock = _get_sock_addr ($iocb->ki_filp)
- size = _get_sock_size ($iov, $nr_segs)
+%( kernel_v < "2.6.19" %?
+ size = $count
+%:
+ size = _get_sock_size ($iov, $nr_segs)
+%)
protocol = _sock_prot_num (_sock)
family = _sock_fam_num (_sock)
state = _sock_state_num (_sock)