diff options
-rw-r--r-- | tapset/ChangeLog | 7 | ||||
-rw-r--r-- | tapset/context.stp | 4 | ||||
-rw-r--r-- | tapset/tcp.stp | 4 |
3 files changed, 15 insertions, 0 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index a66b6811..819596bd 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,10 @@ +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. + 2007-08-27 Wenji Huang <wenji.huang@oracle.com> * signal.stp (signal.do_action): Modify evaluating sa_handler,sa_mask. diff --git a/tapset/context.stp b/tapset/context.stp index 622fa505..4aa75158 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -147,6 +147,10 @@ function target:long () %{ /* pure */ THIS->__retvalue = _stp_target; %} +function module_name:string () %{ /* pure */ + strlcpy(THIS->__retvalue, THIS_MODULE->name, MAXSTRINGLEN); +%} + function stp_pid:long () %{ /* pure */ THIS->__retvalue = _stp_pid; %} 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 } |