summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.h
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-16 23:56:55 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-19 23:14:45 -0700
commit0fa1305ed3e3943b22d9a3340a4464daf7742ab3 (patch)
tree8330485ef16956b28ca873fe37e0e249408bce4d /xlators/features/locks/src/common.h
parent04de4b6063617d4ad31b31fb0d24fe2242deb7f0 (diff)
locks: trace support for entrylk
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.h13
1 files changed, 13 insertions, 0 deletions
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__ */