From 0fa1305ed3e3943b22d9a3340a4464daf7742ab3 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 16 Oct 2009 23:56:55 +0000 Subject: locks: trace support for entrylk 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 | 13 +++++++++++++ 1 file changed, 13 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 9f3b0cf0c..89d8701bf 100644 --- a/xlators/features/locks/src/common.h +++ b/xlators/features/locks/src/common.h @@ -62,4 +62,17 @@ void pl_trace_block (xlator_t *this, call_frame_t *frame, fd_t *fd, int cmd, void pl_trace_flush (xlator_t *this, call_frame_t *frame, fd_t *fd); +void entrylk_trace_in (xlator_t *this, call_frame_t *frame, const char *volume, + fd_t *fd, loc_t *loc, const char *basename, + entrylk_cmd cmd, entrylk_type type); + +void entrylk_trace_out (xlator_t *this, call_frame_t *frame, const char *volume, + fd_t *fd, loc_t *loc, const char *basename, + entrylk_cmd cmd, entrylk_type type, + int op_ret, int op_errno); + +void entrylk_trace_block (xlator_t *this, call_frame_t *frame, const char *volume, + fd_t *fd, loc_t *loc, const char *basename, + entrylk_cmd cmd, entrylk_type type); + #endif /* __COMMON_H__ */ -- cgit