summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster/tcp_internal.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2010-12-22 12:39:40 -0800
committerJoel Becker <joel.becker@oracle.com>2010-12-22 18:38:09 -0800
commit3c193b3807e933cf2a16d55a38debbe549195847 (patch)
treec44d0656307f0ce00abb2b8102fb6e4bb8ec7d08 /fs/ocfs2/cluster/tcp_internal.h
parentff1becbf85bf4d4d4652915b7ab27db949585f6b (diff)
ocfs2/cluster: Track send message timing stats for each socket
Tracks total send and status times for all messages sent on a socket. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/tcp_internal.h')
-rw-r--r--fs/ocfs2/cluster/tcp_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/cluster/tcp_internal.h b/fs/ocfs2/cluster/tcp_internal.h
index f8157633391..640c6fcef72 100644
--- a/fs/ocfs2/cluster/tcp_internal.h
+++ b/fs/ocfs2/cluster/tcp_internal.h
@@ -179,6 +179,12 @@ struct o2net_sock_container {
ktime_t sc_tv_func_start;
ktime_t sc_tv_func_stop;
#endif
+#ifdef CONFIG_OCFS2_FS_STATS
+ ktime_t sc_tv_acquiry_total;
+ ktime_t sc_tv_send_total;
+ ktime_t sc_tv_status_total;
+ u32 sc_send_count;
+#endif
struct mutex sc_send_lock;
};