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