From b4d6c3d1bb461d2c8a396c9ed3881a4da40fc6ab Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sat, 15 Aug 2009 12:58:08 +0000 Subject: TAKE2[PATCH BUG:213 1/1] Support for Process State Dump Support for process state dump. Signed-off-by: Anand V. Avati BUG: 213 (Support for process state dump) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=213 --- libglusterfs/src/stack.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libglusterfs/src/stack.h') diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index e7c1cbd15..942972556 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -1,4 +1,4 @@ -/* +/* Copyright (c) 2006-2009 Z RESEARCH, Inc. This file is part of GlusterFS. @@ -74,6 +74,7 @@ struct _call_frame_t { int32_t ref_count; gf_lock_t lock; void *cookie; /* unique cookie */ + gf_boolean_t complete; }; struct _call_stack_t { @@ -208,6 +209,7 @@ STACK_DESTROY (call_stack_t *stack) _parent->ref_count--; \ old_THIS = THIS; \ THIS = _parent->this; \ + frame->complete = _gf_true; \ fn (_parent, frame->cookie, _parent->this, params); \ THIS = old_THIS; \ } while (0) @@ -281,5 +283,7 @@ create_frame (xlator_t *xl, call_pool_t *pool) return &stack->frames; } +void +gf_proc_dump_pending_frames(call_pool_t *call_pool); #endif /* _STACK_H */ -- cgit