From 04de4b6063617d4ad31b31fb0d24fe2242deb7f0 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 16 Oct 2009 16:21:09 +0000 Subject: locks: trace support 'option trace on' will trace all locks and unlocks in the logfile under NORMAL log mode Signed-off-by: Anand V. Avati BUG: 306 (Enhance locks to aid debugging) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=306 --- xlators/features/locks/src/common.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xlators/features/locks/src/common.h') diff --git a/xlators/features/locks/src/common.h b/xlators/features/locks/src/common.h index 78de8432f..9f3b0cf0c 100644 --- a/xlators/features/locks/src/common.h +++ b/xlators/features/locks/src/common.h @@ -51,4 +51,15 @@ void __destroy_lock (posix_lock_t *); void pl_update_refkeeper (xlator_t *this, inode_t *inode); +void pl_trace_in (xlator_t *this, call_frame_t *frame, fd_t *fd, int cmd, + struct flock *flock); + +void pl_trace_out (xlator_t *this, call_frame_t *frame, fd_t *fd, int cmd, + struct flock *flock, int op_ret, int op_errno); + +void pl_trace_block (xlator_t *this, call_frame_t *frame, fd_t *fd, int cmd, + struct flock *flock); + +void pl_trace_flush (xlator_t *this, call_frame_t *frame, fd_t *fd); + #endif /* __COMMON_H__ */ -- cgit