1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- mode: c; c-basic-offset: 8; -*-
3 * vim: noexpandtab sw=8 ts=8 sts=0:
7 * Copyright (C) 2008 Oracle. All rights reserved.
13 void dlm_print_one_mle(struct dlm_master_list_entry *mle);
15 #ifdef CONFIG_DEBUG_FS
17 struct dlm_debug_ctxt {
18 struct dentry *debug_state_dentry;
19 struct dentry *debug_lockres_dentry;
20 struct dentry *debug_mle_dentry;
21 struct dentry *debug_purgelist_dentry;
24 struct debug_lockres {
27 struct dlm_ctxt *dl_ctxt;
28 struct dlm_lock_resource *dl_res;
31 void dlm_debug_init(struct dlm_ctxt *dlm);
32 void dlm_debug_shutdown(struct dlm_ctxt *dlm);
34 int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm);
35 void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm);
37 void dlm_create_debugfs_root(void);
38 void dlm_destroy_debugfs_root(void);
42 static inline void dlm_debug_init(struct dlm_ctxt *dlm)
45 static inline void dlm_debug_shutdown(struct dlm_ctxt *dlm)
48 static inline int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
52 static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
55 static inline void dlm_create_debugfs_root(void)
58 static inline void dlm_destroy_debugfs_root(void)
62 #endif /* CONFIG_DEBUG_FS */
63 #endif /* DLMDEBUG_H */