summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
diff options
context:
space:
mode:
authorwenji <wenji>2007-09-27 09:11:34 +0000
committerwenji <wenji>2007-09-27 09:11:34 +0000
commit5e4c160908b88e1272ec09f2c88d7612ce82b7c8 (patch)
tree34eff07c828d9dae02be20ec3c3d87650ec6e7ee /tapset/rpc.stp
parenta4cf1b4431dc0402f1e6daf0708a34f31edbee57 (diff)
downloadsystemtap-steved-5e4c160908b88e1272ec09f2c88d7612ce82b7c8.tar.gz
systemtap-steved-5e4c160908b88e1272ec09f2c88d7612ce82b7c8.tar.xz
systemtap-steved-5e4c160908b88e1272ec09f2c88d7612ce82b7c8.zip
2007-09-27 Wenji Huang <wenji.huang@oracle.com>
* rpc.stp (clones_from_clnt, tasks_from_clnt): Fix for kernel >= 2.6.22. * nfs.stp (__nfsi_ndirty) : Ditto. * nfs_proc.stp (__nfsv4_bitmask) : Make bitmask valid according to CONFIG.
Diffstat (limited to 'tapset/rpc.stp')
-rw-r--r--tapset/rpc.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tapset/rpc.stp b/tapset/rpc.stp
index a5740a21..3d17d221 100644
--- a/tapset/rpc.stp
+++ b/tapset/rpc.stp
@@ -947,13 +947,21 @@ function port_from_clnt:long(clnt:long)
function clones_from_clnt:long(clnt:long)
%{ /* pure */
struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt;
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
THIS->__retvalue = atomic_read(&clnt->cl_count); /* FIXME: deref hazard! */
+#else
+ THIS->__retvalue = -1;
+#endif
%}
function tasks_from_clnt:long(clnt:long)
%{ /* pure */
struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt;
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
THIS->__retvalue = atomic_read(&clnt->cl_users); /* FIXME: deref hazard! */
+#else
+ THIS->__retvalue = -1;
+#endif
%}
function proc_from_msg:long(msg:long)