summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-07-25 14:30:43 -0400
committerSteve Dickson <steved@redhat.com>2010-07-25 14:30:43 -0400
commit9135439c59faaff1018e486beb3b03ee48127b92 (patch)
treecb74539d0d7e5d4327e6344c8e6c4f42cae76206
parent7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1 (diff)
downloadsystemtap-9135439c59faaff1018e486beb3b03ee48127b92.tar.gz
systemtap-9135439c59faaff1018e486beb3b03ee48127b92.tar.xz
systemtap-9135439c59faaff1018e486beb3b03ee48127b92.zip
a number of updates an new files
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--gss/gss_krb5.stp15
-rw-r--r--gss/gss_match.stp8
-rwxr-xr-xgss/rpc-gss.stp4
-rw-r--r--nfs-probes.stp2
-rw-r--r--sunrpc/auth-client.stp37
-rw-r--r--tracepoints/rpc_call_status.stp7
6 files changed, 65 insertions, 8 deletions
diff --git a/gss/gss_krb5.stp b/gss/gss_krb5.stp
new file mode 100644
index 0000000..22dd504
--- /dev/null
+++ b/gss/gss_krb5.stp
@@ -0,0 +1,15 @@
+
+probe module("rpcsec_gss_krb5").function("gss_verify_mic_kerberos").return {
+ printf("gss_verify_mic_kerberos(%s): return %d \n", execname(), $return);
+}
+probe module("rpcsec_gss_krb5").function("gss_verify_mic_v2").return {
+ printf("gss_verify_mic_v2(%s): return %d \n", execname(), $return);
+}
+probe module("rpcsec_gss_krb5").function("make_checksum_v2").return {
+ printf("make_checksum_v2(%s): return %d \n", execname(), $return);
+}
+probe module("rpcsec_gss_krb5").function("checksummer").return {
+ printf("checksummer(%s): return %d \n", execname(), $return);
+}
+probe begin { log("starting gss probe") }
+probe end { log("ending gss probe") }
diff --git a/gss/gss_match.stp b/gss/gss_match.stp
new file mode 100644
index 0000000..3d1f14e
--- /dev/null
+++ b/gss/gss_match.stp
@@ -0,0 +1,8 @@
+probe module("auth_rpcgss").function("gss_match") {
+ printf("gss_match(%s): uid %d \n", execname(), $acred->uid);
+}
+probe module("auth_rpcgss").function("gss_match").return {
+ printf("gss_match(%s): return %d \n", execname(), $return);
+}
+probe begin { log("starting gss probe") }
+probe end { log("ending gss probe") }
diff --git a/gss/rpc-gss.stp b/gss/rpc-gss.stp
index 91b2430..cb33f34 100755
--- a/gss/rpc-gss.stp
+++ b/gss/rpc-gss.stp
@@ -6,11 +6,11 @@ probe module("sunrpc").function("rpcauth_create") ?
}
probe module("rpcsec_gss_krb5").function("*@net/sunrpc/auth_gss/*")
{
- printf("%s\n", probefunc())
+ printf("rpcsec_gss_krb5: %s\n", probefunc())
}
probe module("auth_rpcgss").function("*@net/sunrpc/auth_gss/*")
{
- printf("%s\n", probefunc())
+ printf("auth_rpcgss: %s\n", probefunc())
}
probe begin {
diff --git a/nfs-probes.stp b/nfs-probes.stp
index dc846cc..29f133a 100644
--- a/nfs-probes.stp
+++ b/nfs-probes.stp
@@ -2,7 +2,7 @@ probe nfs.fop.entries {
printf("%s: %s\n", name, argstr)
}
probe nfs.fop.return {
- printf("%s: %s\n", name, retstr);
+ printf("%s: %s\n", name, retstr);
}
probe nfs.aop.entries {
printf("%s: %s\n", name, argstr)
diff --git a/sunrpc/auth-client.stp b/sunrpc/auth-client.stp
new file mode 100644
index 0000000..289adc1
--- /dev/null
+++ b/sunrpc/auth-client.stp
@@ -0,0 +1,37 @@
+/*
+probe module("sunrpc").function("rpcauth_wrap_req")
+{
+ printf("rpcauth_wrap_req: encode %p\n", $encode);
+}
+
+probe module("auth_rpcgss").function("gss_unwrap_resp")
+{
+ printf("gss_unwrap_resp: task %p decode %p\n", $task, $decode);
+}
+probe module("auth_rpcgss").function("gss_unwrap_resp").return
+{
+ printf("gss_unwrap_resp: %d\n", $return);
+}
+*/
+probe module("sunrpc").function("rpcauth_generic_bind_cred")
+{
+ printf("rpcauth_generic_bind_cred:\n");
+ print_stack(backtrace());
+}
+probe module("nfs").function("nfs4_xdr_enc_create")
+{
+ printf("nfs4_xdr_enc_create:\n");
+ print_stack(backtrace());
+}
+probe module("nfs").function("nfs3_xdr_createres").return
+{
+ if ($return)
+ printf("nfs3_xdr_createres: %d\n", $return);
+}
+probe module("nfs").function("nfs4_xdr_dec_create").return
+{
+ if ($return)
+ printf("nfs4_xdr_dec_create: %d\n", $return);
+}
+probe begin { log("starting sunrpc auth probe") }
+probe end { log("ending sunrpc auth probe") }
diff --git a/tracepoints/rpc_call_status.stp b/tracepoints/rpc_call_status.stp
index 37ac5e2..06fa3b3 100644
--- a/tracepoints/rpc_call_status.stp
+++ b/tracepoints/rpc_call_status.stp
@@ -1,11 +1,6 @@
/*
* stap -g -I ../tapset rpc_call_status.stp
*/
-%{
-#include <linux/sunrpc/svc.h>
-#include <linux/sunrpc/sched.h>
-#include <linux/sunrpc/clnt.h>
-%}
probe kernel.trace("rpc_bind_status")
{
@@ -15,6 +10,7 @@ probe kernel.trace("rpc_bind_status")
execname(), pid(), cl_server($task), cl_prog($task),
terror, errno_str(terror));
}
+/*
probe kernel.trace("rpc_connect_status")
{
terror = task_status($task);
@@ -23,6 +19,7 @@ probe kernel.trace("rpc_connect_status")
execname(), pid(), cl_server($task), cl_prog($task),
terror, errno_str(terror));
}
+*/
probe kernel.trace("rpc_call_status")
{
terror = task_status($task);