diff options
author | Steve Dickson <steved@redhat.com> | 2011-05-31 08:15:23 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-05-31 08:15:23 -0400 |
commit | 137adddecc9587763646721c6f3e9b6adc89c166 (patch) | |
tree | 645bdd367a03d5f50a443f0b00d7bbe514846214 | |
parent | 5d282eec7e97305b6735e84643fdb660fc92de93 (diff) | |
download | systemtap-137adddecc9587763646721c6f3e9b6adc89c166.tar.gz systemtap-137adddecc9587763646721c6f3e9b6adc89c166.tar.xz systemtap-137adddecc9587763646721c6f3e9b6adc89c166.zip |
Did Some rework...
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | sunrpc/xprt.stp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sunrpc/xprt.stp b/sunrpc/xprt.stp index 7f2fd48..ca727d5 100644 --- a/sunrpc/xprt.stp +++ b/sunrpc/xprt.stp @@ -1,11 +1,12 @@ global xs_task, trans_task, udp_send_task, sendpages_sock +/* probe module("sunrpc").function("xs_connect") { //printf("xs_connect: task %p\n", $task); - xs_task = $task; //print_backtrace(); } +*/ /* probe module("sunrpc").function("xs_tcp_connect") { @@ -14,16 +15,19 @@ probe module("sunrpc").function("xs_tcp_connect") xs_task = $task; } */ -/* probe module("sunrpc").function("xprt_connect_status") { - printf("xprt_connect_status: %s(%d), task %p\n", execname(), pid(), $task); + xs_task = $task; } -*/ probe module("sunrpc").function("xprt_connect_status").return { printf("xprt_connect_status: %s(%d): %s\n", execname(), pid(), task_dump(xs_task)); } +probe kernel.function("kernel_connect").return +{ + if ($return < 0 && $return != -11) + printf("kernel_connect: %s(%d): status %d\n", execname(), pid(), $return); +} probe module("sunrpc").function("xprt_transmit") { trans_task = $task; |