summaryrefslogtreecommitdiffstats
path: root/tapset/socket.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/socket.stp')
-rw-r--r--tapset/socket.stp10
1 files changed, 9 insertions, 1 deletions
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)