diff options
author | Steve Dickson <steved@redhat.com> | 2014-02-10 13:07:30 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-02-10 13:07:30 -0500 |
commit | 3a479417ede79fdb1b96d2050d07549a58d10887 (patch) | |
tree | 42ba72fa6e05940da3ffede11be3356355968b48 | |
parent | 7d1e51313fd00e6146082190746e5988a0d28719 (diff) | |
download | systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.tar.gz systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.tar.xz systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.zip |
Added some new more files...
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | nfs/nfs4_proc_setclientid.stp | 20 | ||||
-rwxr-xr-x | top-nfsv4calls.stp | 20 | ||||
-rw-r--r-- | tracepoints/nfs4_fsinfo.stp | 14 |
3 files changed, 54 insertions, 0 deletions
diff --git a/nfs/nfs4_proc_setclientid.stp b/nfs/nfs4_proc_setclientid.stp new file mode 100644 index 0000000..0c93b27 --- /dev/null +++ b/nfs/nfs4_proc_setclientid.stp @@ -0,0 +1,20 @@ + +probe module("nfsv4").function("nfs4_proc_setclientid") +{ + printf("nfs4_proc_setclientid: clp %p\n", $clp); + print_stack(backtrace()) +} +probe module("nfsv4").function("nfs4_proc_setclientid").return +{ + printf("nfs4_proc_setclientid: return %d(%s)\n", $return, errno_str($return)); +} +probe module("nfsv4").function("nfs4_establish_lease").return +{ + printf("nfs4_establish_lease: clp %p\n", $clp); +} +probe module("nfsv4").function("nfs4_establish_lease").return +{ + printf("nfs4_establish_lease: return %d(%s)\n", $return, errno_str($return)); +} +probe begin { log("starting nfs4_proc_setclientid probe") } +probe end { log("ending nfs4_proc_setclientid probe") } diff --git a/top-nfsv4calls.stp b/top-nfsv4calls.stp new file mode 100755 index 0000000..c9c7713 --- /dev/null +++ b/top-nfsv4calls.stp @@ -0,0 +1,20 @@ +#!/usr/bin/env stap + +global nfscalls + +probe begin { + printf("Collecting top NFSv4 procs...\n") +} + +probe kernel.function("*@fs/nfs/*.c") ?, + module("nfsv4").function("*@fs/nfs/*.c") ? +{ + nfscalls[probefunc()]++ +} + +probe end { + printf("Collating data...\n"); + foreach (name in nfscalls- limit 20) + printf("%10d %s\n", nfscalls[name], name) +} + diff --git a/tracepoints/nfs4_fsinfo.stp b/tracepoints/nfs4_fsinfo.stp new file mode 100644 index 0000000..5ad67ce --- /dev/null +++ b/tracepoints/nfs4_fsinfo.stp @@ -0,0 +1,14 @@ +/* + * stap -I ../tapset nfs4_fsinfo.stp + */ + +probe kernel.trace("rpc_connect_status") +{ + terror = $status + if (terror) + printf("%s[%d]:nfs4_fsinfo: error %d (%s)\n", + execname(), pid(), terror, errno_str(terror)); +} +probe begin { log("starting nfs4_fsinfo probe") } +probe end { log("ending nfs3_fsinfo probe") } + |