Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * linux/include/linux/lockd/debug.h
0004  *
0005  * Debugging stuff.
0006  *
0007  * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
0008  */
0009 
0010 #ifndef LINUX_LOCKD_DEBUG_H
0011 #define LINUX_LOCKD_DEBUG_H
0012 
0013 #include <linux/sunrpc/debug.h>
0014 
0015 /*
0016  * Enable lockd debugging.
0017  * Requires RPC_DEBUG.
0018  */
0019 #undef ifdebug
0020 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
0021 # define ifdebug(flag)      if (unlikely(nlm_debug & NLMDBG_##flag))
0022 #else
0023 # define ifdebug(flag)      if (0)
0024 #endif
0025 
0026 /*
0027  * Debug flags
0028  */
0029 #define NLMDBG_SVC      0x0001
0030 #define NLMDBG_CLIENT       0x0002
0031 #define NLMDBG_CLNTLOCK     0x0004
0032 #define NLMDBG_SVCLOCK      0x0008
0033 #define NLMDBG_MONITOR      0x0010
0034 #define NLMDBG_CLNTSUBS     0x0020
0035 #define NLMDBG_SVCSUBS      0x0040
0036 #define NLMDBG_HOSTCACHE    0x0080
0037 #define NLMDBG_XDR      0x0100
0038 #define NLMDBG_ALL      0x7fff
0039 
0040 #endif /* LINUX_LOCKD_DEBUG_H */