summaryrefslogtreecommitdiffstats
path: root/tapset/rpc.stp
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-11-09 13:33:35 -0500
committerFrank Ch. Eigler <fche@elastic.org>2007-11-09 13:33:35 -0500
commit5c2ebe0293f9fee77404d587a264b7c90fd8712a (patch)
tree667dc956901aa44b59cd87adc4ad688a71b3cdfb /tapset/rpc.stp
parent0919e9e340e5d93fcc7f07043e88c9a8659371a3 (diff)
parent185457afd0b9b00f835e2bedcd6801aae432b699 (diff)
downloadsystemtap-steved-5c2ebe0293f9fee77404d587a264b7c90fd8712a.tar.gz
systemtap-steved-5c2ebe0293f9fee77404d587a264b7c90fd8712a.tar.xz
systemtap-steved-5c2ebe0293f9fee77404d587a264b7c90fd8712a.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/rpc.stp')
-rw-r--r--tapset/rpc.stp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tapset/rpc.stp b/tapset/rpc.stp
index f9390054..537bf348 100644
--- a/tapset/rpc.stp
+++ b/tapset/rpc.stp
@@ -950,22 +950,22 @@ 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;
+ THIS->__retvalue = -1;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
- THIS->__retvalue = kread(&(clnt->cl_count));
+ deref(sizeof(clnt->cl_count), &(clnt->cl_count));
+ THIS->__retvalue = atomic_read(&(clnt->cl_count));
CATCH_DEREF_FAULT();
-#else
- THIS->__retvalue = -1;
#endif
%}
function tasks_from_clnt:long(clnt:long)
%{ /* pure */
struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt;
+ THIS->__retvalue = -1;
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
- THIS->__retvalue = kread(&(clnt->cl_users));
+ deref(sizeof(clnt->cl_users), &(clnt->cl_users));
+ THIS->__retvalue = atomic_read(&(clnt->cl_users));
CATCH_DEREF_FAULT();
-#else
- THIS->__retvalue = -1;
#endif
%}