summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/stack.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-06-18 03:54:11 +0000
committerAnand Avati <avati@gluster.com>2011-06-19 02:16:39 -0700
commita64d1a8157859a0bdc6f8bdf94588319fc829b99 (patch)
treeada81ff6ece93364ac6b3680260025e2831d32f2 /libglusterfs/src/stack.c
parenta6fd403a15ffead93daba8a737cd7c6d6a943744 (diff)
stack: make process state dump more debug friendlyv3.1.5qa4v3.1.5
store points of stack wind and unwind (function names) for each frame and dump them in process state dump Signed-off-by: Anand Avati <avati@gluster.com> BUG: 1059 (enhancements for getting statistics from performance translators) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1059
Diffstat (limited to 'libglusterfs/src/stack.c')
-rw-r--r--libglusterfs/src/stack.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libglusterfs/src/stack.c b/libglusterfs/src/stack.c
index 53c21f7..10a02bb 100644
--- a/libglusterfs/src/stack.c
+++ b/libglusterfs/src/stack.c
@@ -76,6 +76,22 @@ gf_proc_dump_call_frame (call_frame_t *call_frame, const char *key_buf,...)
gf_proc_dump_build_key(key, prefix,"parent");
gf_proc_dump_write(key, "%s", my_frame.parent->this->name);
}
+ if (my_frame.wind_from) {
+ gf_proc_dump_build_key(key, prefix, "wind_from");
+ gf_proc_dump_write(key, "%s", my_frame.wind_from);
+ }
+ if (my_frame.wind_to) {
+ gf_proc_dump_build_key(key, prefix, "wind_to");
+ gf_proc_dump_write(key, "%s", my_frame.wind_to);
+ }
+ if (my_frame.unwind_from) {
+ gf_proc_dump_build_key(key, prefix, "unwind_from");
+ gf_proc_dump_write(key, "%s", my_frame.unwind_from);
+ }
+ if (my_frame.unwind_to) {
+ gf_proc_dump_build_key(key, prefix, "unwind_to");
+ gf_proc_dump_write(key, "%s", my_frame.unwind_to);
+ }
}