2019-05-24 12:04:05 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2021-05-06 18:06:44 -07:00
|
|
|
/*
|
2008-03-10 15:16:22 -07:00
|
|
|
* dlmdebug.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Oracle. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DLMDEBUG_H
|
|
|
|
#define DLMDEBUG_H
|
|
|
|
|
2008-03-10 15:16:28 -07:00
|
|
|
void dlm_print_one_mle(struct dlm_master_list_entry *mle);
|
|
|
|
|
2008-03-10 15:16:22 -07:00
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
|
2008-03-10 15:16:24 -07:00
|
|
|
struct debug_lockres {
|
|
|
|
int dl_len;
|
|
|
|
char *dl_buf;
|
|
|
|
struct dlm_ctxt *dl_ctxt;
|
|
|
|
struct dlm_lock_resource *dl_res;
|
|
|
|
};
|
|
|
|
|
2019-07-11 20:53:12 -07:00
|
|
|
void dlm_debug_init(struct dlm_ctxt *dlm);
|
2008-03-10 15:16:23 -07:00
|
|
|
|
2019-09-23 15:33:15 -07:00
|
|
|
void dlm_create_debugfs_subroot(struct dlm_ctxt *dlm);
|
2008-03-10 15:16:22 -07:00
|
|
|
void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm);
|
|
|
|
|
2019-07-11 20:53:12 -07:00
|
|
|
void dlm_create_debugfs_root(void);
|
2008-03-10 15:16:22 -07:00
|
|
|
void dlm_destroy_debugfs_root(void);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2019-07-11 20:53:12 -07:00
|
|
|
static inline void dlm_debug_init(struct dlm_ctxt *dlm)
|
2008-03-10 15:16:23 -07:00
|
|
|
{
|
|
|
|
}
|
2019-09-23 15:33:15 -07:00
|
|
|
static inline void dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
|
2008-03-10 15:16:22 -07:00
|
|
|
{
|
|
|
|
}
|
2008-05-12 18:31:36 -07:00
|
|
|
static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
|
2008-03-10 15:16:22 -07:00
|
|
|
{
|
|
|
|
}
|
2019-07-11 20:53:12 -07:00
|
|
|
static inline void dlm_create_debugfs_root(void)
|
2008-03-10 15:16:22 -07:00
|
|
|
{
|
|
|
|
}
|
2008-05-12 18:31:36 -07:00
|
|
|
static inline void dlm_destroy_debugfs_root(void)
|
2008-03-10 15:16:22 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_DEBUG_FS */
|
|
|
|
#endif /* DLMDEBUG_H */
|