summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.h
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-16 16:21:09 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-16 15:05:49 -0700
commit04de4b6063617d4ad31b31fb0d24fe2242deb7f0 (patch)
tree71e4747192f8c3c6e6ec499cc93aeeac3230cd67 /xlators/features/locks/src/common.h
parentc8f39bea04c6021243d1ab2bcea450a0f067aabc (diff)
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 <avati@dev.gluster.com> BUG: 306 (Enhance locks to aid debugging) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=306
Diffstat (limited to 'xlators/features/locks/src/common.h')
-rw-r--r--xlators/features/locks/src/common.h11
1 files changed, 11 insertions, 0 deletions
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__ */