diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-12-22 14:25:00 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-12-22 14:54:20 +0800 |
commit | 3bd556fd59f403d962ea9a203c46451332b0ee46 (patch) | |
tree | f9c021608520afb89caac421af328076d3c46cff /tapset/tcp.stp | |
parent | d5d6f6f18b4ed3e2cd02b6a6a0740938582df89b (diff) | |
download | systemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.tar.gz systemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.tar.xz systemtap-steved-3bd556fd59f403d962ea9a203c46451332b0ee46.zip |
Update tapset related to struct inet_sock for 2.6.33
* tapset/inet_sock.stp : Add prefix "inet_" to field.
* tapset/ip.stp : Ditto.
* tapset/tcp.stp : Ditto.
* tapset/tcpmib.stp : Ditto.
Diffstat (limited to 'tapset/tcp.stp')
-rw-r--r-- | tapset/tcp.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/tcp.stp b/tapset/tcp.stp index 2c5dce7e..094161c9 100644 --- a/tapset/tcp.stp +++ b/tapset/tcp.stp @@ -76,7 +76,11 @@ function tcp_ts_get_info_state:long(sock:long) /* return the TCP destination port for a given sock */ function __tcp_sock_dport:long (sock:long){ +%(kernel_v < "2.6.33" %? return @cast(sock, "inet_sock")->dport +%: + return @cast(sock, "inet_sock")->inet_dport +%) } /* returns the TCP header for recent (<2.6.21) kernel */ @@ -145,7 +149,11 @@ function __tcp_skb_dport:long (tcphdr){ /* return the TCP source port for a given sock */ function __tcp_sock_sport:long (sock:long){ +%(kernel_v < "2.6.33" %? return @cast(sock, "inet_sock")->sport +%: + return @cast(sock, "inet_sock")->inet_sport +%) } global sockstate[13], sockstate_init_p |