summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.h
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kparthas@redhat.com>2014-07-10 12:49:53 +0530
committerAnand Avati <avati@redhat.com>2014-07-31 09:03:56 -0700
commit93a4558dddbea78a51171b2bf92e37da3ffb40dd (patch)
treea760624599dd8b79a0a059a832ffcc8eb06a236d /rpc/rpc-lib/src/rpc-clnt.h
parent72d2143c78bb01135eef8fa6a210e8a1a0f987ce (diff)
client/rpc: Add ping and msgs stats
This can be seen as below, ># cat $META/graphs/active/vol-client-0/private |grep ping_msgs_sent ping_msgs_sent = 2 ># cat $META/graphs/active/vol-client-0/private |grep "^msgs_sent" msgs_sent = 13 where $META is /<fuse-mountpt>/.meta Change-Id: I2107ec2b045bac701377760635e18758adb943a3 Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-on: http://review.gluster.org/8285 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.h')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.h b/rpc/rpc-lib/src/rpc-clnt.h
index f439d538761..6492a81f24e 100644
--- a/rpc/rpc-lib/src/rpc-clnt.h
+++ b/rpc/rpc-lib/src/rpc-clnt.h
@@ -146,6 +146,8 @@ struct rpc_clnt_connection {
int32_t ping_started;
char *name;
int32_t ping_timeout;
+ uint64_t pingcnt;
+ uint64_t msgcnt;
};
typedef struct rpc_clnt_connection rpc_clnt_connection_t;