From f01626d5bad8eb0298897e90a124301008cdd0da Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sat, 29 Mar 2014 06:01:36 -0700 Subject: meta: export process state dump Various parts of process state dump are exposed through most appropriate virual files/dirs Change-Id: Iff30f8ea76552f2f6d9c98def688c5ec4bc6f2af BUG: 1089216 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/7542 Tested-by: Gluster Build System Reviewed-by: Harshavardhana --- libglusterfs/src/statedump.c | 15 +++++++++++++++ libglusterfs/src/statedump.h | 2 ++ 2 files changed, 17 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index f9e8a0c1ba4..134dbd4f8f5 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -965,3 +965,18 @@ gf_proc_dump_xlator_meminfo (xlator_t *this, strfd_t *strfd) } gf_proc_dump_unlock (); } + + +void +gf_proc_dump_xlator_profile (xlator_t *this, strfd_t *strfd) +{ + gf_proc_dump_lock (); + { + gf_dump_strfd = strfd; + + gf_proc_dump_latency_info (this); + + gf_dump_strfd = NULL; + } + gf_proc_dump_unlock (); +} diff --git a/libglusterfs/src/statedump.h b/libglusterfs/src/statedump.h index 3251387e220..39a68bd69da 100644 --- a/libglusterfs/src/statedump.h +++ b/libglusterfs/src/statedump.h @@ -101,4 +101,6 @@ void gf_proc_dump_xlator_history (xlator_t *this, strfd_t *strfd); void gf_proc_dump_xlator_meminfo (xlator_t *this, strfd_t *strfd); +void gf_proc_dump_xlator_profile (xlator_t *this, strfd_t *strfd); + #endif /* STATEDUMP_H */ -- cgit