Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * dlmdebug.h
0004  *
0005  * Copyright (C) 2008 Oracle.  All rights reserved.
0006  */
0007 
0008 #ifndef DLMDEBUG_H
0009 #define DLMDEBUG_H
0010 
0011 void dlm_print_one_mle(struct dlm_master_list_entry *mle);
0012 
0013 #ifdef CONFIG_DEBUG_FS
0014 
0015 struct debug_lockres {
0016     int dl_len;
0017     char *dl_buf;
0018     struct dlm_ctxt *dl_ctxt;
0019     struct dlm_lock_resource *dl_res;
0020 };
0021 
0022 void dlm_debug_init(struct dlm_ctxt *dlm);
0023 
0024 void dlm_create_debugfs_subroot(struct dlm_ctxt *dlm);
0025 void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm);
0026 
0027 void dlm_create_debugfs_root(void);
0028 void dlm_destroy_debugfs_root(void);
0029 
0030 #else
0031 
0032 static inline void dlm_debug_init(struct dlm_ctxt *dlm)
0033 {
0034 }
0035 static inline void dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
0036 {
0037 }
0038 static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
0039 {
0040 }
0041 static inline void dlm_create_debugfs_root(void)
0042 {
0043 }
0044 static inline void dlm_destroy_debugfs_root(void)
0045 {
0046 }
0047 
0048 #endif  /* CONFIG_DEBUG_FS */
0049 #endif  /* DLMDEBUG_H */