Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / lockd / debug.h
blobe536c579827f116bf819c76a50467056ae51affc
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * linux/include/linux/lockd/debug.h
5 * Debugging stuff.
7 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
8 */
10 #ifndef LINUX_LOCKD_DEBUG_H
11 #define LINUX_LOCKD_DEBUG_H
13 #ifdef __KERNEL__
15 #include <linux/sunrpc/debug.h>
18 * Enable lockd debugging.
19 * Requires RPC_DEBUG.
21 #undef ifdebug
22 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
23 # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
24 #else
25 # define ifdebug(flag) if (0)
26 #endif
28 #endif /* __KERNEL__ */
31 * Debug flags
33 #define NLMDBG_SVC 0x0001
34 #define NLMDBG_CLIENT 0x0002
35 #define NLMDBG_CLNTLOCK 0x0004
36 #define NLMDBG_SVCLOCK 0x0008
37 #define NLMDBG_MONITOR 0x0010
38 #define NLMDBG_CLNTSUBS 0x0020
39 #define NLMDBG_SVCSUBS 0x0040
40 #define NLMDBG_HOSTCACHE 0x0080
41 #define NLMDBG_XDR 0x0100
42 #define NLMDBG_ALL 0x7fff
44 #endif /* LINUX_LOCKD_DEBUG_H */