summaryrefslogtreecommitdiffstats
path: root/tapset/tcp.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-08-27 16:44:10 +0000
committerhunt <hunt>2007-08-27 16:44:10 +0000
commit3a5ee1c03bcb392982d24b1a2b9be61c137feeaa (patch)
treef0c13d6da4b108a05a8972fd3a0321046762913b /tapset/tcp.stp
parenta961f31c36c7ff885f6942638d201a8d1de4abce (diff)
downloadsystemtap-steved-3a5ee1c03bcb392982d24b1a2b9be61c137feeaa.tar.gz
systemtap-steved-3a5ee1c03bcb392982d24b1a2b9be61c137feeaa.tar.xz
systemtap-steved-3a5ee1c03bcb392982d24b1a2b9be61c137feeaa.zip
2007-08-27 Martin Hunt <hunt@redhat.com>
* context.stp (module_name): New. Returns the current module name. * tcp.stp (tcp_sendmsg): For 2.6.23, parameters change.
Diffstat (limited to 'tapset/tcp.stp')
-rw-r--r--tapset/tcp.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/tcp.stp b/tapset/tcp.stp
index 977c3ecc..ce8986a6 100644
--- a/tapset/tcp.stp
+++ b/tapset/tcp.stp
@@ -121,7 +121,11 @@ function tcp_sockopt_str:string (optname:long) {
// size - number of bytes to send
//
probe tcp.sendmsg = kernel.function("tcp_sendmsg") {
+%( kernel_v < "2.6.23" %?
sock = $sk
+%:
+ sock = $sock
+%)
size = $size
}