From 5e4c160908b88e1272ec09f2c88d7612ce82b7c8 Mon Sep 17 00:00:00 2001 From: wenji Date: Thu, 27 Sep 2007 09:11:34 +0000 Subject: 2007-09-27 Wenji Huang * 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. --- tapset/rpc.stp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tapset/rpc.stp') 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) -- cgit