accel/qaic: Add AIC200 support
[drm/drm-misc.git] / include / linux / lockd / debug.h
blobeede2ab5246f4f1e938396b9500bb5590acaf2be
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 #include <linux/sunrpc/debug.h>
16 * Enable lockd debugging.
17 * Requires RPC_DEBUG.
19 #undef ifdebug
20 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
21 # define ifdebug(flag) if (unlikely(nlm_debug & NLMDBG_##flag))
22 #else
23 # define ifdebug(flag) if (0)
24 #endif
27 * Debug flags
29 #define NLMDBG_SVC 0x0001
30 #define NLMDBG_CLIENT 0x0002
31 #define NLMDBG_CLNTLOCK 0x0004
32 #define NLMDBG_SVCLOCK 0x0008
33 #define NLMDBG_MONITOR 0x0010
34 #define NLMDBG_CLNTSUBS 0x0020
35 #define NLMDBG_SVCSUBS 0x0040
36 #define NLMDBG_HOSTCACHE 0x0080
37 #define NLMDBG_XDR 0x0100
38 #define NLMDBG_ALL 0x7fff
40 #endif /* LINUX_LOCKD_DEBUG_H */